This commit is contained in:
Felipe
2024-04-09 21:28:16 -05:00
parent 60547febb6
commit ef06730840
12 changed files with 1440 additions and 230 deletions
@@ -0,0 +1,38 @@
import 'package:flutter/material.dart';
class GeneralSecondaryButton extends StatelessWidget {
final String label;
final VoidCallback onPressed;
final Color? color;
const GeneralSecondaryButton({
super.key,
required this.label,
required this.onPressed,
this.color,
});
@override
Widget build(BuildContext context) {
return ElevatedButton(
onPressed: onPressed,
style: FilledButton.styleFrom(
backgroundColor: color ?? Theme.of(context).colorScheme.primary,
padding: const EdgeInsets.symmetric(vertical: 15),
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(10),
),
),
child: Container(
alignment: Alignment.center,
child: Text(
label,
style: const TextStyle(
color: Colors.white,
fontSize: 18,
),
),
),
);
}
}