Skip to content

Commit 0c84d6f

Browse files
committed
v6.35.0
1 parent effe148 commit 0c84d6f

File tree

5 files changed

+26
-12
lines changed

5 files changed

+26
-12
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## [6.35.0] - 2025-07-18
2+
3+
* Fix stateData in `NyState` to return the correct data type
4+
15
## [6.34.0] - 2025-07-17
26

37
* Added `lifecycleActions` to `Nylo.init`. This will allow you to global handle your app's lifecycle.

example/pubspec.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -194,10 +194,10 @@ packages:
194194
dependency: transitive
195195
description:
196196
name: flutter_local_notifications
197-
sha256: edae0c34573233ab03f5ba1f07465e55c384743893042cb19e010b4ee8541c12
197+
sha256: "81350df6cb90196390b0b175c645968620d508a4fc9db5996215a1cfa4135a03"
198198
url: "https://pub.dev"
199199
source: hosted
200-
version: "19.3.0"
200+
version: "19.3.1"
201201
flutter_local_notifications_linux:
202202
dependency: transitive
203203
description:
@@ -218,10 +218,10 @@ packages:
218218
dependency: transitive
219219
description:
220220
name: flutter_local_notifications_windows
221-
sha256: f8fc0652a601f83419d623c85723a3e82ad81f92b33eaa9bcc21ea1b94773e6e
221+
sha256: ed46d7ae4ec9d19e4c8fa2badac5fe27ba87a3fe387343ce726f927af074ec98
222222
url: "https://pub.dev"
223223
source: hosted
224-
version: "1.0.0"
224+
version: "1.0.2"
225225
flutter_localizations:
226226
dependency: transitive
227227
description: flutter
@@ -419,7 +419,7 @@ packages:
419419
path: ".."
420420
relative: true
421421
source: path
422-
version: "6.34.0"
422+
version: "6.35.0"
423423
path:
424424
dependency: transitive
425425
description:

lib/widgets/ny_state.dart

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,17 @@ abstract class NyState<T extends StatefulWidget> extends NyBaseState<T> {
2323
element.event.runtimeType.toString() == 'UpdateState')
2424
.toList();
2525
if (eventHistory.isNotEmpty) {
26-
stateData = eventHistory.last.event.props[1];
26+
List<Object?> props = eventHistory
27+
.where((element) {
28+
return element.event.props.isNotEmpty &&
29+
element.event.props[0] == stateName;
30+
})
31+
.map((e) => e.event.props)
32+
.firstOrNull ??
33+
[];
34+
if (props.isNotEmpty) {
35+
stateData = props[1];
36+
}
2737
}
2838
eventSubscription = eventBus!.on<UpdateState>().listen((event) async {
2939
if (event.stateName != stateName) return;

pubspec.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -202,10 +202,10 @@ packages:
202202
dependency: "direct main"
203203
description:
204204
name: flutter_local_notifications
205-
sha256: edae0c34573233ab03f5ba1f07465e55c384743893042cb19e010b4ee8541c12
205+
sha256: "81350df6cb90196390b0b175c645968620d508a4fc9db5996215a1cfa4135a03"
206206
url: "https://pub.dev"
207207
source: hosted
208-
version: "19.3.0"
208+
version: "19.3.1"
209209
flutter_local_notifications_linux:
210210
dependency: transitive
211211
description:
@@ -226,10 +226,10 @@ packages:
226226
dependency: transitive
227227
description:
228228
name: flutter_local_notifications_windows
229-
sha256: f8fc0652a601f83419d623c85723a3e82ad81f92b33eaa9bcc21ea1b94773e6e
229+
sha256: ed46d7ae4ec9d19e4c8fa2badac5fe27ba87a3fe387343ce726f927af074ec98
230230
url: "https://pub.dev"
231231
source: hosted
232-
version: "1.0.0"
232+
version: "1.0.2"
233233
flutter_localizations:
234234
dependency: "direct main"
235235
description: flutter

pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: nylo_support
22
description: Support library for the Nylo framework. This library supports routing, widgets, localization, cli, storage and more.
3-
version: 6.34.0
3+
version: 6.35.0
44
homepage: https://nylo.dev
55
repository: https://github.com/nylo-core/support/tree/6.x
66
issue_tracker: https://github.com/nylo-core/support/issues
@@ -35,7 +35,7 @@ dependencies:
3535
error_stack: ^1.10.3
3636
date_field: ^6.0.3+1
3737
flutter_multi_formatter: ^2.13.7
38-
flutter_local_notifications: ^19.3.0
38+
flutter_local_notifications: ^19.3.1
3939
path_provider: ^2.1.5
4040
timezone: ^0.10.1
4141
flutter_timezone: ^4.1.1

0 commit comments

Comments
 (0)