fix: fixing pushing FaB when snackbar showed
This commit is contained in:
parent
6770e70edd
commit
f4259a785e
|
@ -73,6 +73,7 @@ class _NavigationPageState extends State<NavigationPage>
|
|||
child: SlideTransition(
|
||||
position: _slideAnimation,
|
||||
child: Scaffold(
|
||||
resizeToAvoidBottomInset: false,
|
||||
extendBody: true,
|
||||
backgroundColor: whiteColor,
|
||||
body: IndexedStack(
|
||||
|
@ -159,6 +160,9 @@ class _NavigationPageState extends State<NavigationPage>
|
|||
border: Border.all(color: whiteColor, width: 4),
|
||||
),
|
||||
child: RawMaterialButton(
|
||||
disabledElevation: 0,
|
||||
autofocus: false,
|
||||
focusElevation: 0,
|
||||
onPressed: () => router.push("/requestpickup"),
|
||||
shape: const CircleBorder(),
|
||||
elevation: 0,
|
||||
|
|
|
@ -105,8 +105,15 @@ class _SelectCollectorScreenState extends State<SelectCollectorScreen> {
|
|||
Navigator.pop(context);
|
||||
ScaffoldMessenger.of(context).showSnackBar(
|
||||
SnackBar(
|
||||
content: Text(
|
||||
"${collector.name} dipilih sebagai pengepul.",
|
||||
behavior: SnackBarBehavior.floating,
|
||||
content: Text('Data berhasil disimpan'),
|
||||
margin: const EdgeInsets.only(
|
||||
// bottom: 90,
|
||||
left: 16,
|
||||
right: 16,
|
||||
),
|
||||
shape: RoundedRectangleBorder(
|
||||
borderRadius: BorderRadius.circular(12),
|
||||
),
|
||||
),
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue