Reputation: 59
i have simple code right here:
LegacyFlatButton.icon(
onPressed: () {},
icon: Icon(Icons.edit_location),
label: Text('Edit Location'),
color: Colors.white,
),
I just want to remove the outline on this button, so that this button looks the same as the background color of the Scaffold.
Upvotes: 1
Views: 67
Reputation: 389
LegacyFlatButton.icon(
onPressed: () {},
icon: Icon(Icons.edit_location),
label: Text('Edit Location'),
color: Theme.of(context).scaffoldBackgroundColor,
),
Simple
Upvotes: 0
Reputation: 14785
Try TextButton.icon widget try below code hope its help to you
TextButton.icon(
onPressed: (){},
icon: Icon(Icons.edit_location),
label:Text('Edit Location'),
)
Upvotes: 1