Skip to content

Commit

Permalink
v6.12.2
Browse files Browse the repository at this point in the history
  • Loading branch information
agordn52 committed Dec 22, 2024
1 parent a3564cf commit 4c13fa5
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## [6.12.2] - 2024-12-22

* Fix stateName in NyState
* Slight refactor to `NyBaseState`

## [6.12.1] - 2024-12-19

* Fix `useLocalNotifications` in `Nylo` class
Expand Down
7 changes: 3 additions & 4 deletions lib/widgets/ny_base_state.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import 'dart:io';

import 'package:flutter/cupertino.dart';
import 'package:flutter/foundation.dart' show kIsWeb;
import '../helpers/ny_color.dart';
import '/helpers/ny_color.dart';
import '/helpers/loading_style.dart';
import '/helpers/extensions.dart';
import 'package:theme_provider/theme_provider.dart';
Expand Down Expand Up @@ -128,9 +128,8 @@ abstract class NyBaseState<T extends StatefulWidget> extends State<T> {
{
Function()? setStateData = stateData['setState'];
if (setStateData != null) {
setState(() {
setStateData();
});
setStateData();
setState(() {});
return;
}
reboot();
Expand Down
3 changes: 3 additions & 0 deletions lib/widgets/ny_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ abstract class NyPage<T extends StatefulWidget> extends NyBaseState<T> {
/// Set the state name if the widget is a NyStatefulWidget
if (widget is NyStatefulWidget) {
stateName = (widget as NyStatefulWidget).child.runtimeType.toString();
if (!(stateName?.contains("Closure:") ?? false)) {
stateName = "Closure: $stateName";
}
}

if (allowStateUpdates) {
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: nylo_support
description: Support library for the Nylo framework. This library supports routing, widgets, localization, cli, storage and more.
version: 6.12.1
version: 6.12.2
homepage: https://nylo.dev
repository: https://github.com/nylo-core/support/tree/6.x
issue_tracker: https://github.com/nylo-core/support/issues
Expand Down

0 comments on commit 4c13fa5

Please sign in to comment.