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
22c12f9f
Unverified
Commit
22c12f9f
authored
May 03, 2018
by
Hans Muller
Committed by
GitHub
May 03, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Gallery demos: reordered and retitled (#17220)
parent
50bd39a9
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
83 additions
and
84 deletions
+83
-84
demos.dart
examples/flutter_gallery/lib/gallery/demos.dart
+63
-71
home.dart
examples/flutter_gallery/lib/gallery/home.dart
+20
-13
No files found.
examples/flutter_gallery/lib/gallery/demos.dart
View file @
22c12f9f
This diff is collapsed.
Click to expand it.
examples/flutter_gallery/lib/gallery/home.dart
View file @
22c12f9f
...
...
@@ -176,6 +176,25 @@ class _DemoItem extends StatelessWidget {
final
bool
isDark
=
theme
.
brightness
==
Brightness
.
dark
;
final
double
textScaleFactor
=
MediaQuery
.
of
(
context
)?.
textScaleFactor
??
1.0
;
final
List
<
Widget
>
titleChildren
=
<
Widget
>[
new
Text
(
demo
.
title
,
style:
theme
.
textTheme
.
subhead
.
copyWith
(
color:
isDark
?
Colors
.
white
:
const
Color
(
0xFF202124
),
),
),
];
if
(
demo
.
subtitle
!=
null
)
{
titleChildren
.
add
(
new
Text
(
demo
.
subtitle
,
style:
theme
.
textTheme
.
body1
.
copyWith
(
color:
isDark
?
Colors
.
white
:
const
Color
(
0xFF60646B
)
),
),
);
}
return
new
RawMaterialButton
(
padding:
EdgeInsets
.
zero
,
splashColor:
theme
.
primaryColor
.
withOpacity
(
0.12
),
...
...
@@ -201,19 +220,7 @@ class _DemoItem extends StatelessWidget {
child:
new
Column
(
mainAxisAlignment:
MainAxisAlignment
.
center
,
crossAxisAlignment:
CrossAxisAlignment
.
stretch
,
children:
<
Widget
>[
new
Text
(
demo
.
title
,
style:
theme
.
textTheme
.
subhead
.
copyWith
(
color:
isDark
?
Colors
.
white
:
const
Color
(
0xFF202124
),
),
),
new
Text
(
demo
.
subtitle
,
style:
theme
.
textTheme
.
body1
.
copyWith
(
color:
isDark
?
Colors
.
white
:
const
Color
(
0xFF60646B
)),
),
],
children:
titleChildren
,
),
),
const
SizedBox
(
width:
44.0
),
...
...
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