MVP #141
@@ -6,6 +6,7 @@ class FullWidthButton extends StatelessWidget {
|
|||||||
required this.text,
|
required this.text,
|
||||||
required this.borderColor,
|
required this.borderColor,
|
||||||
required this.infillColor,
|
required this.infillColor,
|
||||||
|
this.disabledInfillColor,
|
||||||
required this.sizeRelativeToWidth,
|
required this.sizeRelativeToWidth,
|
||||||
required this.onPressed,
|
required this.onPressed,
|
||||||
});
|
});
|
||||||
@@ -13,6 +14,7 @@ class FullWidthButton extends StatelessWidget {
|
|||||||
final String text;
|
final String text;
|
||||||
final Color borderColor;
|
final Color borderColor;
|
||||||
final Color infillColor;
|
final Color infillColor;
|
||||||
|
final Color? disabledInfillColor;
|
||||||
final double sizeRelativeToWidth;
|
final double sizeRelativeToWidth;
|
||||||
final VoidCallback? onPressed;
|
final VoidCallback? onPressed;
|
||||||
|
|
||||||
@@ -21,6 +23,7 @@ class FullWidthButton extends StatelessWidget {
|
|||||||
return ElevatedButton(
|
return ElevatedButton(
|
||||||
onPressed: onPressed,
|
onPressed: onPressed,
|
||||||
style: ElevatedButton.styleFrom(
|
style: ElevatedButton.styleFrom(
|
||||||
|
disabledBackgroundColor: disabledInfillColor,
|
||||||
minimumSize: Size(
|
minimumSize: Size(
|
||||||
MediaQuery.sizeOf(context).width * sizeRelativeToWidth,
|
MediaQuery.sizeOf(context).width * sizeRelativeToWidth,
|
||||||
60,
|
60,
|
||||||
|
|||||||
Reference in New Issue
Block a user