Skip to content

Commit

Permalink
[automated commit] lint format and import sort
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Feb 26, 2024
1 parent d49906d commit 1207fb0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 15 deletions.
14 changes: 4 additions & 10 deletions example/lib/pages/components/button_example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -107,16 +107,10 @@ class _ButtonExampleState extends State<ButtonExample> {
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()),
Expand Down
7 changes: 2 additions & 5 deletions lib/src/components/buttons/button.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand All @@ -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) {
Expand Down

0 comments on commit 1207fb0

Please sign in to comment.