From 3273c817c90252ddb82eb67d0ce8753eac9f2230 Mon Sep 17 00:00:00 2001 From: Miguel Beltran Date: Mon, 6 Feb 2023 04:46:04 +0100 Subject: [PATCH] Enable Material 3 in testing_app (#1628) Co-authored-by: Brett Morgan --- testing_app/lib/main.dart | 3 ++- testing_app/lib/screens/home.dart | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/testing_app/lib/main.dart b/testing_app/lib/main.dart index c30ea7927..ebd8b72e1 100644 --- a/testing_app/lib/main.dart +++ b/testing_app/lib/main.dart @@ -40,8 +40,9 @@ class TestingApp extends StatelessWidget { child: MaterialApp.router( title: 'Testing Sample', theme: ThemeData( - primarySwatch: Colors.blue, + colorSchemeSeed: Colors.blue, visualDensity: VisualDensity.adaptivePlatformDensity, + useMaterial3: true, ), routerConfig: router(), ), diff --git a/testing_app/lib/screens/home.dart b/testing_app/lib/screens/home.dart index 949f55901..ea8a09c79 100644 --- a/testing_app/lib/screens/home.dart +++ b/testing_app/lib/screens/home.dart @@ -20,7 +20,6 @@ class HomePage extends StatelessWidget { title: const Text('Testing Sample'), actions: [ TextButton.icon( - style: TextButton.styleFrom(foregroundColor: Colors.white), onPressed: () { context.go(FavoritesPage.fullPath); },