From e54835875f46aa8aa9c65d6649f65e14cf102014 Mon Sep 17 00:00:00 2001 From: github-actions Date: Wed, 6 Nov 2024 11:15:23 +0000 Subject: [PATCH] fix(UX-1303): Update avatar boarder width --- example/macos/Podfile.lock | 12 ++++++------ lib/src/components/avatars/avatar.dart | 14 ++++++++++---- 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/example/macos/Podfile.lock b/example/macos/Podfile.lock index 4d2c877c..fbd492e5 100644 --- a/example/macos/Podfile.lock +++ b/example/macos/Podfile.lock @@ -6,7 +6,7 @@ PODS: - shared_preferences_foundation (0.0.1): - Flutter - FlutterMacOS - - sqflite (0.0.3): + - sqflite_darwin (0.0.4): - Flutter - FlutterMacOS - url_launcher_macos (0.0.1): @@ -16,7 +16,7 @@ DEPENDENCIES: - FlutterMacOS (from `Flutter/ephemeral`) - path_provider_foundation (from `Flutter/ephemeral/.symlinks/plugins/path_provider_foundation/darwin`) - shared_preferences_foundation (from `Flutter/ephemeral/.symlinks/plugins/shared_preferences_foundation/darwin`) - - sqflite (from `Flutter/ephemeral/.symlinks/plugins/sqflite/darwin`) + - sqflite_darwin (from `Flutter/ephemeral/.symlinks/plugins/sqflite_darwin/darwin`) - url_launcher_macos (from `Flutter/ephemeral/.symlinks/plugins/url_launcher_macos/macos`) EXTERNAL SOURCES: @@ -26,8 +26,8 @@ EXTERNAL SOURCES: :path: Flutter/ephemeral/.symlinks/plugins/path_provider_foundation/darwin shared_preferences_foundation: :path: Flutter/ephemeral/.symlinks/plugins/shared_preferences_foundation/darwin - sqflite: - :path: Flutter/ephemeral/.symlinks/plugins/sqflite/darwin + sqflite_darwin: + :path: Flutter/ephemeral/.symlinks/plugins/sqflite_darwin/darwin url_launcher_macos: :path: Flutter/ephemeral/.symlinks/plugins/url_launcher_macos/macos @@ -35,8 +35,8 @@ SPEC CHECKSUMS: FlutterMacOS: 8f6f14fa908a6fb3fba0cd85dbd81ec4b251fb24 path_provider_foundation: 2b6b4c569c0fb62ec74538f866245ac84301af46 shared_preferences_foundation: fcdcbc04712aee1108ac7fda236f363274528f78 - sqflite: 673a0e54cc04b7d6dba8d24fb8095b31c3a99eec - url_launcher_macos: 5f437abeda8c85500ceb03f5c1938a8c5a705399 + sqflite_darwin: a553b1fd6fe66f53bbb0fe5b4f5bab93f08d7a13 + url_launcher_macos: c82c93949963e55b228a30115bd219499a6fe404 PODFILE CHECKSUM: 353c8bcc5d5b0994e508d035b5431cfe18c1dea7 diff --git a/lib/src/components/avatars/avatar.dart b/lib/src/components/avatars/avatar.dart index 79453f2d..e0ed8bf3 100644 --- a/lib/src/components/avatars/avatar.dart +++ b/lib/src/components/avatars/avatar.dart @@ -400,20 +400,26 @@ extension on ZetaAvatarSize { } double borderSize(BuildContext context) { + // TODO(UX-1304): Awaiting updated design specs for border size switch (this) { case ZetaAvatarSize.xxxl: - return 11; + return 11.12; case ZetaAvatarSize.xxl: + return 6.67; case ZetaAvatarSize.xl: + return 4.45; case ZetaAvatarSize.l: + return 3.56; case ZetaAvatarSize.m: - return Zeta.of(context).spacing.minimum; - + return 2.66; case ZetaAvatarSize.s: + return 2.22; case ZetaAvatarSize.xs: + return 2; case ZetaAvatarSize.xxs: + return 1.78; case ZetaAvatarSize.xxxs: - return ZetaBorders.medium; + return 1.33; } }