Skip to content

Commit

Permalink
fix: [NO-TASK] Add MoonButton.icon constructor (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kypsis committed Feb 9, 2023
1 parent 075ff4d commit a94f79d
Show file tree
Hide file tree
Showing 5 changed files with 103 additions and 347 deletions.
2 changes: 2 additions & 0 deletions example/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,5 @@ app.*.map.json
/android/app/debug
/android/app/profile
/android/app/release

/pubspec.lock
14 changes: 13 additions & 1 deletion example/lib/src/storybook/stories/button.dart
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class ButtonStory extends Story {
mainAxisAlignment: MainAxisAlignment.center,
children: [
const SizedBox(height: 64),
const TextDivider(text: "Base button"),
const TextDivider(text: "Base button and icon button"),
const SizedBox(height: 32),
MoonButton(
onTap: showDisabledKnob ? null : () {},
Expand All @@ -114,6 +114,18 @@ class ButtonStory extends Story {
label: showLabelKnob ? Text(customLabelTextKnob) : null,
rightIcon: showRightIconKnob ? const MoonPlaceholderIcon() : null,
),
const SizedBox(height: 32),
MoonButton.icon(
onTap: showDisabledKnob ? null : () {},
borderRadius: BorderRadius.circular(showBorderRadiusKnob.toDouble()),
showBorder: showBorderKnob,
buttonSize: buttonSizesKnob,
isFullWidth: setFullWidthKnob,
backgroundColor: color,
showPulseEffect: showPulseEffectKnob,
showPulseEffectJiggle: showPulseEffectJiggleKnob,
icon: showLeftIconKnob ? const MoonPlaceholderIcon() : null,
),
const SizedBox(height: 40),
const TextDivider(text: "Main buttons"),
const SizedBox(height: 32),
Expand Down
345 changes: 0 additions & 345 deletions example/pubspec.lock

This file was deleted.

Loading

0 comments on commit a94f79d

Please sign in to comment.