Skip to content

Commit

Permalink
fixed new button width
Browse files Browse the repository at this point in the history
  • Loading branch information
Benimautner committed Jul 23, 2023
1 parent c3a8172 commit c7a5563
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/theme/button.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@ class FancyButton extends StatelessWidget {

@override
Widget build(BuildContext context) {
return ElevatedButton(onPressed: onPressed, child: child);
return ElevatedButton(onPressed: onPressed,
child: SizedBox(
width: width,
child: Center(child: child),
),);
return Padding(
padding: vStandardVerticalPadding,
child: Container(
Expand Down

0 comments on commit c7a5563

Please sign in to comment.