From ed7eb3ad296835ed0f7c7d3a03b25ab6aa871f23 Mon Sep 17 00:00:00 2001 From: dettlaff Date: Thu, 28 Dec 2023 02:53:34 +0400 Subject: [PATCH 1/2] feat: add load animation to providers screen --- lib/ui/pages/providers/providers.dart | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/ui/pages/providers/providers.dart b/lib/ui/pages/providers/providers.dart index 5b2285f3..4626de8b 100644 --- a/lib/ui/pages/providers/providers.dart +++ b/lib/ui/pages/providers/providers.dart @@ -152,6 +152,15 @@ class _Card extends StatelessWidget { status: state, icon: Icon(icon, size: 30, color: Colors.white), ), + if (state == StateType.uninitialized) + const SizedBox( + width: 24, + height: 24, + child: CircularProgressIndicator( + valueColor: + AlwaysStoppedAnimation(Colors.white), + ), + ), if (state != StateType.uninitialized) IconStatusMask( status: state, -- 2.42.0 From 170439aa26935f8ec1f123a5f5ee97de8f395e4b Mon Sep 17 00:00:00 2001 From: dettlaff Date: Mon, 8 Jan 2024 11:59:20 +0400 Subject: [PATCH 2/2] fix: change icon --- lib/ui/pages/providers/providers.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/ui/pages/providers/providers.dart b/lib/ui/pages/providers/providers.dart index 4626de8b..05e58f40 100644 --- a/lib/ui/pages/providers/providers.dart +++ b/lib/ui/pages/providers/providers.dart @@ -156,9 +156,9 @@ class _Card extends StatelessWidget { const SizedBox( width: 24, height: 24, - child: CircularProgressIndicator( - valueColor: - AlwaysStoppedAnimation(Colors.white), + child: Icon( + Icons.access_time, + color: Colors.white, ), ), if (state != StateType.uninitialized) -- 2.42.0