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