mirror of
https://github.com/tonytins/bullseye.git
synced 2025-06-25 10:24:44 -04:00
Initial source commit
This commit is contained in:
commit
b29a46366a
95 changed files with 2833 additions and 0 deletions
22
test/widget_test.dart
Normal file
22
test/widget_test.dart
Normal file
|
@ -0,0 +1,22 @@
|
|||
// This is a basic Flutter widget test.
|
||||
//
|
||||
// To perform an interaction with a widget in your test, use the WidgetTester
|
||||
// utility that Flutter provides. For example, you can send tap and scroll
|
||||
// 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:bullseye/main.dart';
|
||||
|
||||
void main() {
|
||||
testWidgets('Smoke test', (WidgetTester tester) async {
|
||||
// Build our app and trigger a frame.
|
||||
await tester.pumpWidget(BullsEyeApp());
|
||||
|
||||
// Tap the '+' icon and trigger a frame.
|
||||
await tester.tap(find.text("Hit me!"));
|
||||
await tester.pump();
|
||||
});
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue