Skip to content

Commit

Permalink
v5.24.0
Browse files Browse the repository at this point in the history
  • Loading branch information
agordn52 committed Mar 22, 2024
1 parent 0b537d4 commit 838c75c
Show file tree
Hide file tree
Showing 13 changed files with 19 additions and 12 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,7 @@
## [5.24.0] - 2024-03-22

* Update stubs

## [5.23.0] - 2024-03-21

* Update stubs
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.lock
Expand Up @@ -291,7 +291,7 @@ packages:
path: ".."
relative: true
source: path
version: "5.23.0"
version: "5.24.0"
nylo_support:
dependency: transitive
description:
Expand Down
1 change: 1 addition & 0 deletions lib/metro/stubs/controller_stub.dart
Expand Up @@ -7,6 +7,7 @@ import 'package:flutter/widgets.dart';
class ${controllerName.pascalCase}Controller extends Controller {
@override
construct(BuildContext context) {
super.construct(context);
Expand Down
2 changes: 1 addition & 1 deletion lib/metro/stubs/model_stub.dart
Expand Up @@ -13,7 +13,7 @@ class $modelName extends Model {
@override
toJson() {
return {};
}
}
''';
2 changes: 1 addition & 1 deletion lib/metro/stubs/page_bottom_nav_stub.dart
Expand Up @@ -9,7 +9,7 @@ import 'package:nylo_framework/nylo_framework.dart';
class ${className.pascalCase}Page extends NyStatefulWidget {
static const path = '/${className.paramCase}';
${className.pascalCase}Page() : super(path, child: _${className.pascalCase}PageState());
${className.pascalCase}Page({super.key}) : super(path, child: _${className.pascalCase}PageState());
}
class _${className.pascalCase}PageState extends NyState<${className.pascalCase}Page> {
Expand Down
2 changes: 1 addition & 1 deletion lib/metro/stubs/page_stub.dart
Expand Up @@ -8,7 +8,7 @@ import 'package:nylo_framework/nylo_framework.dart';
class ${className.pascalCase}Page extends NyStatefulWidget {
static const path = '/${className.paramCase}';
${className.pascalCase}Page() : super(path, child: _${className.pascalCase}PageState());
${className.pascalCase}Page({super.key}) : super(path, child: _${className.pascalCase}PageState());
}
class _${className.pascalCase}PageState extends NyState<${className.pascalCase}Page> {
Expand Down
4 changes: 2 additions & 2 deletions lib/metro/stubs/page_w_controller_stub.dart
Expand Up @@ -11,7 +11,7 @@ import '/app/controllers/${creationPath != null ? creationPath + "/${className.s
class ${className.pascalCase}Page extends NyStatefulWidget<${className.pascalCase}Controller> {
static const path = '/${className.paramCase}';
${className.pascalCase}Page() : super(path, child: _${className.pascalCase}PageState());
${className.pascalCase}Page({super.key}) : super(path, child: _${className.pascalCase}PageState());
}
class _${className.pascalCase}PageState extends NyState<${className.pascalCase}Page> {
Expand All @@ -34,7 +34,7 @@ class _${className.pascalCase}PageState extends NyState<${className.pascalCase}P
Widget view(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text("${className.titleCase}")
title: const Text("${className.titleCase}")
),
body: SafeArea(
child: Container(),
Expand Down
2 changes: 2 additions & 0 deletions lib/metro/stubs/provider_stub.dart
Expand Up @@ -6,6 +6,7 @@ import 'package:nylo_framework/nylo_framework.dart';
class ${rc.pascalCase}Provider implements NyProvider {
@override
boot(Nylo nylo) async {
// boot your provider
Expand All @@ -14,6 +15,7 @@ class ${rc.pascalCase}Provider implements NyProvider {
return nylo;
}
@override
afterBoot(Nylo nylo) async {
// Called after booting your provider
Expand Down
4 changes: 2 additions & 2 deletions lib/metro/stubs/theme_stub.dart
Expand Up @@ -4,7 +4,7 @@ import 'package:recase/recase.dart';
String themeStub(ReCase rc, {bool isDark = false}) => '''
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import '/config/font.dart';
import '/config/design.dart';
import '/resources/themes/styles/color_styles.dart';
import '/resources/themes/text_theme/default_text_theme.dart';
import 'package:nylo_framework/nylo_framework.dart';
Expand Down Expand Up @@ -72,7 +72,7 @@ ThemeData ${rc.camelCase}Theme(ColorStyles color) {
TextTheme _textTheme(ColorStyles color) {
Color primaryContent = color.primaryContent;
TextTheme textTheme = TextTheme().apply(displayColor: primaryContent);
TextTheme textTheme = const TextTheme().apply(displayColor: primaryContent);
return textTheme.copyWith(
labelLarge: TextStyle(color: primaryContent.withOpacity(0.8))
);
Expand Down
2 changes: 1 addition & 1 deletion lib/metro/stubs/widget_stateful_stub.dart
Expand Up @@ -7,7 +7,7 @@ import 'package:nylo_framework/nylo_framework.dart';
class ${rc.pascalCase} extends StatefulWidget {
${rc.pascalCase}({Key? key}) : super(key: key);
const ${rc.pascalCase}({super.key});
static String state = "${rc.snakeCase}";
Expand Down
2 changes: 1 addition & 1 deletion lib/metro/stubs/widget_stateless_stub.dart
Expand Up @@ -5,7 +5,7 @@ String widgetStatelessStub(ReCase rc) => '''
import 'package:flutter/material.dart';
class ${rc.pascalCase} extends StatelessWidget {
const ${rc.pascalCase}({Key? key}) : super(key: key);
const ${rc.pascalCase}({super.key});
@override
Widget build(BuildContext context) {
Expand Down
2 changes: 1 addition & 1 deletion lib/nylo_framework.dart
Expand Up @@ -45,4 +45,4 @@ export 'package:skeletonizer/skeletonizer.dart';
export 'package:dio/dio.dart';

/// Nylo version
const String nyloVersion = 'v5.23.0';
const String nyloVersion = 'v5.24.0';
2 changes: 1 addition & 1 deletion 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.23.0
version: 5.24.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 Down

0 comments on commit 838c75c

Please sign in to comment.