From 1d834703bec6c979d49061caf5bd6191118e0cd4 Mon Sep 17 00:00:00 2001 From: NaiJi Date: Sun, 4 Feb 2024 11:12:14 +0400 Subject: [PATCH 1/2] feat(ui): Move provider card title to the top row - Resolve: https://git.selfprivacy.org/SelfPrivacy/selfprivacy.org.app/issues/448 --- lib/ui/pages/providers/providers.dart | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/lib/ui/pages/providers/providers.dart b/lib/ui/pages/providers/providers.dart index 5b2285f3..a4dbc517 100644 --- a/lib/ui/pages/providers/providers.dart +++ b/lib/ui/pages/providers/providers.dart @@ -148,9 +148,18 @@ class _Card extends StatelessWidget { Row( mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ - IconStatusMask( - status: state, - icon: Icon(icon, size: 30, color: Colors.white), + Row( + children: [ + IconStatusMask( + status: state, + icon: Icon(icon, size: 30, color: Colors.white), + ), + const SizedBox(width: 8), + Text( + title, + style: Theme.of(context).textTheme.titleLarge, + ), + ], ), if (state != StateType.uninitialized) IconStatusMask( @@ -167,10 +176,6 @@ class _Card extends StatelessWidget { ], ), const SizedBox(height: 8), - Text( - title, - style: Theme.of(context).textTheme.titleLarge, - ), if (state != StateType.uninitialized) Text( subtitle, From aec259301cb42a58c0aa4c92be9a5a2d6e70560e Mon Sep 17 00:00:00 2001 From: NaiJi Date: Mon, 4 Mar 2024 14:58:16 +0400 Subject: [PATCH 2/2] feat(ui): Change provider card title to headline medium - Resolve: https://git.selfprivacy.org/SelfPrivacy/selfprivacy.org.app/issues/448 --- lib/ui/pages/providers/providers.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ui/pages/providers/providers.dart b/lib/ui/pages/providers/providers.dart index c4cf2dc7..554c594b 100644 --- a/lib/ui/pages/providers/providers.dart +++ b/lib/ui/pages/providers/providers.dart @@ -157,7 +157,7 @@ class _Card extends StatelessWidget { const SizedBox(width: 8), Text( title, - style: Theme.of(context).textTheme.titleLarge, + style: Theme.of(context).textTheme.headlineMedium, ), ], ),