How To Attach A FloatingActionButton To The AppBar

[Solved] How To Attach A FloatingActionButton To The AppBar | Dart - Code Explorer | yomemimo.com
Question : How to attach a FloatingActionButton to the AppBar

Answered by : sore-serval-d2a40v4h8jp2

Scaffold( floatingActionButtonLocation: FloatingActionButtonLocation.centerFloat, floatingActionButton: FloatingActionButton( child: const Icon(Icons.add), onPressed: (){}, ), );

Source : https://api.flutter.dev/flutter/material/FloatingActionButtonLocation-class.html | Last Update : Sun, 29 Aug 21

Question : How to attach a FloatingActionButton to the AppBar

Answered by : sore-serval-d2a40v4h8jp2

Scaffold( floatingActionButtonLocation: FloatingActionButtonLocation.endTop, floatingActionButton: FloatingActionButton( child: const Icon(Icons.add), onPressed: (){}, ), );

Source : | Last Update : Sun, 29 Aug 21

Answers related to How to attach a FloatingActionButton to the AppBar

Code Explorer Popular Question For Dart