Update flutter_lints to 6.0.0 and fix widget tests

- Upgrade flutter_lints from 5.0.0 to 6.0.0
- Fix widget test to reference correct app class (ArcheryBookkeeperApp)
- Update widget test to check for actual app title "Archery Scoring"
- Clean up project description in pubspec.yaml

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Mikkeli Matlock
2025-08-23 00:31:08 +09:00
parent d7cbe2e87b
commit 78753071d0
3 changed files with 10 additions and 20 deletions
+4 -14
View File
@@ -5,26 +5,16 @@
// gestures. You can also use WidgetTester to find child widgets in the widget
// tree, read text, and verify that the values of widget properties are correct.
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:archery_bookkeeper/main.dart';
void main() {
testWidgets('Counter increments smoke test', (WidgetTester tester) async {
testWidgets('Archery Bookkeeper app loads', (WidgetTester tester) async {
// Build our app and trigger a frame.
await tester.pumpWidget(const MyApp());
await tester.pumpWidget(const ArcheryBookkeeperApp());
// Verify that our counter starts at 0.
expect(find.text('0'), findsOneWidget);
expect(find.text('1'), findsNothing);
// Tap the '+' icon and trigger a frame.
await tester.tap(find.byIcon(Icons.add));
await tester.pump();
// Verify that our counter has incremented.
expect(find.text('0'), findsNothing);
expect(find.text('1'), findsOneWidget);
// Verify that the app loads properly
expect(find.text('Archery Scoring'), findsOneWidget);
});
}