riverscuomo / public-bug-hunt

A place to file bug reports for all of my apps
GNU General Public License v3.0
6 stars 0 forks source link

Add Forward Navigation Arrow to Library #27

Closed riverscuomo closed 11 months ago

riverscuomo commented 12 months ago

ok i need to add a transparent appbar to the nav shell and remove it from lib screen and playlist screen.

riverscuomo commented 12 months ago

extendBodyBehindAppBar: true, appBar: AppBar( backgroundColor: Colors.transparent, elevation: 0, leading: GestureDetector( child: const Icon(Icons.arrow_back), onTap: () { context.pop(); }, ),

riverscuomo commented 12 months ago

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: [ /// '/' is the default route GoRoute( path: '/', builder: (BuildContext context, GoRouterState state) { return Scaffold( extendBodyBehindAppBar: true, appBar: LibraryAppBar(), body: LibraryScreen(), ); }, ),

riverscuomo commented 11 months ago

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();

riverscuomo commented 11 months ago

doing this in a separate nav bloc means passing another bloc as a parameter through all the screens

riverscuomo commented 11 months ago

Ugh this was ugly. hopefully gorouter implements this soon.