Skip to content

Commit

Permalink
snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
busslina committed Sep 19, 2024
1 parent f638d09 commit 46e0926
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions package/lib/src/beam_stack.dart
Original file line number Diff line number Diff line change
Expand Up @@ -507,9 +507,8 @@ class RoutesBeamStack extends BeamStack<BeamState> {
// Initializing page state
final stateChangeNotifier = page.stateChangeNotifier;
if (stateChangeNotifier != null) {
parent.pageNotifiers[page.key] = stateChangeNotifier;
stateChangeNotifier.value =
BeamPageState(isPinnacle: index == sortedRoutes.length - 1);
parent.pageNotifiers[page.key] = stateChangeNotifier
..value = BeamPageState(isPinnacle: index == sortedRoutes.length - 1);
}

return page;
Expand Down

0 comments on commit 46e0926

Please sign in to comment.