This commit is contained in:
kejaro committed 2026-09-27 21:41:56 +01:00
1 parent 97c10c8d12
commit 212410f716
10 files changed
+1061 -32

No files matched your search

+4 -2
View File
@@ -8,7 +8,9 @@ import 'ui/features/dashboard/views/match_results_view.dart';
import 'ui/features/settings/views/settings_view.dart';
class MobileApp extends StatefulWidget {
const MobileApp({super.key});
const MobileApp({super.key, this.matchRepository});
final MatchRepository? matchRepository;
@override
State<MobileApp> createState() => _MobileAppState();
@@ -24,7 +26,7 @@ class _MobileAppState extends State<MobileApp> {
super.initState();
_themeController = ThemeController();
_matchResultsViewModel = MatchResultsViewModel(
repository: MatchRepository(),
repository: widget.matchRepository ?? MatchRepository(),
);
_matchResultsViewModel.loadMatches();
}