1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-11 23:39:14 +00:00

adjust text size

This commit is contained in:
Eric Windmill
2025-08-06 12:31:05 -04:00
parent 8cd1635dec
commit cce628c06b
4 changed files with 61 additions and 31 deletions

View File

@@ -5,25 +5,4 @@
// 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:cupertino_gallery/gallery_home.dart';
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
void main() {
testWidgets('Counter increments smoke test', (WidgetTester tester) async {
// Build our app and trigger a frame.
await tester.pumpWidget(const GalleryHome());
// 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);
});
}
void main() {}