From e71e6f3a34a9f4dae295018e2730d5ab86b7cb79 Mon Sep 17 00:00:00 2001 From: Adam Velebil Date: Mon, 15 Apr 2024 17:06:56 +0200 Subject: [PATCH] add size to account icon placeholder --- lib/oath/views/account_icon.dart | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/lib/oath/views/account_icon.dart b/lib/oath/views/account_icon.dart index 4e8af9f0..db841469 100644 --- a/lib/oath/views/account_icon.dart +++ b/lib/oath/views/account_icon.dart @@ -66,15 +66,19 @@ class AccountIcon extends ConsumerWidget { fit: BoxFit.fill, loader: IconFileLoader(ref, file), placeholderBuilder: (BuildContext _) { - return DelayedVisibility( - delay: const Duration(milliseconds: 10), - child: Stack(alignment: Alignment.center, children: [ - Opacity( - opacity: 0.5, - child: defaultWidget, - ), - const CircularProgressIndicator(), - ]), + return SizedBox( + width: _width, + height: _height, + child: DelayedVisibility( + delay: const Duration(milliseconds: 10), + child: Stack(alignment: Alignment.center, children: [ + Opacity( + opacity: 0.5, + child: defaultWidget, + ), + const CircularProgressIndicator(), + ]), + ), ); }); }