mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
Hide bottom app bar when multiselect enabled
This commit is contained in:
parent
03866b4c31
commit
293e713af6
3 changed files with 21 additions and 13 deletions
|
|
@ -1,8 +1,8 @@
|
|||
import 'package:auto_route/auto_route.dart';
|
||||
import 'package:easy_localization/easy_localization.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_hooks/flutter_hooks.dart';
|
||||
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
||||
import 'package:immich_mobile/modules/home/providers/multiselect.provider.dart';
|
||||
import 'package:immich_mobile/routing/router.dart';
|
||||
|
||||
class TabControllerPage extends ConsumerWidget {
|
||||
|
|
@ -10,6 +10,7 @@ class TabControllerPage extends ConsumerWidget {
|
|||
|
||||
@override
|
||||
Widget build(BuildContext context, WidgetRef ref) {
|
||||
final multiselectEnabled = ref.watch(multiselectProvider);
|
||||
|
||||
return AutoTabsRouter(
|
||||
routes: [
|
||||
|
|
@ -30,7 +31,7 @@ class TabControllerPage extends ConsumerWidget {
|
|||
opacity: animation,
|
||||
child: child,
|
||||
),
|
||||
bottomNavigationBar: false
|
||||
bottomNavigationBar: multiselectEnabled
|
||||
? null
|
||||
: BottomNavigationBar(
|
||||
selectedLabelStyle: const TextStyle(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue