1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-08 13:58:47 +00:00

Enable Material 3 in testing_app (#1628)

Co-authored-by: Brett Morgan <brettmorgan@google.com>
This commit is contained in:
Miguel Beltran
2023-02-06 04:46:04 +01:00
committed by GitHub
parent 787bf09fe3
commit 3273c817c9
2 changed files with 2 additions and 2 deletions

View File

@@ -40,8 +40,9 @@ class TestingApp extends StatelessWidget {
child: MaterialApp.router( child: MaterialApp.router(
title: 'Testing Sample', title: 'Testing Sample',
theme: ThemeData( theme: ThemeData(
primarySwatch: Colors.blue, colorSchemeSeed: Colors.blue,
visualDensity: VisualDensity.adaptivePlatformDensity, visualDensity: VisualDensity.adaptivePlatformDensity,
useMaterial3: true,
), ),
routerConfig: router(), routerConfig: router(),
), ),

View File

@@ -20,7 +20,6 @@ class HomePage extends StatelessWidget {
title: const Text('Testing Sample'), title: const Text('Testing Sample'),
actions: [ actions: [
TextButton.icon( TextButton.icon(
style: TextButton.styleFrom(foregroundColor: Colors.white),
onPressed: () { onPressed: () {
context.go(FavoritesPage.fullPath); context.go(FavoritesPage.fullPath);
}, },