Scaffold(
floatingActionButtonLocation: FloatingActionButtonLocation.endDocked,
floatingActionButton: SizedBox(
width: size.width,
child: customButton(title: "Next", ontap: () {})),
body: Column(children:…mychilderns)
);
And it Shows something like this.
I have tried but i am expecting like this
2
Answers
try giving width = double.infinity;
You can use
floatingActionButtonLocation: FloatingActionButtonLocation.centerDocked
instead.Basically the FloatingActionButtonLocation predefined values are refer to the X (
center
) and Y (docked
) axis accordingly (as for thecenterDocked
example). So with this in mind you can better use the offered combinations.Also you can set any location you want by defining a custom offset like so:
and then using that as
floatingActionButtonLocation
value.