I need floating action button like this:
.
Are there standard tools for implementation? I watched both the standard version of the button and the extended one, but did not find anything
Add a Text("YourText") widget in child of FloatingActionButton. Then it will work.
The simplest way to create a button with icon and text in Flutter is to use the new Material button called ElevatedButton with an icon constructor. ElevatedButton. icon() gives you the ability to add the icon and label parameter to the button. The ElevatedButton was introduced with the release of Flutter v1.
You don't need to use an external library because it will grow the size of your bundle.
This is the code:
FloatingActionButton.extended(
onPressed: () {
// Add your onPressed code here!
},
label: Text('Approve'),
icon: Icon(Icons.thumb_up),
backgroundColor: Colors.pink,
)
You can use this flutter package flutter_fab Or you can refer from this article Create Animated FAB in flutter.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With