Unverified Commit 9690ef58 authored by Jason Simmons's avatar Jason Simmons Committed by GitHub

Update Gallery demo app themes for Material3 compatibility (#131093)

parent d7ed5dc2
...@@ -23,8 +23,9 @@ const double _kRecipePageMaxWidth = 500.0; ...@@ -23,8 +23,9 @@ const double _kRecipePageMaxWidth = 500.0;
final Set<Recipe?> _favoriteRecipes = <Recipe?>{}; final Set<Recipe?> _favoriteRecipes = <Recipe?>{};
final ThemeData _kTheme = ThemeData( final ThemeData _kTheme = ThemeData(
appBarTheme: const AppBarTheme(foregroundColor: Colors.white, backgroundColor: Colors.teal),
brightness: Brightness.light, brightness: Brightness.light,
primarySwatch: Colors.teal, floatingActionButtonTheme: const FloatingActionButtonThemeData(foregroundColor: Colors.white),
); );
class PestoHome extends StatelessWidget { class PestoHome extends StatelessWidget {
......
...@@ -92,6 +92,7 @@ ThemeData _buildShrineTheme() { ...@@ -92,6 +92,7 @@ ThemeData _buildShrineTheme() {
textTheme: _buildShrineTextTheme(base.textTheme), textTheme: _buildShrineTextTheme(base.textTheme),
primaryTextTheme: _buildShrineTextTheme(base.primaryTextTheme), primaryTextTheme: _buildShrineTextTheme(base.primaryTextTheme),
iconTheme: _customIconTheme(base.iconTheme), iconTheme: _customIconTheme(base.iconTheme),
appBarTheme: const AppBarTheme(backgroundColor: kShrinePink100),
); );
} }
......
...@@ -99,7 +99,7 @@ class _LoginPageState extends State<LoginPage> { ...@@ -99,7 +99,7 @@ class _LoginPageState extends State<LoginPage> {
// of Shrine completely. // of Shrine completely.
Navigator.of(context, rootNavigator: true).pop(); Navigator.of(context, rootNavigator: true).pop();
}, },
child: const Text('CANCEL'), child: Text('CANCEL', style: Theme.of(context).textTheme.bodySmall),
), ),
ElevatedButton( ElevatedButton(
style: ElevatedButton.styleFrom( style: ElevatedButton.styleFrom(
...@@ -111,7 +111,7 @@ class _LoginPageState extends State<LoginPage> { ...@@ -111,7 +111,7 @@ class _LoginPageState extends State<LoginPage> {
onPressed: () { onPressed: () {
Navigator.pop(context); Navigator.pop(context);
}, },
child: const Text('NEXT'), child: Text('NEXT', style: Theme.of(context).textTheme.bodySmall),
), ),
], ],
), ),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment