Fix duplicate MaterialApp in api example test (#154550)

This PR fixes two tests that created a nested `MaterialApp` (and it simplifies another test).
This commit is contained in:
Bruno Leroux
2024-09-04 08:38:33 +02:00
committed by GitHub
parent 6caae154a9
commit dce20c97dd
2 changed files with 3 additions and 13 deletions

View File

@@ -9,9 +9,7 @@ import 'package:flutter_test/flutter_test.dart';
void main() {
testWidgets('Tapping FAB increments counter', (WidgetTester tester) async {
await tester.pumpWidget(
const MaterialApp(
home: example.ValueListenableBuilderExample(),
),
const example.ValueListenableBuilderExampleApp(),
);
String getCount() {