diff --git a/experimental/federated_plugin/federated_plugin/example/lib/main.dart b/experimental/federated_plugin/federated_plugin/example/lib/main.dart index e8ddda607..5034ac047 100644 --- a/experimental/federated_plugin/federated_plugin/example/lib/main.dart +++ b/experimental/federated_plugin/federated_plugin/example/lib/main.dart @@ -14,8 +14,9 @@ class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { - return const MaterialApp( - home: HomePage(), + return MaterialApp( + theme: ThemeData.light(useMaterial3: true), + home: const HomePage(), ); } } @@ -49,7 +50,7 @@ class _HomePageState extends State { style: Theme.of(context).textTheme.headlineSmall, ), const SizedBox(height: 16), - ElevatedButton( + FilledButton( onPressed: () async { try { final result = await getBatteryLevel(); diff --git a/experimental/federated_plugin/federated_plugin/example/test/widget_test.dart b/experimental/federated_plugin/federated_plugin/example/test/widget_test.dart index f089561b5..e0f5b568f 100644 --- a/experimental/federated_plugin/federated_plugin/example/test/widget_test.dart +++ b/experimental/federated_plugin/federated_plugin/example/test/widget_test.dart @@ -22,7 +22,7 @@ void main() { await tester.pumpWidget(const MyApp()); // Tap button to retrieve current battery level from platform. - await tester.tap(find.byType(ElevatedButton)); + await tester.tap(find.byType(FilledButton)); await tester.pumpAndSettle(); expect(find.text('Battery Level: $batteryLevel'), findsOneWidget);