From 221b497a28b45ed4418b51f6f10d091d7ddd198e Mon Sep 17 00:00:00 2001 From: Daniel Eshkeri Date: Mon, 28 Oct 2024 14:07:39 +0000 Subject: [PATCH] fix: added MainAxisSize.min to avatar column to regulate height --- example/widgetbook/main.dart | 1 - lib/src/components/avatars/avatar.dart | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/example/widgetbook/main.dart b/example/widgetbook/main.dart index 17883eee..11d9754f 100644 --- a/example/widgetbook/main.dart +++ b/example/widgetbook/main.dart @@ -253,7 +253,6 @@ class _HotReloadState extends State { ZetaAddon(), InspectorAddon(enabled: false), ZoomAddon(initialZoom: 1.0), - // min: 1, max: 2, divisions: 4, TextScaleAddon(scales: [1, 1.25, 1.5, 1.75, 2], initialScale: 1), ], ); diff --git a/lib/src/components/avatars/avatar.dart b/lib/src/components/avatars/avatar.dart index 644bd4e3..39a1b7eb 100644 --- a/lib/src/components/avatars/avatar.dart +++ b/lib/src/components/avatars/avatar.dart @@ -252,6 +252,7 @@ class ZetaAvatar extends ZetaStatelessWidget { value: semanticLabel, child: SelectionContainer.disabled( child: Column( + mainAxisSize: MainAxisSize.min, children: [ Stack( children: [