textButton static method
Widget
textButton({
- required VoidCallback handler,
- required Widget widget,
- EdgeInsets padding = const EdgeInsets.only(top: 10),
- Color? overlayColor,
Implementation
static Widget textButton({
required VoidCallback handler,
required Widget widget,
EdgeInsets padding = const EdgeInsets.only(top: 10),
Color? overlayColor,
}) {
return Padding(
padding: padding,
child: TextButton(
onPressed: handler,
style: ButtonStyle(
overlayColor: MaterialStateProperty.all<Color?>(overlayColor),
),
child: widget,
),
);
}