From 47bb090e725be017e0a8e252c35e25b26b6e9ef2 Mon Sep 17 00:00:00 2001 From: mathiskirchner Date: Mon, 17 Nov 2025 18:23:07 +0100 Subject: [PATCH] added option to choose disabledBackgroundColor in FullWidthButton --- lib/presentation/widgets/full_width_button.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/presentation/widgets/full_width_button.dart b/lib/presentation/widgets/full_width_button.dart index fc2ca78..fe9913c 100644 --- a/lib/presentation/widgets/full_width_button.dart +++ b/lib/presentation/widgets/full_width_button.dart @@ -6,6 +6,7 @@ class FullWidthButton extends StatelessWidget { required this.text, required this.borderColor, required this.infillColor, + this.disabledInfillColor, required this.sizeRelativeToWidth, required this.onPressed, }); @@ -13,6 +14,7 @@ class FullWidthButton extends StatelessWidget { final String text; final Color borderColor; final Color infillColor; + final Color? disabledInfillColor; final double sizeRelativeToWidth; final VoidCallback? onPressed; @@ -21,6 +23,7 @@ class FullWidthButton extends StatelessWidget { return ElevatedButton( onPressed: onPressed, style: ElevatedButton.styleFrom( + disabledBackgroundColor: disabledInfillColor, minimumSize: Size( MediaQuery.sizeOf(context).width * sizeRelativeToWidth, 60,