add size to account icon placeholder

This commit is contained in:
Adam Velebil 2024-04-15 17:06:56 +02:00
parent b70914cea1
commit e71e6f3a34
No known key found for this signature in database
GPG Key ID: C9B1E4A3CBBD2E10

View File

@ -66,7 +66,10 @@ class AccountIcon extends ConsumerWidget {
fit: BoxFit.fill,
loader: IconFileLoader(ref, file),
placeholderBuilder: (BuildContext _) {
return DelayedVisibility(
return SizedBox(
width: _width,
height: _height,
child: DelayedVisibility(
delay: const Duration(milliseconds: 10),
child: Stack(alignment: Alignment.center, children: [
Opacity(
@ -75,6 +78,7 @@ class AccountIcon extends ConsumerWidget {
),
const CircularProgressIndicator(),
]),
),
);
});
}