Skip to content

Commit 5c3a32e

Browse files
committed
example update
1 parent f66846f commit 5c3a32e

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

Diff for: example/test/widget_test.dart

+24-24
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
1-
// This is a basic Flutter widget test.
2-
//
3-
// To perform an interaction with a widget in your test, use the WidgetTester
4-
// utility in the flutter_test package. For example, you can send tap and scroll
5-
// gestures. You can also use WidgetTester to find child widgets in the widget
6-
// tree, read text, and verify that the values of widget properties are correct.
1+
// // This is a basic Flutter widget test.
2+
// //
3+
// // To perform an interaction with a widget in your test, use the WidgetTester
4+
// // utility in the flutter_test package. For example, you can send tap and scroll
5+
// // gestures. You can also use WidgetTester to find child widgets in the widget
6+
// // tree, read text, and verify that the values of widget properties are correct.
77

8-
import 'package:flutter/material.dart';
9-
import 'package:flutter_test/flutter_test.dart';
8+
// import 'package:flutter/material.dart';
9+
// import 'package:flutter_test/flutter_test.dart';
1010

11-
import 'package:vx_example/main.dart';
11+
// import 'package:vx_example/main.dart';
1212

13-
void main() {
14-
testWidgets('Counter increments smoke test', (WidgetTester tester) async {
15-
// Build our app and trigger a frame.
16-
await tester.pumpWidget(const MyApp());
13+
// void main() {
14+
// testWidgets('Counter increments smoke test', (WidgetTester tester) async {
15+
// // Build our app and trigger a frame.
16+
// await tester.pumpWidget(const MyApp());
1717

18-
// Verify that our counter starts at 0.
19-
expect(find.text('0'), findsOneWidget);
20-
expect(find.text('1'), findsNothing);
18+
// // Verify that our counter starts at 0.
19+
// expect(find.text('0'), findsOneWidget);
20+
// expect(find.text('1'), findsNothing);
2121

22-
// Tap the '+' icon and trigger a frame.
23-
await tester.tap(find.byIcon(Icons.add));
24-
await tester.pump();
22+
// // Tap the '+' icon and trigger a frame.
23+
// await tester.tap(find.byIcon(Icons.add));
24+
// await tester.pump();
2525

26-
// Verify that our counter has incremented.
27-
expect(find.text('0'), findsNothing);
28-
expect(find.text('1'), findsOneWidget);
29-
});
30-
}
26+
// // Verify that our counter has incremented.
27+
// expect(find.text('0'), findsNothing);
28+
// expect(find.text('1'), findsOneWidget);
29+
// });
30+
// }

0 commit comments

Comments
 (0)