diff --git a/packages/flutter/test/material/app_builder_test.dart b/packages/flutter/test/material/app_builder_test.dart index 851a88edcf..cc28307f40 100644 --- a/packages/flutter/test/material/app_builder_test.dart +++ b/packages/flutter/test/material/app_builder_test.dart @@ -9,14 +9,9 @@ void main() { testWidgets("builder doesn't get called if app doesn't change", (WidgetTester tester) async { final List log = []; final Widget app = MaterialApp( - theme: ThemeData( - useMaterial3: false, - primarySwatch: Colors.green, - ), home: const Placeholder(), builder: (BuildContext context, Widget? child) { log.add('build'); - expect(Theme.of(context).primaryColor, Colors.green); expect(Directionality.of(context), TextDirection.ltr); expect(child, isA()); return const Placeholder(); @@ -42,14 +37,9 @@ void main() { final List log = []; await tester.pumpWidget( MaterialApp( - theme: ThemeData( - useMaterial3: false, - primarySwatch: Colors.yellow, - ), home: Builder( builder: (BuildContext context) { log.add('build'); - expect(Theme.of(context).primaryColor, Colors.yellow); expect(Directionality.of(context), TextDirection.rtl); return const Placeholder(); },