Basic Syntax of Extended FAB

FloatingActionButton.extended(
onPressed: () {
// Add your main action here
},
label: Text('Extended FAB'),
icon: Icon(Icons.add),
backgroundColor: Colors.blue,
);

Flutter – Extended Floating Action Button

In Flutter, the Floating Action Button (FAB) is a common UI Widget. There are scenarios where you might need to extend the functionality of the FAB to offer additional options or actions. In this article we are going to create a Floating Action Button by clicking it will show 2 more options we can add more options to it according to your requirements. A sample video is given below to get an idea about what we are going to do in this article.

Similar Reads

Basic Syntax of Extended FAB

FloatingActionButton.extended( onPressed: () { // Add your main action here }, label: Text('Extended FAB'), icon: Icon(Icons.add), backgroundColor: Colors.blue,);...

Step By Step Implementation

Step 1: Create a New Project in Android Studio...