replace row + sizedbox with padding

This commit is contained in:
krawieck 2020-10-06 16:27:35 +02:00
parent b82622190f
commit acbf2089e0
1 changed files with 9 additions and 13 deletions

View File

@ -90,12 +90,9 @@ class HomeTab extends HookWidget {
VisualDensity(vertical: VisualDensity.minimumDensity), VisualDensity(vertical: VisualDensity.minimumDensity),
leading: (instancesIcons.hasData && leading: (instancesIcons.hasData &&
instancesIcons.data[instance] != null) instancesIcons.data[instance] != null)
? Row( ? Padding(
mainAxisAlignment: MainAxisAlignment.center, padding: const EdgeInsets.only(left: 20),
mainAxisSize: MainAxisSize.min, child: SizedBox(
children: [
SizedBox(width: 20),
SizedBox(
width: 25, width: 25,
height: 25, height: 25,
child: CachedNetworkImage( child: CachedNetworkImage(
@ -104,7 +101,6 @@ class HomeTab extends HookWidget {
width: 25, width: 25,
), ),
), ),
],
) )
: SizedBox(width: 30), : SizedBox(width: 30),
), ),