Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

how to style a text button in flutter

 TextButton(
    child: Text('Text'),
    style: ButtonStyle(backgroundColor: MaterialStateProperty.all(Colors.red)),
    onPressed: () {
         // action on pressed
    },
),
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #style #text #button #flutter
ADD COMMENT
Topic
Name
7+4 =