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