File tree Expand file tree Collapse file tree
dev/integration_tests/flutter_gallery/lib/demo Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,8 +23,9 @@ const double _kRecipePageMaxWidth = 500.0;
2323final Set <Recipe ?> _favoriteRecipes = < Recipe ? > {};
2424
2525final ThemeData _kTheme = ThemeData (
26+ appBarTheme: const AppBarTheme (foregroundColor: Colors .white, backgroundColor: Colors .teal),
2627 brightness: Brightness .light,
27- primarySwatch : Colors .teal ,
28+ floatingActionButtonTheme : const FloatingActionButtonThemeData (foregroundColor : Colors .white) ,
2829);
2930
3031class PestoHome extends StatelessWidget {
Original file line number Diff line number Diff line change @@ -92,6 +92,7 @@ ThemeData _buildShrineTheme() {
9292 textTheme: _buildShrineTextTheme (base .textTheme),
9393 primaryTextTheme: _buildShrineTextTheme (base .primaryTextTheme),
9494 iconTheme: _customIconTheme (base .iconTheme),
95+ appBarTheme: const AppBarTheme (backgroundColor: kShrinePink100),
9596 );
9697}
9798
Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ class _LoginPageState extends State<LoginPage> {
9999 // of Shrine completely.
100100 Navigator .of (context, rootNavigator: true ).pop ();
101101 },
102- child: const Text ('CANCEL' ),
102+ child: Text ('CANCEL' , style : Theme . of (context).textTheme.bodySmall ),
103103 ),
104104 ElevatedButton (
105105 style: ElevatedButton .styleFrom (
@@ -111,7 +111,7 @@ class _LoginPageState extends State<LoginPage> {
111111 onPressed: () {
112112 Navigator .pop (context);
113113 },
114- child: const Text ('NEXT' ),
114+ child: Text ('NEXT' , style : Theme . of (context).textTheme.bodySmall ),
115115 ),
116116 ],
117117 ),
You can’t perform that action at this time.
0 commit comments