fix linter errors
All checks were successful
Pull Request Pipeline / test (pull_request) Successful in 2m27s
Pull Request Pipeline / lint (pull_request) Successful in 2m31s

This commit is contained in:
2025-11-23 18:09:45 +01:00
parent 2616f7c113
commit e4abf53f66

View File

@@ -171,7 +171,7 @@ class _HomeViewState extends State<HomeView> {
)) ))
.take(2) .take(2)
.toList(); .toList();
if (games.length > 0) if (games.isNotEmpty) {
return Column( return Column(
mainAxisAlignment: MainAxisAlignment.start, mainAxisAlignment: MainAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
@@ -212,11 +212,12 @@ class _HomeViewState extends State<HomeView> {
], ],
], ],
); );
else } else {
return const Center( return const Center(
heightFactor: 4, heightFactor: 4,
child: Text('No recent games available.'), child: Text('No recent games available.'),
); );
}
}, },
), ),
), ),