Skip to content

Commit b939984

Browse files
agordn52Anthony Gordon
authored andcommitted
chore(release): bump version to 7.1.13
1 parent 9d95132 commit b939984

6 files changed

Lines changed: 37 additions & 28 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## [7.1.13] - 2026-04-30
2+
3+
### Changed
4+
* Bump `nylo_support` dependency from `^7.22.0` to `^7.23.0`
5+
* Updated `make:state_managed_widget` stub to use the new `NyStateManaged` base widget, enabling multi-instance state isolation via `stateName`
6+
17
## [7.1.12] - 2026-04-28
28

39
### Changed

example/pubspec.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -499,15 +499,15 @@ packages:
499499
path: ".."
500500
relative: true
501501
source: path
502-
version: "7.1.11"
502+
version: "7.1.12"
503503
nylo_support:
504504
dependency: transitive
505505
description:
506506
name: nylo_support
507-
sha256: "0ee795cb189c3e43782b303e2c574e50a51b212b983d46e4304443afdb53cbd1"
507+
sha256: a8e15032b35cce43f1d3aae3232e0fbb4975de4a1772d3064aa30fd0072f01bc
508508
url: "https://pub.dev"
509509
source: hosted
510-
version: "7.22.0"
510+
version: "7.23.0"
511511
objective_c:
512512
dependency: transitive
513513
description:

lib/metro/stubs/widget_state_managed_stub.dart

Lines changed: 23 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -5,41 +5,44 @@ String widgetStateManagedStub(ReCase rc) => '''
55
import 'package:flutter/material.dart';
66
import 'package:nylo_framework/nylo_framework.dart';
77
8-
class ${rc.pascalCase} extends StatefulWidget {
9-
const ${rc.pascalCase}({super.key});
10-
8+
class ${rc.pascalCase} extends NyStateManaged {
9+
${rc.pascalCase}({super.key, super.stateName})
10+
: super(child: () => _${rc.pascalCase}State(stateName));
11+
1112
static String state = "${rc.snakeCase}";
12-
static action(String action, {dynamic data}) =>
13-
stateAction(action, data: data, state: state);
1413
15-
@override
16-
createState() => _${rc.pascalCase}State();
14+
static String _stateFor(String? state) =>
15+
state == null ? ${rc.pascalCase}.state : "\${${rc.pascalCase}.state}_\$state";
16+
17+
static action(String action, {dynamic data, String? stateName}) {
18+
return stateAction(action, data: data, state: _stateFor(stateName));
19+
}
1720
}
1821
1922
class _${rc.pascalCase}State extends NyState<${rc.pascalCase}> {
20-
_${rc.pascalCase}State() {
21-
stateName = ${rc.pascalCase}.state;
23+
_${rc.pascalCase}State(String? stateName) {
24+
this.stateName = ${rc.pascalCase}._stateFor(stateName);
2225
}
2326
2427
@override
2528
get init => () {
2629
// initialization logic here
2730
};
28-
29-
// @override
30-
// Map<String, Function> get stateActions => {
31-
// "my_action": (data) {},
32-
// "clear_data": () {
33-
// // Invoke actions from anywhere in your app
34-
// // Follow.action("my_action", data: "hello");
35-
// // Follow.action("clear_data");
36-
// },
37-
// };
31+
32+
@override
33+
Map<String, Function> get stateActions => {
34+
"my_action": (data) {},
35+
"clear_data": () {
36+
// Invoke actions from anywhere in your app
37+
// ${rc.pascalCase}.action("my_action", data: "hello world");
38+
// ${rc.pascalCase}.action("clear_data");
39+
},
40+
};
3841
3942
@override
4043
Widget view(BuildContext context) {
4144
return Container(
42-
45+
child: Text("My Widget").bodyMedium(),
4346
);
4447
}
4548
}

lib/nylo_framework.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ export 'package:date_field/date_field.dart';
1515
export 'package:dio/dio.dart';
1616

1717
/// Nylo version
18-
const String nyloVersion = 'v7.1.12';
18+
const String nyloVersion = 'v7.1.13';

pubspec.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -521,10 +521,10 @@ packages:
521521
dependency: "direct main"
522522
description:
523523
name: nylo_support
524-
sha256: "0ee795cb189c3e43782b303e2c574e50a51b212b983d46e4304443afdb53cbd1"
524+
sha256: a8e15032b35cce43f1d3aae3232e0fbb4975de4a1772d3064aa30fd0072f01bc
525525
url: "https://pub.dev"
526526
source: hosted
527-
version: "7.22.0"
527+
version: "7.23.0"
528528
objective_c:
529529
dependency: transitive
530530
description:

pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: nylo_framework
22
description: Micro-framework for Flutter that's built to simplify app development for Flutter projects.
3-
version: 7.1.12
3+
version: 7.1.13
44
homepage: https://nylo.dev
55
repository: https://github.com/nylo-core/framework/tree/7.x
66
issue_tracker: https://github.com/nylo-core/framework/issues
@@ -16,7 +16,7 @@ environment:
1616
flutter: ">=3.24.0"
1717

1818
dependencies:
19-
nylo_support: ^7.22.0
19+
nylo_support: ^7.23.0
2020
skeletonizer: ^2.1.3
2121
collection: ^1.19.1
2222
args: ^2.7.0

0 commit comments

Comments
 (0)