From 6012526b33a29703ab3f2d347f6d4ed5983cbd58 Mon Sep 17 00:00:00 2001 From: ryleedavis Date: Fri, 19 May 2023 09:48:21 -0600 Subject: [PATCH] Custom text button widget --- lib/pages/widgets/custom_text_button.dart | 33 +++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 lib/pages/widgets/custom_text_button.dart diff --git a/lib/pages/widgets/custom_text_button.dart b/lib/pages/widgets/custom_text_button.dart new file mode 100644 index 0000000..d2f3ab1 --- /dev/null +++ b/lib/pages/widgets/custom_text_button.dart @@ -0,0 +1,33 @@ +import 'package:flutter/material.dart'; + +enum ButtonHeight { + xxs, + xs, + s, + m, + l, + xl, + xxl, +} + +class CustomTextButtonBase extends StatelessWidget { + const CustomTextButtonBase({ + Key? key, + this.width, + this.height, + this.textButton, + }) : super(key: key); + + final double? width; + final double? height; + final TextButton? textButton; + + @override + Widget build(BuildContext context) { + return SizedBox( + height: height, + width: width, + child: textButton, + ); + } +}