Skip to content

Commit

Permalink
snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
busslina committed Sep 25, 2024
1 parent 017eb2c commit 6f6d679
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions package/lib/src/beamer_delegate.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1028,15 +1028,21 @@ class BeamerDelegate<T extends BeamPageInfo>

// Hidden pages
for (int i = 0; i < _currentPages.length - 1; i++) {
pageStateNotifiers[_currentPages[i].key]!
..value = BeamPageState(isPinnacle: false)
..notifyListeners(ignore: isFirstBuild);
final notifier = pageStateNotifiers[_currentPages[i].key];
if (notifier != null) {
notifier
..value = BeamPageState(isPinnacle: false)
..notifyListeners(ignore: isFirstBuild);
}
}

// Pinnacle page
pageStateNotifiers[_currentPages.last.key]!
..value = BeamPageState(isPinnacle: true)
..notifyListeners(ignore: isFirstBuild);
final notifier = pageStateNotifiers[_currentPages.last.key];
if (notifier != null) {
notifier
..value = BeamPageState(isPinnacle: true)
..notifyListeners(ignore: isFirstBuild);
}
}

void _setBrowserTitle(BuildContext context) {
Expand Down

0 comments on commit 6f6d679

Please sign in to comment.