Buttons extension

Extension on Widget that allows to easily convert a widget to a Material.IO Widget Buttons.

on

Methods

containedButton(BuildContext context, {required void onPressed()?}) Widget
Contained button (high emphasis) Contained buttons have more emphasis, as they use a color fill and shadow. Widget to be converted to a Material.IO Widget ContainedButton.
outlinedButton(BuildContext context, {required void onPressed()?}) Widget
Outlined Button (medium emphasis) Outlined buttons are used for more emphasis than text buttons due to the stroke. Widget to be converted to a Material.IO Widget OutlinedButton.
textButton(BuildContext context, {required void onPressed()?}) Widget
Text button (low emphasis) Text buttons are typically used for less important actions. Widget to be converted to a Material.IO Widget TextButton.