Primary button component

This commit is contained in:
Juan Felipe Duarte
2023-04-12 14:29:37 -05:00
parent c72f346db7
commit 30f6985711
5 changed files with 62 additions and 110 deletions
+32
View File
@@ -0,0 +1,32 @@
import 'package:flutter/material.dart';
class PrimaryButtom extends StatelessWidget {
final VoidCallback onPressed;
final String label;
const PrimaryButtom(
{super.key, required this.onPressed, required this.label});
@override
Widget build(BuildContext context) {
return ElevatedButton(
onPressed: onPressed,
style: ElevatedButton.styleFrom(
backgroundColor: const Color(0xFF2BA4EC),
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(50),
),
elevation: 0,
minimumSize: const Size(230, 60),
),
child: Text(
label,
style: const TextStyle(
color: Colors.white,
fontWeight: FontWeight.bold,
fontSize: 18,
),
),
);
}
}