From c7a556311d6bc52efdfab054fd0d02952f3da52b Mon Sep 17 00:00:00 2001 From: Benimautner Date: Sun, 23 Jul 2023 22:08:09 +0200 Subject: [PATCH] fixed new button width --- lib/theme/button.dart | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/theme/button.dart b/lib/theme/button.dart index 44b22ba..87ccf54 100644 --- a/lib/theme/button.dart +++ b/lib/theme/button.dart @@ -17,7 +17,11 @@ class FancyButton extends StatelessWidget { @override Widget build(BuildContext context) { - return ElevatedButton(onPressed: onPressed, child: child); + return ElevatedButton(onPressed: onPressed, + child: SizedBox( + width: width, + child: Center(child: child), + ),); return Padding( padding: vStandardVerticalPadding, child: Container(