Answers for "textbutton button style flutter"

4

text button flutter style

TextButton(
	child: Text('Text'),
    style: TextButton.styleFrom(primary: Colors.blue),
    onPressed: () {
    	print('Pressed');
    },
)
Posted by: Guest on June-08-2021
1

flutter button style

ElevatedButton(
  style: ButtonStyle(
    backgroundColor: MaterialStateProperty.resolveWith<Color>(
      (Set<MaterialState> states) {
        if (states.contains(MaterialState.pressed))
          return Theme.of(context).colorScheme.primary.withOpacity(0.5);
        return null; // Use the component's default.
      },
    ),
  ),
)
Posted by: Guest on April-21-2021
0

how to style a text button in flutter

TextButton(
    child: Text('Text'),
    style: ButtonStyle(backgroundColor: MaterialStateProperty.all(Colors.red)),
    onPressed: () {
         // action on pressed
    },
),
Posted by: Guest on October-11-2021
-2

textbutton style flutter

TextButton
Posted by: Guest on October-29-2021

Code answers related to "textbutton button style flutter"

Browse Popular Code Answers by Language