Compare commits
2 Commits
7a80c1a792
...
12856342a8
| Author | SHA1 | Date | |
|---|---|---|---|
| 12856342a8 | |||
| b0a5145490 |
@@ -112,7 +112,7 @@ class _HomeViewState extends State<HomeView> {
|
|||||||
visible: !isLoading && loadedRecentMatches.isNotEmpty,
|
visible: !isLoading && loadedRecentMatches.isNotEmpty,
|
||||||
replacement: const Center(
|
replacement: const Center(
|
||||||
heightFactor: 12,
|
heightFactor: 12,
|
||||||
child: Text('No recent games available.'),
|
child: Text('No recent games available'),
|
||||||
),
|
),
|
||||||
child: Column(
|
child: Column(
|
||||||
mainAxisAlignment: MainAxisAlignment.start,
|
mainAxisAlignment: MainAxisAlignment.start,
|
||||||
@@ -145,7 +145,7 @@ class _HomeViewState extends State<HomeView> {
|
|||||||
] else ...[
|
] else ...[
|
||||||
const Center(
|
const Center(
|
||||||
heightFactor: 5.35,
|
heightFactor: 5.35,
|
||||||
child: Text('No second game available.'),
|
child: Text('No second game available'),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -119,11 +119,11 @@ class _MatchViewState extends State<MatchView> {
|
|||||||
db.matchDao.getAllMatches(),
|
db.matchDao.getAllMatches(),
|
||||||
Future.delayed(minimumSkeletonDuration),
|
Future.delayed(minimumSkeletonDuration),
|
||||||
]).then((results) {
|
]).then((results) {
|
||||||
final loadedMatches = results[0] as List<Match>;
|
|
||||||
matches = loadedMatches
|
|
||||||
..sort((a, b) => b.createdAt.compareTo(a.createdAt));
|
|
||||||
if (mounted) {
|
if (mounted) {
|
||||||
setState(() {
|
setState(() {
|
||||||
|
final loadedMatches = results[0] as List<Match>;
|
||||||
|
matches = loadedMatches
|
||||||
|
..sort((a, b) => b.createdAt.compareTo(a.createdAt));
|
||||||
isLoading = false;
|
isLoading = false;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -179,10 +179,10 @@ class _PlayerSelectionState extends State<PlayerSelection> {
|
|||||||
icon: Icons.info,
|
icon: Icons.info,
|
||||||
title: 'Info',
|
title: 'Info',
|
||||||
message: allPlayers.isEmpty
|
message: allPlayers.isEmpty
|
||||||
? 'No players created yet.'
|
? 'No players created yet'
|
||||||
: (selectedPlayers.length == allPlayers.length)
|
: (selectedPlayers.length == allPlayers.length)
|
||||||
? 'No more players to add.'
|
? 'No more players to add'
|
||||||
: 'No players found with that name.',
|
: 'No players found with that name',
|
||||||
),
|
),
|
||||||
child: ListView.builder(
|
child: ListView.builder(
|
||||||
itemCount: suggestedPlayers.length,
|
itemCount: suggestedPlayers.length,
|
||||||
|
|||||||
Reference in New Issue
Block a user