mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-11-29 23:20:03 +03:00
add size to account icon placeholder
This commit is contained in:
parent
b70914cea1
commit
e71e6f3a34
@ -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(),
|
||||
]),
|
||||
),
|
||||
);
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user