Search
 
SCRIPT & CODE EXAMPLE
 

DART

how to style a text button in flutter

 TextButton(
    child: Text('Text'),
    style: ButtonStyle(backgroundColor: MaterialStateProperty.all(Colors.red)),
    onPressed: () {
         // action on pressed
    },
),
Comment

text button flutter style

TextButton(
	child: Text('Text'),
    style: TextButton.styleFrom(primary: Colors.blue),
    onPressed: () {
    	print('Pressed');
    },
)
Comment

textbutton style flutter

TextButton
Comment

PREVIOUS NEXT
Code Example
Dart :: flutter popupmenubutton 
Dart :: operators in dart 
Dart :: dartpad missing browser features 
Dart :: flutter tooltip margin 
Dart :: linearprogressindicator flutter 
Dart :: install getx 
Dart :: string to datetime flutter 
Dart :: dart utf-16 
Dart :: dart enum 
Dart :: dart loop through object 
Dart :: flutter alertdialog 
Dart :: flutter alertdialog padding 
Dart :: flutter add value to list<map<string, int 
Dart :: at this point the state of the widget element tree is no longer stable. flutter 
Dart :: dart combine maps 
Dart :: or operator in dart 
Dart :: dart power operator 
Dart :: using the late keyword in flutter 
Dart :: flutter remove dropdown shadow appbar 
Dart :: dart inline if else 
Dart :: could not find dart in your flutter sdk. please run 
Dart :: flutter localstorage clear 
Dart :: flutter pass onchanged callback in arguments 
Dart :: change name of flutter app 
Dart :: how to rename file in flutter 
Dart :: lifecycle methods flutter 
Dart :: flutter portrate only 
Dart :: random.secure dart 
Dart :: how to hide the keyboard in flutter 
Dart :: dart main 
ADD CONTENT
Topic
Content
Source link
Name
6+4 =