@@ -8,33 +8,42 @@ class AppOutlinedButton extends StatelessWidget {
88 final Color textColor;
99 final double borderRadius;
1010 final EdgeInsetsGeometry padding;
11+ final double fontSize;
12+ final FontWeight fontWeight;
1113
1214 const AppOutlinedButton ({
1315 super .key,
1416 required this .text,
1517 required this .onPressed,
1618 this .backgroundColor = Colors .white,
17- this .borderColor = const Color .fromRGBO (197 , 200 , 202 , 1 ),
19+ this .borderColor = const Color .fromRGBO (207 , 217 , 222 , 1 ),
1820 this .textColor = Colors .black,
1921 this .borderRadius = 20 ,
2022 this .padding = const EdgeInsets .symmetric (horizontal: 16 , vertical: 8 ),
23+ this .fontSize = 14 ,
24+ this .fontWeight = FontWeight .w600,
2125 });
2226
2327 @override
2428 Widget build (BuildContext context) {
25- return ElevatedButton (
29+ return OutlinedButton (
2630 onPressed: onPressed,
27- style: ElevatedButton .styleFrom (
31+ style: OutlinedButton .styleFrom (
2832 backgroundColor: backgroundColor,
29- foregroundColor: textColor,
30- elevation: 0 ,
31- padding: padding,
33+ side: BorderSide (color: borderColor, width: 1 ),
3234 shape: RoundedRectangleBorder (
3335 borderRadius: BorderRadius .circular (borderRadius),
34- side: BorderSide (color: borderColor, width: 1 ),
36+ ),
37+ padding: padding,
38+ ),
39+ child: Text (
40+ text,
41+ style: TextStyle (
42+ color: textColor,
43+ fontSize: fontSize,
44+ fontWeight: fontWeight,
3545 ),
3646 ),
37- child: Text (text, style: TextStyle (color: textColor)),
3847 );
3948 }
4049}
0 commit comments