Added spacing
This commit is contained in:
@@ -196,11 +196,10 @@ class StatisticsTile extends StatelessWidget {
|
|||||||
Padding(
|
Padding(
|
||||||
padding: const EdgeInsets.only(top: 8.0),
|
padding: const EdgeInsets.only(top: 8.0),
|
||||||
child: Row(
|
child: Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceAround,
|
mainAxisAlignment: MainAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
// Game
|
// Game
|
||||||
if (statistic.selectedGames != null &&
|
if (hasGroup)
|
||||||
statistic.selectedGames!.isNotEmpty)
|
|
||||||
Row(
|
Row(
|
||||||
spacing: 8,
|
spacing: 8,
|
||||||
children: [
|
children: [
|
||||||
@@ -220,10 +219,10 @@ class StatisticsTile extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
if (hasGroup && hasGame) const SizedBox(width: 20),
|
||||||
|
|
||||||
// Group
|
// Group
|
||||||
if (statistic.selectedGroups != null &&
|
if (hasGroup)
|
||||||
statistic.selectedGroups!.isNotEmpty)
|
|
||||||
Row(
|
Row(
|
||||||
spacing: 8,
|
spacing: 8,
|
||||||
children: [
|
children: [
|
||||||
@@ -269,4 +268,10 @@ class StatisticsTile extends StatelessWidget {
|
|||||||
}
|
}
|
||||||
return text;
|
return text;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool get hasGroup =>
|
||||||
|
statistic.selectedGroups != null && statistic.selectedGroups!.isNotEmpty;
|
||||||
|
|
||||||
|
bool get hasGame =>
|
||||||
|
statistic.selectedGames != null && statistic.selectedGames!.isNotEmpty;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user