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
0e1b652d
Commit
0e1b652d
authored
Jun 20, 2017
by
Michael Goderbauer
Committed by
GitHub
Jun 20, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make Demos in flutter_gallery more accessible (#10832)
Remaining known issues are #10831 and #10830.
parent
7d16a965
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
106 additions
and
98 deletions
+106
-98
contacts_demo.dart
examples/flutter_gallery/lib/demo/contacts_demo.dart
+8
-6
pesto_demo.dart
examples/flutter_gallery/lib/demo/pesto_demo.dart
+34
-32
shrine_home.dart
examples/flutter_gallery/lib/demo/shrine/shrine_home.dart
+64
-60
No files found.
examples/flutter_gallery/lib/demo/contacts_demo.dart
View file @
0e1b652d
...
@@ -70,12 +70,14 @@ class _ContactItem extends StatelessWidget {
...
@@ -70,12 +70,14 @@ class _ContactItem extends StatelessWidget {
)
)
));
));
}
}
return
new
Padding
(
return
new
MergeSemantics
(
child:
new
Padding
(
padding:
const
EdgeInsets
.
symmetric
(
vertical:
16.0
),
padding:
const
EdgeInsets
.
symmetric
(
vertical:
16.0
),
child:
new
Row
(
child:
new
Row
(
mainAxisAlignment:
MainAxisAlignment
.
spaceBetween
,
mainAxisAlignment:
MainAxisAlignment
.
spaceBetween
,
children:
rowChildren
children:
rowChildren
)
)
),
);
);
}
}
}
}
...
...
examples/flutter_gallery/lib/demo/pesto_demo.dart
View file @
0e1b652d
...
@@ -246,7 +246,8 @@ class RecipeCard extends StatelessWidget {
...
@@ -246,7 +246,8 @@ class RecipeCard extends StatelessWidget {
@override
@override
Widget
build
(
BuildContext
context
)
{
Widget
build
(
BuildContext
context
)
{
return
new
GestureDetector
(
return
new
MergeSemantics
(
child:
new
GestureDetector
(
onTap:
onTap
,
onTap:
onTap
,
child:
new
Card
(
child:
new
Card
(
child:
new
Column
(
child:
new
Column
(
...
@@ -283,6 +284,7 @@ class RecipeCard extends StatelessWidget {
...
@@ -283,6 +284,7 @@ class RecipeCard extends StatelessWidget {
],
],
),
),
),
),
),
);
);
}
}
}
}
...
...
examples/flutter_gallery/lib/demo/shrine/shrine_home.dart
View file @
0e1b652d
...
@@ -252,7 +252,8 @@ class _Heading extends StatelessWidget {
...
@@ -252,7 +252,8 @@ class _Heading extends StatelessWidget {
Widget
build
(
BuildContext
context
)
{
Widget
build
(
BuildContext
context
)
{
final
Size
screenSize
=
MediaQuery
.
of
(
context
).
size
;
final
Size
screenSize
=
MediaQuery
.
of
(
context
).
size
;
final
ShrineTheme
theme
=
ShrineTheme
.
of
(
context
);
final
ShrineTheme
theme
=
ShrineTheme
.
of
(
context
);
return
new
SizedBox
(
return
new
MergeSemantics
(
child:
new
SizedBox
(
height:
screenSize
.
width
>
screenSize
.
height
height:
screenSize
.
width
>
screenSize
.
height
?
(
screenSize
.
height
-
kToolbarHeight
)
*
0.85
?
(
screenSize
.
height
-
kToolbarHeight
)
*
0.85
:
(
screenSize
.
height
-
kToolbarHeight
)
*
0.70
,
:
(
screenSize
.
height
-
kToolbarHeight
)
*
0.70
,
...
@@ -287,6 +288,7 @@ class _Heading extends StatelessWidget {
...
@@ -287,6 +288,7 @@ class _Heading extends StatelessWidget {
],
],
),
),
),
),
),
);
);
}
}
}
}
...
@@ -303,7 +305,8 @@ class _ProductItem extends StatelessWidget {
...
@@ -303,7 +305,8 @@ class _ProductItem extends StatelessWidget {
@override
@override
Widget
build
(
BuildContext
context
)
{
Widget
build
(
BuildContext
context
)
{
return
new
Card
(
return
new
MergeSemantics
(
child:
new
Card
(
child:
new
Stack
(
child:
new
Stack
(
children:
<
Widget
>[
children:
<
Widget
>[
new
Column
(
new
Column
(
...
@@ -333,6 +336,7 @@ class _ProductItem extends StatelessWidget {
...
@@ -333,6 +336,7 @@ class _ProductItem extends StatelessWidget {
),
),
],
],
),
),
),
);
);
}
}
}
}
...
...
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