Skip to content

Commit

Permalink
Deprecate Tag uppercase
Browse files Browse the repository at this point in the history
  • Loading branch information
Kypsis committed May 14, 2024
1 parent ea3f579 commit e63e483
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/src/theme/tag/tag_size_properties.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ class MoonTagSizeProperties extends ThemeExtension<MoonTagSizeProperties> with D
final TextStyle textStyle;

/// The upper case text style of the MoonTag.
@Deprecated(
"Handle upper case text style properly at place of usage. This property will be removed in 1.0.0 release.",
)
final TextStyle upperCaseTextStyle;

const MoonTagSizeProperties({
Expand All @@ -33,6 +36,9 @@ class MoonTagSizeProperties extends ThemeExtension<MoonTagSizeProperties> with D
required this.iconSizeValue,
required this.padding,
required this.textStyle,
@Deprecated(
"Handle upper case text style properly at place of usage. This property will be removed in 1.0.0 release.",
)
required this.upperCaseTextStyle,
});

Expand Down
6 changes: 6 additions & 0 deletions lib/src/widgets/tag/tag.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ enum MoonTagSize {

class MoonTag extends StatelessWidget {
/// Whether to use the upper case text style for the tag.
@Deprecated(
"Handle upper case text style properly at place of usage. This property will be removed in 1.0.0 release.",
)
final bool isUpperCase;

/// The border radius of the tag.
Expand Down Expand Up @@ -64,6 +67,9 @@ class MoonTag extends StatelessWidget {
/// Creates a Moon Design tag.
const MoonTag({
super.key,
@Deprecated(
"Handle upper case text style properly at place of usage. This property will be removed in 1.0.0 release.",
)
this.isUpperCase = true,
this.borderRadius,
this.backgroundColor,
Expand Down

0 comments on commit e63e483

Please sign in to comment.