mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-14 17:55:58 -07:00
[Bugfix] Properly show FAB in ScreenLayout.dual
This commit is contained in:
parent
aaa6a737cb
commit
c4f33e5039
3 changed files with 3 additions and 12 deletions
|
|
@ -92,7 +92,7 @@ class NestedNavigationDrawer extends ConsumerWidget {
|
|||
),
|
||||
...views.map((library) => DrawerListButton(
|
||||
label: library.name,
|
||||
selected: checkLibrary(context, library.id),
|
||||
selected: context.router.currentUrl.contains(library.id),
|
||||
actions: [
|
||||
ItemActionButton(
|
||||
label: Text(context.localized.scanLibrary),
|
||||
|
|
@ -151,13 +151,4 @@ class NestedNavigationDrawer extends ConsumerWidget {
|
|||
],
|
||||
);
|
||||
}
|
||||
|
||||
bool checkLibrary(BuildContext context, String id) {
|
||||
try {
|
||||
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