Skip to content

Commit

Permalink
fix: revert avatar size enum change
Browse files Browse the repository at this point in the history
  • Loading branch information
thelukewalton committed Jun 11, 2024
1 parent 734e86b commit b387a1b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion example/lib/pages/components/avatar_example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ extension on ZetaAvatarSize {
return ZetaSpacingBase.x50;
case ZetaAvatarSize.xxl:
return ZetaSpacingBase.x30;
case ZetaAvatarSize.xl_1:
case ZetaAvatarSize.xl:
return ZetaSpacing.xl_10;
case ZetaAvatarSize.l:
return ZetaSpacing.xl_9;
Expand Down
16 changes: 8 additions & 8 deletions lib/src/components/avatars/avatar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ enum ZetaAvatarSize {
/// [xxl] 120 pixels
xxl,

/// [xl_1] 80 pixels
xl_1,
/// [xl] 80 pixels
xl,

/// [l] 64 pixels
l,
Expand All @@ -37,7 +37,7 @@ class ZetaAvatar extends StatelessWidget {
/// Constructor for [ZetaAvatar]
const ZetaAvatar({
super.key,
this.size = ZetaAvatarSize.xl_1,
this.size = ZetaAvatarSize.xl,
this.image,
this.initials,
this.backgroundColor,
Expand All @@ -49,7 +49,7 @@ class ZetaAvatar extends StatelessWidget {
/// Constructor for [ZetaAvatar] with image.
const ZetaAvatar.image({
super.key,
this.size = ZetaAvatarSize.xl_1,
this.size = ZetaAvatarSize.xl,
this.image,
this.lowerBadge,
this.upperBadge,
Expand All @@ -61,7 +61,7 @@ class ZetaAvatar extends StatelessWidget {
const ZetaAvatar.initials({
super.key,
required this.initials,
this.size = ZetaAvatarSize.xl_1,
this.size = ZetaAvatarSize.xl,
this.lowerBadge,
this.upperBadge,
this.borderColor,
Expand All @@ -72,7 +72,7 @@ class ZetaAvatar extends StatelessWidget {
ZetaAvatar.fromName({
super.key,
required String name,
this.size = ZetaAvatarSize.xl_1,
this.size = ZetaAvatarSize.xl,
this.lowerBadge,
this.upperBadge,
this.borderColor,
Expand Down Expand Up @@ -230,7 +230,7 @@ extension on ZetaAvatarSize {
return ZetaSpacingBase.x50;
case ZetaAvatarSize.xxl:
return ZetaSpacingBase.x30;
case ZetaAvatarSize.xl_1:
case ZetaAvatarSize.xl:
return ZetaSpacing.xl_10;
case ZetaAvatarSize.l:
return ZetaSpacing.xl_9;
Expand All @@ -252,7 +252,7 @@ extension on ZetaAvatarSize {
case ZetaAvatarSize.xxxl:
return 11;
case ZetaAvatarSize.xxl:
case ZetaAvatarSize.xl_1:
case ZetaAvatarSize.xl:
case ZetaAvatarSize.l:
case ZetaAvatarSize.m:
return ZetaSpacing.minimum;
Expand Down

0 comments on commit b387a1b

Please sign in to comment.