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,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(),
]),
),
);
});
}