Skip to content

Commit

Permalink
fix: _isSelectedOf and _isPushedOf get error
Browse files Browse the repository at this point in the history
  • Loading branch information
foxsofter committed Jun 7, 2024
1 parent 04df837 commit 4ce9856
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 4.15.4

- fix: `_isSelectedOf` and `_isPushedOf` get error

## 4.15.3

- fix: url is missing / at the beginning
Expand Down
6 changes: 3 additions & 3 deletions lib/src/navigator/navigator_route_settings.dart
Original file line number Diff line number Diff line change
Expand Up @@ -136,15 +136,15 @@ extension NavigatorRouteSettings on RouteSettings {

/// Indicates whether this route is generated by build
///
bool get isBuilt => _isBuiltOf[name!] ?? false;
bool get isBuilt => _isBuiltOf[this] ?? false;

set isBuilt(bool built) {
_isBuiltOf[this] = built;
}

/// Indicates whether this route is generated by push
///
bool get isPushed => _isPushedOf[name!] ?? false;
bool get isPushed => _isPushedOf[this] ?? false;

set isPushed(bool pushed) {
_isPushedOf[this] = pushed;
Expand All @@ -156,7 +156,7 @@ extension NavigatorRouteSettings on RouteSettings {
if (!isBuilt) {
return null;
}
return _isSelectedOf[name!];
return _isSelectedOf[this];
}

set isSelected(bool? selected) {
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: flutter_thrio
description: Thrio makes it easy and fast to add flutter to existing mobile applications, and provide a simple and consistent navigator APIs.
version: 4.15.3
version: 4.15.4
homepage: https://github.com/flutter-thrio/flutter_thrio

environment:
Expand Down

0 comments on commit 4ce9856

Please sign in to comment.