Answers for "flutter button"

10

flutter button

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

buttons in flutter

TextButton(
              onPressed: (){
              },
              child: Text(
                "Nouvelle Texte"
              ),
            ),
Posted by: Guest on April-30-2021
0

flutter material button

MaterialButton(
  onPressed: () {},
  child: Text("My text"),
),
Posted by: Guest on September-06-2021
1

flutter button

TextButton(
onPressed: () {
print('I got clicked');
},
child: Text('Button'),
style: TextButton.styleFrom(
primary: Colors.white,
textStyle: TextStyle(fontSize: 20.0),
backgroundColor: Colors.red),
),
Posted by: Guest on September-18-2021
3

flatbutton flutter

FlatButton(
  onPressed: () {
    /*...*/
  },
  child: Text(
    "Flat Button",
  ),
)
Posted by: Guest on October-21-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

Browse Popular Code Answers by Language