diff --git a/example/lib/pages/components/button_example.dart b/example/lib/pages/components/button_example.dart index baf17840..a7a1faab 100644 --- a/example/lib/pages/components/button_example.dart +++ b/example/lib/pages/components/button_example.dart @@ -107,16 +107,10 @@ class _ButtonExampleState extends State { Column(children: inputButtons(ZetaWidgetBorder.rounded)), Text('Sharp Buttons', style: ZetaTextStyles.displayMedium), Column(children: inputButtons(ZetaWidgetBorder.sharp)), - Text('Floating Action Buttons', - style: ZetaTextStyles.displayMedium), - Text('Tap buttons to change current FAB: ', - style: ZetaTextStyles.bodyMedium), - Wrap( - children: - fabs.divide(SizedBox.square(dimension: 10)).toList()), - ] - .divide(const SizedBox.square(dimension: ZetaSpacing.m)) - .toList(), + Text('Floating Action Buttons', style: ZetaTextStyles.displayMedium), + Text('Tap buttons to change current FAB: ', style: ZetaTextStyles.bodyMedium), + Wrap(children: fabs.divide(SizedBox.square(dimension: 10)).toList()), + ].divide(const SizedBox.square(dimension: ZetaSpacing.m)).toList(), ), ), Expanded(child: const SizedBox()), diff --git a/lib/src/components/buttons/button.dart b/lib/src/components/buttons/button.dart index 7c0091e6..252cdd1b 100644 --- a/lib/src/components/buttons/button.dart +++ b/lib/src/components/buttons/button.dart @@ -119,8 +119,7 @@ class ZetaButton extends StatelessWidget { Widget build(BuildContext context) { final colors = Zeta.of(context).colors; return ConstrainedBox( - constraints: - BoxConstraints(minHeight: _minConstraints, minWidth: _minConstraints), + constraints: BoxConstraints(minHeight: _minConstraints, minWidth: _minConstraints), child: FilledButton( onPressed: onPressed, style: buttonStyle(colors, borderType, type, null), @@ -136,9 +135,7 @@ class ZetaButton extends StatelessWidget { ); } - TextStyle get _textStyle => size == ZetaWidgetSize.small - ? ZetaTextStyles.labelMedium - : ZetaTextStyles.labelLarge; + TextStyle get _textStyle => size == ZetaWidgetSize.small ? ZetaTextStyles.labelMedium : ZetaTextStyles.labelLarge; double get _minConstraints { switch (size) {