Skip to content

Commit 07694d7

Browse files
committed
feat: release v7.11.1
1 parent cb4c669 commit 07694d7

8 files changed

Lines changed: 75 additions & 65 deletions

File tree

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
## [7.11.1] - 2026-03-12
2+
3+
### Fixed
4+
5+
* **`toast-oops` calling wrong toast method** - The `toast-oops` state action was incorrectly calling `showToastInfo()` instead of `showToastOops()`, causing oops-style toasts to display as info-style toasts
6+
* **`Field.password()` not respecting `viewable` parameter** - The `viewable` parameter was not being passed through to `FieldStyleTextField.password()`, so the password visibility toggle setting was ignored when constructing password fields
7+
8+
### Changed
9+
10+
* **`NyPage.initState()` state name resolution** - The state name for `NyStatefulWidget` is now resolved unconditionally in `initState()`, rather than only when `stateManaged` is true. The event bus subscription logic is now a single `stateManaged && allowStateUpdates` check with reduced nesting
11+
* Updated dependency constraints: `flutter_local_notifications` ^21.0.0, `timezone` ^0.11.0, `patrol` ^4.3.0
12+
113
## [7.11.0] - 2026-03-11
214

315
### Added

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ import 'package:nylo_support/widgets/ny_widgets.dart';
4949

5050
```yaml
5151
dependencies:
52-
nylo_support: ^7.11.0
52+
nylo_support: ^7.11.1
5353
```
5454
5555
### Documentation

example/pubspec.lock

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -202,34 +202,34 @@ packages:
202202
dependency: transitive
203203
description:
204204
name: flutter_local_notifications
205-
sha256: "2b50e938a275e1ad77352d6a25e25770f4130baa61eaf02de7a9a884680954ad"
205+
sha256: "0d9035862236fe38250fe1644d7ed3b8254e34a21b2c837c9f539fbb3bba5ef1"
206206
url: "https://pub.dev"
207207
source: hosted
208-
version: "20.1.0"
208+
version: "21.0.0"
209209
flutter_local_notifications_linux:
210210
dependency: transitive
211211
description:
212212
name: flutter_local_notifications_linux
213-
sha256: dce0116868cedd2cdf768af0365fc37ff1cbef7c02c4f51d0587482e625868d0
213+
sha256: e0f25e243c6c44c825bbbc6b2b2e76f7d9222362adcfe9fd780bf01923c840bd
214214
url: "https://pub.dev"
215215
source: hosted
216-
version: "7.0.0"
216+
version: "8.0.0"
217217
flutter_local_notifications_platform_interface:
218218
dependency: transitive
219219
description:
220220
name: flutter_local_notifications_platform_interface
221-
sha256: "23de31678a48c084169d7ae95866df9de5c9d2a44be3e5915a2ff067aeeba899"
221+
sha256: e7db3d5b49c2b7ecc68deba4aaaa67a348f92ee0fef34c8e4b4459dbef0d7307
222222
url: "https://pub.dev"
223223
source: hosted
224-
version: "10.0.0"
224+
version: "11.0.0"
225225
flutter_local_notifications_windows:
226226
dependency: transitive
227227
description:
228228
name: flutter_local_notifications_windows
229-
sha256: e97a1a3016512437d9c0b12fae7d1491c3c7b9aa7f03a69b974308840656b02a
229+
sha256: "3a2654ba104fbb52c618ebed9def24ef270228470718c43b3a6afcd5c81bef0c"
230230
url: "https://pub.dev"
231231
source: hosted
232-
version: "2.0.1"
232+
version: "3.0.0"
233233
flutter_localizations:
234234
dependency: transitive
235235
description: flutter
@@ -345,10 +345,10 @@ packages:
345345
dependency: transitive
346346
description:
347347
name: hooks
348-
sha256: "7a08a0d684cb3b8fb604b78455d5d352f502b68079f7b80b831c62220ab0a4f6"
348+
sha256: e79ed1e8e1929bc6ecb6ec85f0cb519c887aa5b423705ded0d0f2d9226def388
349349
url: "https://pub.dev"
350350
source: hosted
351-
version: "1.0.1"
351+
version: "1.0.2"
352352
http:
353353
dependency: transitive
354354
description:
@@ -449,10 +449,10 @@ packages:
449449
dependency: transitive
450450
description:
451451
name: native_toolchain_c
452-
sha256: "89e83885ba09da5fdf2cdacc8002a712ca238c28b7f717910b34bcd27b0d03ac"
452+
sha256: "92b2ca62c8bd2b8d2f267cdfccf9bfbdb7322f778f8f91b3ce5b5cda23a3899f"
453453
url: "https://pub.dev"
454454
source: hosted
455-
version: "0.17.4"
455+
version: "0.17.5"
456456
nm:
457457
dependency: transitive
458458
description:
@@ -467,7 +467,7 @@ packages:
467467
path: ".."
468468
relative: true
469469
source: path
470-
version: "7.9.1"
470+
version: "7.11.0"
471471
objective_c:
472472
dependency: transitive
473473
description:
@@ -717,10 +717,10 @@ packages:
717717
dependency: transitive
718718
description:
719719
name: timezone
720-
sha256: dd14a3b83cfd7cb19e7888f1cbc20f258b8d71b54c06f79ac585f14093a287d1
720+
sha256: "784a5e34d2eb62e1326f24d6f600aaaee452eb8ca8ef2f384a59244e292d158b"
721721
url: "https://pub.dev"
722722
source: hosted
723-
version: "0.10.1"
723+
version: "0.11.0"
724724
typed_data:
725725
dependency: transitive
726726
description:

lib/widgets/src/form/field.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,8 @@ class Field {
377377
Function(dynamic value)? onChanged,
378378
FieldStyleTextField? style,
379379
}) : _value = value,
380-
this.style = style ?? FieldStyleTextField.password() {
380+
this.style =
381+
style ?? FieldStyleTextField.password(passwordViewable: viewable) {
381382
this.style = (this.style as FieldStyleTextField).copyWith(
382383
passwordViewable: viewable,
383384
keyboardType: TextInputType.visiblePassword,

lib/widgets/src/ny_base_state.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ abstract class NyBaseState<T extends StatefulWidget> extends State<T> {
181181
}
182182
case 'toast-oops':
183183
{
184-
showToastInfo(
184+
showToastOops(
185185
title: stateData['title'],
186186
description: stateData['description'],
187187
);

lib/widgets/src/ny_page.dart

Lines changed: 24 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -33,37 +33,34 @@ abstract class NyPage<T extends StatefulWidget> extends NyBaseState<T>
3333
super.initState();
3434
WidgetsBinding.instance.addObserver(this);
3535

36-
if (stateManaged) {
37-
/// Set the state name if the widget is a NyStatefulWidget
38-
if (widget is NyStatefulWidget) {
39-
stateName = (widget as NyStatefulWidget).child.runtimeType.toString();
40-
if (!(stateName?.contains("Closure:") ?? false)) {
41-
stateName = "Closure: $stateName";
42-
}
43-
if (stateName?.contains("Closure: _") ?? false) {
44-
stateName = stateName?.replaceAll("Closure: _", "Closure: () => _");
45-
}
36+
/// Set the state name if the widget is a NyStatefulWidget
37+
if (widget is NyStatefulWidget) {
38+
stateName = (widget as NyStatefulWidget).child.runtimeType.toString();
39+
if (!(stateName?.contains("Closure:") ?? false)) {
40+
stateName = "Closure: $stateName";
4641
}
42+
if (stateName?.contains("Closure: _") ?? false) {
43+
stateName = stateName?.replaceAll("Closure: _", "Closure: () => _");
44+
}
45+
}
4746

48-
if (allowStateUpdates) {
49-
List<EventBusHistoryEntry> eventHistory = eventBus!.history
50-
.where(
51-
(element) =>
52-
element.event.runtimeType.toString() == 'UpdateState',
53-
)
54-
.toList();
55-
if (eventHistory.isNotEmpty) {
56-
stateData = eventHistory.last.event.props[1];
57-
}
47+
if (stateManaged && allowStateUpdates) {
48+
List<EventBusHistoryEntry> eventHistory = eventBus!.history
49+
.where(
50+
(element) => element.event.runtimeType.toString() == 'UpdateState',
51+
)
52+
.toList();
53+
if (eventHistory.isNotEmpty) {
54+
stateData = eventHistory.last.event.props[1];
55+
}
5856

59-
eventSubscription = eventBus!.on<UpdateState>().listen((event) async {
60-
if (event.stateName != stateName) return;
57+
eventSubscription = eventBus!.on<UpdateState>().listen((event) async {
58+
if (event.stateName != stateName) return;
6159

62-
await stateUpdated(event.data);
63-
await _whenStateAction(event.data);
64-
if (mounted) setState(() {});
65-
});
66-
}
60+
await stateUpdated(event.data);
61+
await _whenStateAction(event.data);
62+
if (mounted) setState(() {});
63+
});
6764
}
6865

6966
if (widget is! NyStatefulWidget) {

pubspec.lock

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -223,34 +223,34 @@ packages:
223223
dependency: "direct main"
224224
description:
225225
name: flutter_local_notifications
226-
sha256: "2b50e938a275e1ad77352d6a25e25770f4130baa61eaf02de7a9a884680954ad"
226+
sha256: "0d9035862236fe38250fe1644d7ed3b8254e34a21b2c837c9f539fbb3bba5ef1"
227227
url: "https://pub.dev"
228228
source: hosted
229-
version: "20.1.0"
229+
version: "21.0.0"
230230
flutter_local_notifications_linux:
231231
dependency: transitive
232232
description:
233233
name: flutter_local_notifications_linux
234-
sha256: dce0116868cedd2cdf768af0365fc37ff1cbef7c02c4f51d0587482e625868d0
234+
sha256: e0f25e243c6c44c825bbbc6b2b2e76f7d9222362adcfe9fd780bf01923c840bd
235235
url: "https://pub.dev"
236236
source: hosted
237-
version: "7.0.0"
237+
version: "8.0.0"
238238
flutter_local_notifications_platform_interface:
239239
dependency: transitive
240240
description:
241241
name: flutter_local_notifications_platform_interface
242-
sha256: "23de31678a48c084169d7ae95866df9de5c9d2a44be3e5915a2ff067aeeba899"
242+
sha256: e7db3d5b49c2b7ecc68deba4aaaa67a348f92ee0fef34c8e4b4459dbef0d7307
243243
url: "https://pub.dev"
244244
source: hosted
245-
version: "10.0.0"
245+
version: "11.0.0"
246246
flutter_local_notifications_windows:
247247
dependency: transitive
248248
description:
249249
name: flutter_local_notifications_windows
250-
sha256: e97a1a3016512437d9c0b12fae7d1491c3c7b9aa7f03a69b974308840656b02a
250+
sha256: "3a2654ba104fbb52c618ebed9def24ef270228470718c43b3a6afcd5c81bef0c"
251251
url: "https://pub.dev"
252252
source: hosted
253-
version: "2.0.1"
253+
version: "3.0.0"
254254
flutter_localizations:
255255
dependency: "direct main"
256256
description: flutter
@@ -371,10 +371,10 @@ packages:
371371
dependency: transitive
372372
description:
373373
name: hooks
374-
sha256: "7a08a0d684cb3b8fb604b78455d5d352f502b68079f7b80b831c62220ab0a4f6"
374+
sha256: e79ed1e8e1929bc6ecb6ec85f0cb519c887aa5b423705ded0d0f2d9226def388
375375
url: "https://pub.dev"
376376
source: hosted
377-
version: "1.0.1"
377+
version: "1.0.2"
378378
http:
379379
dependency: transitive
380380
description:
@@ -496,10 +496,10 @@ packages:
496496
dependency: transitive
497497
description:
498498
name: native_toolchain_c
499-
sha256: "89e83885ba09da5fdf2cdacc8002a712ca238c28b7f717910b34bcd27b0d03ac"
499+
sha256: "92b2ca62c8bd2b8d2f267cdfccf9bfbdb7322f778f8f91b3ce5b5cda23a3899f"
500500
url: "https://pub.dev"
501501
source: hosted
502-
version: "0.17.4"
502+
version: "0.17.5"
503503
nm:
504504
dependency: transitive
505505
description:
@@ -576,10 +576,10 @@ packages:
576576
dependency: "direct dev"
577577
description:
578578
name: patrol
579-
sha256: "0688a00e0fda2e42f102863bbac969b7b5ea836d4dc365b750e0e5aed59d34b0"
579+
sha256: ca7d659c58ef735e27c4300af43cc367b67a129a0a1720082dc21b5a096efb1c
580580
url: "https://pub.dev"
581581
source: hosted
582-
version: "4.1.1"
582+
version: "4.3.0"
583583
patrol_finders:
584584
dependency: transitive
585585
description:
@@ -805,10 +805,10 @@ packages:
805805
dependency: "direct main"
806806
description:
807807
name: timezone
808-
sha256: dd14a3b83cfd7cb19e7888f1cbc20f258b8d71b54c06f79ac585f14093a287d1
808+
sha256: "784a5e34d2eb62e1326f24d6f600aaaee452eb8ca8ef2f384a59244e292d158b"
809809
url: "https://pub.dev"
810810
source: hosted
811-
version: "0.10.1"
811+
version: "0.11.0"
812812
typed_data:
813813
dependency: transitive
814814
description:

pubspec.yaml

Lines changed: 4 additions & 4 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: 7.11.0
3+
version: 7.11.1
44
homepage: https://nylo.dev
55
repository: https://github.com/nylo-core/support/tree/7.x
66
issue_tracker: https://github.com/nylo-core/support/issues
@@ -32,9 +32,9 @@ dependencies:
3232
error_stack: ^2.0.1
3333
date_field: ^6.0.3+1
3434
flutter_multi_formatter: ^2.13.10
35-
flutter_local_notifications: ^20.1.0
35+
flutter_local_notifications: ^21.0.0
3636
path_provider: ^2.1.5
37-
timezone: ^0.10.0
37+
timezone: ^0.11.0
3838
flutter_timezone: ^5.0.1
3939
app_badge_plus: ^1.2.7
4040
mask_text_input_formatter: ^2.9.0
@@ -55,7 +55,7 @@ dependencies:
5555
ffi: ^2.2.0
5656
win32: ^5.15.0
5757
dev_dependencies:
58-
patrol: ^4.1.1
58+
patrol: ^4.3.0
5959
flutter_lints: ^6.0.0
6060
integration_test:
6161
sdk: flutter

0 commit comments

Comments
 (0)