File tree Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -462,15 +462,6 @@ class RoutesBeamStack extends BeamStack<BeamState> {
462
462
/// A wrapper used as [BeamStack.builder] .
463
463
final Widget Function (BuildContext context, Widget navigator)? navBuilder;
464
464
465
- /// They are regenerated on [buildPages] ,
466
- /// so they are only valid for one build cycle.
467
- ///
468
- /// The reason for not making them persistent across build cycles is that
469
- /// we can't know the [BeamPage.key] before creating them (see [buildPages] ).
470
- // final Map<LocalKey, BeamPageNotifier> _pageNotifiers = {};
471
- // final List<BeamPageNotifier> _pageNotifiers = [];
472
- // final Map<ValueKey, BeamPageNotifier> _pageNotifiers = {};
473
-
474
465
@override
475
466
Widget builder (BuildContext context, Widget navigator) {
476
467
return navBuilder? .call (context, navigator) ?? navigator;
Original file line number Diff line number Diff line change @@ -50,6 +50,11 @@ class BeamerDelegate extends RouterDelegate<RouteInformation>
50
50
updateListenable? .addListener (_update);
51
51
}
52
52
53
+ /// They are regenerated on [buildPages] ,
54
+ /// so they are only valid for one build cycle.
55
+ ///
56
+ /// The reason for not making them persistent across build cycles is that
57
+ /// we can't know the [BeamPage.key] before creating them (see [buildPages] ).
53
58
final Map <LocalKey , BeamPageStateNotifier > pageNotifiers = {};
54
59
55
60
bool _firstBuild = true ;
You can’t perform that action at this time.
0 commit comments