RaisedButton’ is a widget used to create material design ‘raised-button’ in Flutter. It’s Material.elevation increases when the button is pressed. It adds dimension to otherwise flat layout buttons and gives our UI a totally another look. So let’s dive in and create some awesome buttons in flutter ➡️

RaisedButton Class

RaisedButton class provides many properties to configure the button viz:

const RaisedButton({
Key key,
@required this.onPressed,
this.enabled,
this.color,
this.highlightColor,
this.splashColor,
this.disabledColor,
this.elevation: 5.0,
this.highlightElevation: 10.0,
this.disabledElevation: 0.0,
this.colorBrightness,
this.animationDuration,
this.disabledTextColor,
this.hoverColor,
this.hoverElevation,
this.onLongPress,
this.textColor,
this.textTheme,
this.shape,
this.padding,
this.child,
}) : super(key: key);

Bharat Sharma

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store