Skip to content

Commit

Permalink
v5.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
agordn52 committed Oct 23, 2023
1 parent 1a37418 commit a4cf654
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 8 deletions.
6 changes: 6 additions & 0 deletions 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
Expand Down
6 changes: 3 additions & 3 deletions example/pubspec.lock
Expand Up @@ -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:
Expand Down
2 changes: 2 additions & 0 deletions lib/metro/metro.dart
Expand Up @@ -669,6 +669,8 @@ _makeTheme(List<String> arguments) async {
String stubThemeColors = themeColorsStub(classReCase);
await MetroService.makeThemeColors(classReCase.snakeCase, stubThemeColors,
forceCreate: hasForceFlag ?? false);

await MetroService.addToTheme(classReCase.snakeCase);
}

_makeController(List<String> arguments) async {
Expand Down
1 change: 1 addition & 0 deletions lib/metro/stubs/theme_stub.dart
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion lib/nylo_framework.dart
Expand Up @@ -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';
4 changes: 2 additions & 2 deletions pubspec.lock
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions 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
Expand All @@ -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
Expand Down

0 comments on commit a4cf654

Please sign in to comment.