feat: add load animation to providers screen
parent
d7bf6a0c06
commit
ed7eb3ad29
|
@ -152,6 +152,15 @@ class _Card extends StatelessWidget {
|
||||||
status: state,
|
status: state,
|
||||||
icon: Icon(icon, size: 30, color: Colors.white),
|
icon: Icon(icon, size: 30, color: Colors.white),
|
||||||
),
|
),
|
||||||
|
if (state == StateType.uninitialized)
|
||||||
|
const SizedBox(
|
||||||
|
width: 24,
|
||||||
|
height: 24,
|
||||||
|
child: CircularProgressIndicator(
|
||||||
|
valueColor:
|
||||||
|
AlwaysStoppedAnimation<Color>(Colors.white),
|
||||||
|
),
|
||||||
|
),
|
||||||
if (state != StateType.uninitialized)
|
if (state != StateType.uninitialized)
|
||||||
IconStatusMask(
|
IconStatusMask(
|
||||||
status: state,
|
status: state,
|
||||||
|
|
Loading…
Reference in New Issue