Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

How to attach a FloatingActionButton to the AppBar

Scaffold(
      floatingActionButtonLocation: FloatingActionButtonLocation.centerFloat,
      floatingActionButton: FloatingActionButton(
        child: const Icon(Icons.add),
        onPressed: (){},
      ),
    );
Source by api.flutter.dev #
 
PREVIOUS NEXT
Tagged: #How #attach #FloatingActionButton #AppBar
ADD COMMENT
Topic
Name
3+4 =