Skip to content

Commit

Permalink
fix: [MDS-453] Chip types should be separated via intrinsic properties (
Browse files Browse the repository at this point in the history
  • Loading branch information
Kypsis authored Mar 23, 2023
1 parent b3954ba commit 99d0c08
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions example/lib/src/storybook/stories/chip.dart
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@ class ChipStory extends Story {
rightIcon: showRightIconKnob ? Icon(resolvedIconVariant) : null,
),
const SizedBox(height: 40),
const TextDivider(text: "Ghost Chip"),
const TextDivider(text: "Text Chip"),
const SizedBox(height: 32),
MoonGhostChip(
MoonTextChip(
isActive: isActiveKnob,
borderRadius: BorderRadius.circular(borderRadiusKnob.toDouble()),
showBorder: showBorderKnob,
Expand Down
2 changes: 1 addition & 1 deletion lib/moon_design.dart
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export 'package:moon_design/src/widgets/buttons/outlined_button.dart';
export 'package:moon_design/src/widgets/buttons/text_button.dart';
export 'package:moon_design/src/widgets/checkbox/checkbox.dart';
export 'package:moon_design/src/widgets/chips/chip.dart';
export 'package:moon_design/src/widgets/chips/ghost_chip.dart';
export 'package:moon_design/src/widgets/chips/text_chip.dart';
export 'package:moon_design/src/widgets/common/animated_icon_theme.dart';
export 'package:moon_design/src/widgets/common/base_control.dart';
export 'package:moon_design/src/widgets/common/effects/focus_effect.dart';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import 'package:moon_design/src/theme/colors.dart';
import 'package:moon_design/src/theme/theme.dart';
import 'package:moon_design/src/widgets/chips/chip.dart';

class MoonGhostChip extends StatelessWidget {
class MoonTextChip extends StatelessWidget {
/// The callback that is called when the chip is tapped or pressed.
final VoidCallback? onTap;

Expand Down Expand Up @@ -107,8 +107,8 @@ class MoonGhostChip extends StatelessWidget {
/// The widget in the right icon slot of the chip.
final Widget? rightIcon;

/// MDS ghost chip widget.
const MoonGhostChip({
/// MDS text chip widget.
const MoonTextChip({
super.key,
this.onTap,
this.onLongPress,
Expand Down

0 comments on commit 99d0c08

Please sign in to comment.