From a4cf654483b9b0dbfef8a8b3366a97bedb3d26a0 Mon Sep 17 00:00:00 2001 From: Anthony Date: Mon, 23 Oct 2023 15:43:40 +0700 Subject: [PATCH] v5.7.0 --- CHANGELOG.md | 6 ++++++ example/pubspec.lock | 6 +++--- lib/metro/metro.dart | 2 ++ lib/metro/stubs/theme_stub.dart | 1 + lib/nylo_framework.dart | 2 +- pubspec.lock | 4 ++-- pubspec.yaml | 4 ++-- 7 files changed, 17 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 85898ef..d48efaf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## [5.7.0] - 2023-10-22 + +* Ability to auto add themes to the Nylo config using e.g. `metro make:theme bright_theme` +* Update default theme stub to use `useMaterial3` +* Update pubspec.yaml + ## [5.6.0] - 2023-10-19 * Add docblock to more APIs diff --git a/example/pubspec.lock b/example/pubspec.lock index fd2a660..eba4b0c 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -235,15 +235,15 @@ packages: path: ".." relative: true source: path - version: "5.6.0" + version: "5.7.0" nylo_support: dependency: transitive description: name: nylo_support - sha256: efc8458b50dde332fb98a6bb6aec7e06bbfeb3f279f868b570669732e5ef1b54 + sha256: aff8ff65a1b37b60347e3575207690a73fd7825ccadc7ab958667c027341d793 url: "https://pub.dev" source: hosted - version: "5.12.0" + version: "5.13.0" page_transition: dependency: transitive description: diff --git a/lib/metro/metro.dart b/lib/metro/metro.dart index 9a2ee12..5d91706 100644 --- a/lib/metro/metro.dart +++ b/lib/metro/metro.dart @@ -669,6 +669,8 @@ _makeTheme(List arguments) async { String stubThemeColors = themeColorsStub(classReCase); await MetroService.makeThemeColors(classReCase.snakeCase, stubThemeColors, forceCreate: hasForceFlag ?? false); + + await MetroService.addToTheme(classReCase.snakeCase); } _makeController(List arguments) async { diff --git a/lib/metro/stubs/theme_stub.dart b/lib/metro/stubs/theme_stub.dart index 13430e4..0887f83 100644 --- a/lib/metro/stubs/theme_stub.dart +++ b/lib/metro/stubs/theme_stub.dart @@ -22,6 +22,7 @@ ThemeData ${rc.camelCase}Theme(ColorStyles color) { appFont, defaultTextTheme.merge(_textTheme(color))); return ThemeData( + useMaterial3: true, primaryColor: color.primaryContent, primaryColorLight: color.primaryAccent, focusColor: color.primaryContent, diff --git a/lib/nylo_framework.dart b/lib/nylo_framework.dart index 7ce0ed4..bafbc38 100644 --- a/lib/nylo_framework.dart +++ b/lib/nylo_framework.dart @@ -38,4 +38,4 @@ export 'package:nylo_support/widgets/ny_page.dart'; export 'package:dio/dio.dart'; /// Nylo version -const String nyloVersion = 'v5.6.0'; +const String nyloVersion = 'v5.7.0'; diff --git a/pubspec.lock b/pubspec.lock index 5fd883b..3d3e3fb 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -233,10 +233,10 @@ packages: dependency: "direct main" description: name: nylo_support - sha256: efc8458b50dde332fb98a6bb6aec7e06bbfeb3f279f868b570669732e5ef1b54 + sha256: aff8ff65a1b37b60347e3575207690a73fd7825ccadc7ab958667c027341d793 url: "https://pub.dev" source: hosted - version: "5.12.0" + version: "5.13.0" page_transition: dependency: "direct main" description: diff --git a/pubspec.yaml b/pubspec.yaml index 62f90b0..78bad44 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: nylo_framework description: Micro-framework for Flutter that's built to simplify app development for Flutter projects. -version: 5.6.0 +version: 5.7.0 homepage: https://nylo.dev repository: https://github.com/nylo-core/framework/tree/5.x issue_tracker: https://github.com/nylo-core/framework/issues @@ -17,7 +17,7 @@ environment: dependencies: dio: ^5.3.3 flutter_dotenv: ^5.1.0 - nylo_support: ^5.12.0 + nylo_support: ^5.13.0 theme_provider: ^0.6.0 page_transition: ^2.1.0 collection: ^1.17.1