Datenbankstruktur für Spiele #16

Merged
flixcoo merged 22 commits from feature/13-datenbankstruktur-fuer-spiele into development 2025-11-15 15:56:40 +00:00
2 changed files with 4 additions and 5 deletions
Showing only changes of commit b83fe03f35 - Show all commits

View File

@@ -8,14 +8,14 @@ void main() {
runApp(
Provider<AppDatabase>(
create: (context) => AppDatabase(),
child: const MyApp(),
child: const GameTracker(),
dispose: (context, db) => db.close(),
),
);
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
class GameTracker extends StatelessWidget {
const GameTracker({super.key});
@override
Widget build(BuildContext context) {

View File

@@ -7,13 +7,12 @@
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:game_tracker/main.dart';
void main() {
testWidgets('Counter increments smoke test', (WidgetTester tester) async {
// Build our app and trigger a frame.
await tester.pumpWidget(const MyApp());
await tester.pumpWidget(const GameTracker());
// Verify that our counter starts at 0.
expect(find.text('0'), findsOneWidget);