Answers for "flutter floatingactionbutton size"

10

floatingactionbutton flutter

Widget build(BuildContext context) {
  return Scaffold(
    appBar: AppBar(
      title: const Text('Floating Action Button'),
    ),
    body: Center(
      child: const Text('Press the button below!')
    ),
    floatingActionButton: FloatingActionButton(
      onPressed: () {
        // Add your onPressed code here!
      },
      child: Icon(Icons.navigation),
      backgroundColor: Colors.green,
    ),
  );
}
Posted by: Guest on November-05-2020
0

flutter reduce size of floating action button

floatingActionButton: Container(
        height: 100.0,
        width: 100.0,
        child: FittedBox(
          child: FloatingActionButton(onPressed: () {}),
        ),
      ),
Posted by: Guest on August-15-2021

Code answers related to "flutter floatingactionbutton size"

Browse Popular Code Answers by Language