fix: fixing pushing FaB when snackbar showed

This commit is contained in:
pahmiudahgede 2025-05-27 10:47:58 +07:00
parent 6770e70edd
commit f4259a785e
2 changed files with 13 additions and 2 deletions

View File

@ -73,6 +73,7 @@ class _NavigationPageState extends State<NavigationPage>
child: SlideTransition( child: SlideTransition(
position: _slideAnimation, position: _slideAnimation,
child: Scaffold( child: Scaffold(
resizeToAvoidBottomInset: false,
extendBody: true, extendBody: true,
backgroundColor: whiteColor, backgroundColor: whiteColor,
body: IndexedStack( body: IndexedStack(
@ -159,6 +160,9 @@ class _NavigationPageState extends State<NavigationPage>
border: Border.all(color: whiteColor, width: 4), border: Border.all(color: whiteColor, width: 4),
), ),
child: RawMaterialButton( child: RawMaterialButton(
disabledElevation: 0,
autofocus: false,
focusElevation: 0,
onPressed: () => router.push("/requestpickup"), onPressed: () => router.push("/requestpickup"),
shape: const CircleBorder(), shape: const CircleBorder(),
elevation: 0, elevation: 0,

View File

@ -105,8 +105,15 @@ class _SelectCollectorScreenState extends State<SelectCollectorScreen> {
Navigator.pop(context); Navigator.pop(context);
ScaffoldMessenger.of(context).showSnackBar( ScaffoldMessenger.of(context).showSnackBar(
SnackBar( SnackBar(
content: Text( behavior: SnackBarBehavior.floating,
"${collector.name} dipilih sebagai pengepul.", content: Text('Data berhasil disimpan'),
margin: const EdgeInsets.only(
// bottom: 90,
left: 16,
right: 16,
),
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(12),
), ),
), ),
); );