Answers for "Fab button flutter"

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
10

flutter button

FlatButton(
              color: Colors.red,
              splashColor: Colors.black12,
              onPressed: (){
              },
              child: Text(
                "Nouvelle Texte"
              ),
            ),
Posted by: Guest on April-14-2020
2

flutter iconbutton

IconButton(
            icon: Icon(
              Icons.directions_transit,
            ),
            onPressed: () {},
          ),
Posted by: Guest on August-24-2021
0

Button in flutter

OutlineButton(
  shape: StadiumBorder(),
  highlightedBorderColor: Colors.red,
  borderSide: BorderSide(
    width: 2,
    color: Colors.red
  ),
  onPressed: () { },
  child: Text('OutlineButton with custom shape and border'),
)

OutlinedButton(
  style: OutlinedButton.styleFrom(
    shape: StadiumBorder(),
    side: BorderSide(
      width: 2,
      color: Colors.red
    ),
  ),
  onPressed: () { },
  child: Text('OutlinedButton with custom shape and border'),
)
Posted by: Guest on September-10-2021

Browse Popular Code Answers by Language