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,15 +66,19 @@ class AccountIcon extends ConsumerWidget {
|
|||||||
fit: BoxFit.fill,
|
fit: BoxFit.fill,
|
||||||
loader: IconFileLoader(ref, file),
|
loader: IconFileLoader(ref, file),
|
||||||
placeholderBuilder: (BuildContext _) {
|
placeholderBuilder: (BuildContext _) {
|
||||||
return DelayedVisibility(
|
return SizedBox(
|
||||||
delay: const Duration(milliseconds: 10),
|
width: _width,
|
||||||
child: Stack(alignment: Alignment.center, children: [
|
height: _height,
|
||||||
Opacity(
|
child: DelayedVisibility(
|
||||||
opacity: 0.5,
|
delay: const Duration(milliseconds: 10),
|
||||||
child: defaultWidget,
|
child: Stack(alignment: Alignment.center, children: [
|
||||||
),
|
Opacity(
|
||||||
const CircularProgressIndicator(),
|
opacity: 0.5,
|
||||||
]),
|
child: defaultWidget,
|
||||||
|
),
|
||||||
|
const CircularProgressIndicator(),
|
||||||
|
]),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user