add error message for game deletion and implement search functionality
This commit is contained in:
@@ -19,7 +19,7 @@ import 'package:tallee/presentation/widgets/tiles/match_tile.dart';
|
||||
import 'package:tallee/presentation/widgets/top_centered_message.dart';
|
||||
|
||||
class MatchView extends StatefulWidget {
|
||||
/// A view that displays a list of matches
|
||||
/// A view that displays a list of matches.
|
||||
const MatchView({super.key});
|
||||
|
||||
@override
|
||||
@@ -27,11 +27,14 @@ class MatchView extends StatefulWidget {
|
||||
}
|
||||
|
||||
class _MatchViewState extends State<MatchView> {
|
||||
/// Database instance used to access match data.
|
||||
late final AppDatabase db;
|
||||
|
||||
/// Indicates whether matches are currently being loaded.
|
||||
bool isLoading = true;
|
||||
|
||||
/// Loaded matches from the database,
|
||||
/// initially filled with skeleton matches
|
||||
/// initially filled with skeleton matches.
|
||||
List<Match> matches = List.filled(
|
||||
4,
|
||||
Match(
|
||||
|
||||
Reference in New Issue
Block a user