defaultButton static method
Widget
defaultButton({
- required VoidCallback handler,
- required Widget widget,
- Color? fillColor,
- bool border = false,
- EdgeInsets padding = const EdgeInsets.only(top: 10),
Implementation
static Widget defaultButton({
required VoidCallback handler,
required Widget widget,
Color? fillColor,
bool border = false,
EdgeInsets padding = const EdgeInsets.only(top: 10),
}) {
return Padding(
padding: padding,
child: ElevatedButton(
onPressed: handler,
style: ButtonStyle(
backgroundColor: MaterialStateProperty.all<Color?>(fillColor),
),
child: widget,
),
);
}