Answers for "flutter ElevatedButton colors"

6

Flutter Elevated button color

ElevatedButton(
            child: Text('Button'),
            onPressed: () {},
            style: ButtonStyle(
                backgroundColor: MaterialStateProperty.all(Colors.red),
                padding: MaterialStateProperty.all(EdgeInsets.all(50)),
                textStyle: MaterialStateProperty.all(TextStyle(fontSize: 30))),
),
Posted by: Guest on June-01-2021
3

ElevatedButton flutter style

ElevatedButton(
  style: ElevatedButton.styleFrom(
  onPrimary: Colors.black87,
  primary: Colors.grey[300],
  minimumSize: Size(88, 36),
  padding: EdgeInsets.symmetric(horizontal: 16),
  shape: ElevatedButton.styleFrom(
    primary: ThemeColors.darkBg,
    shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(10.0), side: BorderSide(color: Colors.black)),
    ),
  onPressed: () { },
  child: Text('Looks like a RaisedButton'),
)
Posted by: Guest on June-08-2021

Code answers related to "flutter ElevatedButton colors"

Browse Popular Code Answers by Language