This commit is contained in:
Felipe
2024-04-05 11:56:45 -05:00
parent f46450e5db
commit e82c7c3afd
18 changed files with 1297 additions and 546 deletions
+3 -1
View File
@@ -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,