Increase button border radius (#90)

This commit is contained in:
Tommy Chow 2022-06-29 18:21:56 -04:00
parent 30715a1c0e
commit 8dfabb7ba9

View file

@ -41,7 +41,7 @@ class _ButtonState extends State<Button> with SingleTickerProviderStateMixin {
padding: widget.padding, padding: widget.padding,
splashFactory: Platform.isIOS ? NoSplash.splashFactory : null, splashFactory: Platform.isIOS ? NoSplash.splashFactory : null,
textStyle: TextStyle(fontWeight: FontWeight.bold, fontSize: widget.fontSize), textStyle: TextStyle(fontWeight: FontWeight.bold, fontSize: widget.fontSize),
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(20.0)), shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(30.0)),
elevation: widget.color == null ? 10.0 : 0.0, elevation: widget.color == null ? 10.0 : 0.0,
).copyWith( ).copyWith(
elevation: (widget.color == null || widget.fill) && widget.onPressed != null elevation: (widget.color == null || widget.fill) && widget.onPressed != null