Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
9690ef58
Unverified
Commit
9690ef58
authored
Jul 24, 2023
by
Jason Simmons
Committed by
GitHub
Jul 24, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Gallery demo app themes for Material3 compatibility (#131093)
parent
d7ed5dc2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
3 deletions
+5
-3
pesto_demo.dart
...ntegration_tests/flutter_gallery/lib/demo/pesto_demo.dart
+2
-1
app.dart
...ntegration_tests/flutter_gallery/lib/demo/shrine/app.dart
+1
-0
login.dart
...egration_tests/flutter_gallery/lib/demo/shrine/login.dart
+2
-2
No files found.
dev/integration_tests/flutter_gallery/lib/demo/pesto_demo.dart
View file @
9690ef58
...
...
@@ -23,8 +23,9 @@ const double _kRecipePageMaxWidth = 500.0;
final
Set
<
Recipe
?>
_favoriteRecipes
=
<
Recipe
?>{};
final
ThemeData
_kTheme
=
ThemeData
(
appBarTheme:
const
AppBarTheme
(
foregroundColor:
Colors
.
white
,
backgroundColor:
Colors
.
teal
),
brightness:
Brightness
.
light
,
primarySwatch:
Colors
.
teal
,
floatingActionButtonTheme:
const
FloatingActionButtonThemeData
(
foregroundColor:
Colors
.
white
)
,
);
class
PestoHome
extends
StatelessWidget
{
...
...
dev/integration_tests/flutter_gallery/lib/demo/shrine/app.dart
View file @
9690ef58
...
...
@@ -92,6 +92,7 @@ ThemeData _buildShrineTheme() {
textTheme:
_buildShrineTextTheme
(
base
.
textTheme
),
primaryTextTheme:
_buildShrineTextTheme
(
base
.
primaryTextTheme
),
iconTheme:
_customIconTheme
(
base
.
iconTheme
),
appBarTheme:
const
AppBarTheme
(
backgroundColor:
kShrinePink100
),
);
}
...
...
dev/integration_tests/flutter_gallery/lib/demo/shrine/login.dart
View file @
9690ef58
...
...
@@ -99,7 +99,7 @@ class _LoginPageState extends State<LoginPage> {
// of Shrine completely.
Navigator
.
of
(
context
,
rootNavigator:
true
).
pop
();
},
child:
const
Text
(
'CANCEL'
),
child:
Text
(
'CANCEL'
,
style:
Theme
.
of
(
context
).
textTheme
.
bodySmall
),
),
ElevatedButton
(
style:
ElevatedButton
.
styleFrom
(
...
...
@@ -111,7 +111,7 @@ class _LoginPageState extends State<LoginPage> {
onPressed:
()
{
Navigator
.
pop
(
context
);
},
child:
const
Text
(
'NEXT'
),
child:
Text
(
'NEXT'
,
style:
Theme
.
of
(
context
).
textTheme
.
bodySmall
),
),
],
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment