refactors design to flutter driven service core.

This commit is contained in:
2026-05-16 20:52:39 -07:00
parent 533a3d74f3
commit 5ea7442c7c
8 changed files with 532 additions and 400 deletions
+4 -12
View File
@@ -11,20 +11,12 @@ import 'package:flutter_test/flutter_test.dart';
import 'package:kryz_go_flutter/main.dart';
void main() {
testWidgets('Counter increments smoke test', (WidgetTester tester) async {
// Build our app and trigger a frame.
testWidgets('App renders title and controls', (WidgetTester tester) async {
await tester.pumpWidget(const MyApp());
// 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);
expect(find.text('KRYZ Go!'), findsWidgets);
expect(find.widgetWithIcon(ElevatedButton, Icons.play_arrow_rounded), findsOneWidget);
expect(find.widgetWithIcon(ElevatedButton, Icons.stop_rounded), findsOneWidget);
});
}