Breaking Changes
Flatbutton 대신 TextButton 으로 마이그레이션#
new Container(
child: Flatbutton(
color: Colors.blue,
textColor: Colors.white,
disabledColor: Colors.grey,
disabledTextColor: Colors.black,
padding: EdgeInsets.all(8.0),
splashColor: Colors.blueAccent,
onPressed: () {
/*...*/
},
child: Text(
"Edit Profiles",
style: TextStyle(fontSize: 18.0),
),
),
)
new Container(
child: TextButton(
style: ButtonStyle(
foregroundColor: MaterialStateProperty.all<Color>(Colors.red),
),
onPressed: () {
/*...*/
},
child: Text(
"Edit Profiles",
style: TextStyle(fontSize: 18.0),
),
),
)
출처