services
This commit is contained in:
@@ -4,12 +4,14 @@ class GeneralPrimaryButton extends StatelessWidget {
|
||||
final VoidCallback onPressed;
|
||||
final String label;
|
||||
final bool isEnabled;
|
||||
final Color? color;
|
||||
|
||||
const GeneralPrimaryButton({
|
||||
super.key,
|
||||
required this.onPressed,
|
||||
required this.label,
|
||||
this.isEnabled = true,
|
||||
this.color,
|
||||
});
|
||||
|
||||
@override
|
||||
@@ -17,7 +19,7 @@ class GeneralPrimaryButton extends StatelessWidget {
|
||||
return ElevatedButton(
|
||||
onPressed: isEnabled ? onPressed : null,
|
||||
style: ElevatedButton.styleFrom(
|
||||
backgroundColor: Theme.of(context).colorScheme.primary,
|
||||
backgroundColor: color ?? Theme.of(context).colorScheme.primary,
|
||||
elevation: 5,
|
||||
minimumSize: Size(
|
||||
MediaQuery.of(context).size.width * 0.5,
|
||||
|
||||
Reference in New Issue
Block a user