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