Answers for "flutter button bar"

10

flutter button

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

buttonbar flutter example

ButtonBar(
  children: <Widget>[
    FlatButton(
      child: Text('Ok'),
      color: Colors.blue,
      onPressed: () {/** */},
    ),
    FlatButton(
      child: Text('Cancel'),
      color: Colors.blue,
      onPressed: () {/** */},
    ),
  ],
)
Posted by: Guest on April-30-2020
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

Code answers related to "flutter button bar"

Browse Popular Code Answers by Language