Answers for "button widgets in flutter"

9

flutter button

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

button in flutter

//Text in Button
TextButton(
  onPressed: ()=>{}, 
  child: const Text("Signout")
),

//Text button with icon
TextButton.icon(
  label: Text('Signout'),
  icon: Icon(Icons.logout),
  onPressed: () {}
),

//Text button with filled background
TextButton(
  child: Text("button"),
  style: TextButton.styleFrom(
    primary: Colors.white,  //Text Color
    backgroundColor: Colors.teal, //Button Background Color
  ),
  onPressed: () {},
),
Posted by: Guest on January-05-2022
9

buttons in flutter

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

Code answers related to "button widgets in flutter"

Code answers related to "Dart"

Browse Popular Code Answers by Language