mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-05-16 15:02:53 +00:00
New tab list on clients
This commit is contained in:
parent
a5f38915b4
commit
1508c49536
10 changed files with 440 additions and 351 deletions
|
@ -14,11 +14,11 @@ import 'package:adguard_home_manager/providers/servers_provider.dart';
|
|||
import 'package:adguard_home_manager/providers/app_config_provider.dart';
|
||||
|
||||
class ClientsFab extends StatelessWidget {
|
||||
final int tab;
|
||||
final bool isVisible;
|
||||
|
||||
const ClientsFab({
|
||||
Key? key,
|
||||
required this.tab,
|
||||
required this.isVisible
|
||||
}) : super(key: key);
|
||||
|
||||
@override
|
||||
|
@ -67,9 +67,18 @@ class ClientsFab extends StatelessWidget {
|
|||
));
|
||||
}
|
||||
|
||||
return FloatingActionButton(
|
||||
onPressed: () => openAddClient(),
|
||||
child: const Icon(Icons.add),
|
||||
return AnimatedPositioned(
|
||||
duration: const Duration(milliseconds: 100),
|
||||
curve: Curves.easeInOut,
|
||||
bottom: isVisible ?
|
||||
appConfigProvider.showingSnackbar
|
||||
? 70 : 20
|
||||
: -70,
|
||||
right: 20,
|
||||
child: FloatingActionButton(
|
||||
onPressed: openAddClient,
|
||||
child: const Icon(Icons.add),
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue