flutterfloating-action-buttonsnackbar

How do I set the distance between snackbar and floating action button?


How do I set the distance between snackbar and floating action button?

screenshot


Solution

  • you can't set it !! it's the same as from the bottom plus the SnackBar height .

    but if you want to adjust it you may not use the FAB from the Scaffold but instead make the body a Stack and the latest layer is your FAB and wrap it inside a AnimatedPositioned so you can animate it with the proper distance from the bottom as you want .