mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-08 23:18:16 -07:00
[Fixed] Use browser navigation
This commit is contained in:
parent
69b3a77d17
commit
d19fa0ccd0
22 changed files with 210 additions and 156 deletions
|
|
@ -154,7 +154,8 @@ class NestedNavigationDrawer extends ConsumerWidget {
|
|||
|
||||
bool checkLibrary(BuildContext context, String id) {
|
||||
try {
|
||||
return context.routeData.queryParams.isNotEmpty && context.routeData.queryParams.getString('parentId') == id;
|
||||
return context.router.current.name == LibrarySearchRoute().routeName &&
|
||||
(context.routeData.queryParams.isNotEmpty && context.routeData.queryParams.getString('parentId') == id);
|
||||
} catch (e) {
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue