Closed riverscuomo closed 11 months ago
extendBodyBehindAppBar: true, appBar: AppBar( backgroundColor: Colors.transparent, elevation: 0, leading: GestureDetector( child: const Icon(Icons.arrow_back), onTap: () { context.pop(); }, ),
the scaffold and appbar have to be outside above the nav shell
/// Application shell
ShellRoute(
navigatorKey: _shellNavigatorKey,
builder: (BuildContext context, GoRouterState state, Widget child) {
return ScaffoldWithPlayerAndNavBar(
navigationShell: child,
key: _sectionANavigatorKey,
);
},
routes:
i mean this is what i want
Reverse Chronological (beaming to previous state) Reverse chronological navigation is navigating to wherever we were before. In case of deep-linking (e.g. coming to /books/2 from /authors/3 instead of from /books), this will not be the same as pop. Beamer keeps navigation history in beamingHistory so there is an ability to navigate chronologically to a previous entry in beamingHistory. This is called "beaming back". Reverse chronological navigation is also what the browser's back button does, although not via beamBack, but through its internal mechanics.
Beamer.of(context).beamBack();
doing this in a separate nav bloc means passing another bloc as a parameter through all the screens
Ugh this was ugly. hopefully gorouter implements this soon.
ok i need to add a transparent appbar to the nav shell and remove it from lib screen and playlist screen.