From acbf2089e08d880a37dc37f839e48fe6cf713466 Mon Sep 17 00:00:00 2001 From: krawieck Date: Tue, 6 Oct 2020 16:27:35 +0200 Subject: [PATCH] replace row + sizedbox with padding --- lib/pages/home_tab.dart | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/lib/pages/home_tab.dart b/lib/pages/home_tab.dart index 137312b..318f855 100644 --- a/lib/pages/home_tab.dart +++ b/lib/pages/home_tab.dart @@ -90,21 +90,17 @@ class HomeTab extends HookWidget { VisualDensity(vertical: VisualDensity.minimumDensity), leading: (instancesIcons.hasData && instancesIcons.data[instance] != null) - ? Row( - mainAxisAlignment: MainAxisAlignment.center, - mainAxisSize: MainAxisSize.min, - children: [ - SizedBox(width: 20), - SizedBox( - width: 25, + ? Padding( + padding: const EdgeInsets.only(left: 20), + child: SizedBox( + width: 25, + height: 25, + child: CachedNetworkImage( + imageUrl: instancesIcons.data[instance], height: 25, - child: CachedNetworkImage( - imageUrl: instancesIcons.data[instance], - height: 25, - width: 25, - ), + width: 25, ), - ], + ), ) : SizedBox(width: 30), ),