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
709b0cb2
Unverified
Commit
709b0cb2
authored
May 01, 2018
by
xster
Committed by
GitHub
May 01, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Accessibility fixes for new gallery (#16973)
parent
100be23a
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
29 additions
and
25 deletions
+29
-25
backdrop.dart
examples/flutter_gallery/lib/gallery/backdrop.dart
+12
-10
options.dart
examples/flutter_gallery/lib/gallery/options.dart
+13
-11
drawer_test.dart
examples/flutter_gallery/test/drawer_test.dart
+2
-2
simple_smoke_test.dart
examples/flutter_gallery/test/simple_smoke_test.dart
+1
-1
smoke_test.dart
examples/flutter_gallery/test/smoke_test.dart
+1
-1
No files found.
examples/flutter_gallery/lib/gallery/backdrop.dart
View file @
709b0cb2
...
...
@@ -46,7 +46,7 @@ class _IgnorePointerWhileStatusIsNotState extends State<_IgnorePointerWhileStatu
void
initState
()
{
super
.
initState
();
widget
.
controller
.
addStatusListener
(
_handleStatusChange
);
_ignoring
=
widget
.
controller
.
status
!=
AnimationStatus
.
completed
;
_ignoring
=
widget
.
controller
.
status
!=
widget
.
status
;
}
@override
...
...
@@ -283,7 +283,7 @@ class _BackdropState extends State<Backdrop> with SingleTickerProviderStateMixin
),
trailing:
new
IconButton
(
onPressed:
_toggleFrontLayer
,
tooltip:
'
Show
options page'
,
tooltip:
'
Toggle
options page'
,
icon:
new
AnimatedIcon
(
icon:
AnimatedIcons
.
close_menu
,
progress:
_controller
,
...
...
@@ -328,14 +328,16 @@ class _BackdropState extends State<Backdrop> with SingleTickerProviderStateMixin
),
new
PositionedTransition
(
rect:
frontRelativeRect
,
child:
new
Container
(
alignment:
Alignment
.
topLeft
,
child:
new
GestureDetector
(
behavior:
HitTestBehavior
.
opaque
,
onTap:
_toggleFrontLayer
,
onVerticalDragUpdate:
_handleDragUpdate
,
onVerticalDragEnd:
_handleDragEnd
,
child:
widget
.
frontHeading
,
child:
new
ExcludeSemantics
(
child:
new
Container
(
alignment:
Alignment
.
topLeft
,
child:
new
GestureDetector
(
behavior:
HitTestBehavior
.
opaque
,
onTap:
_toggleFrontLayer
,
onVerticalDragUpdate:
_handleDragUpdate
,
onVerticalDragEnd:
_handleDragEnd
,
child:
widget
.
frontHeading
,
),
),
),
),
...
...
examples/flutter_gallery/lib/gallery/options.dart
View file @
709b0cb2
...
...
@@ -96,17 +96,19 @@ class _OptionsItem extends StatelessWidget {
Widget
build
(
BuildContext
context
)
{
final
double
textScaleFactor
=
MediaQuery
.
of
(
context
)?.
textScaleFactor
??
1.0
;
return
new
Container
(
constraints:
new
BoxConstraints
(
minHeight:
_kItemHeight
*
textScaleFactor
),
padding:
_kItemPadding
,
alignment:
AlignmentDirectional
.
centerStart
,
child:
new
DefaultTextStyle
(
style:
DefaultTextStyle
.
of
(
context
).
style
,
maxLines:
2
,
overflow:
TextOverflow
.
fade
,
child:
new
IconTheme
(
data:
Theme
.
of
(
context
).
primaryIconTheme
,
child:
child
,
return
new
MergeSemantics
(
child:
new
Container
(
constraints:
new
BoxConstraints
(
minHeight:
_kItemHeight
*
textScaleFactor
),
padding:
_kItemPadding
,
alignment:
AlignmentDirectional
.
centerStart
,
child:
new
DefaultTextStyle
(
style:
DefaultTextStyle
.
of
(
context
).
style
,
maxLines:
2
,
overflow:
TextOverflow
.
fade
,
child:
new
IconTheme
(
data:
Theme
.
of
(
context
).
primaryIconTheme
,
child:
child
,
),
),
),
);
...
...
examples/flutter_gallery/test/drawer_test.dart
View file @
709b0cb2
...
...
@@ -26,7 +26,7 @@ void main() {
await
tester
.
pump
();
// triggers a frame
// Show the options page
await
tester
.
tap
(
find
.
byTooltip
(
'
Show
options page'
));
await
tester
.
tap
(
find
.
byTooltip
(
'
Toggle
options page'
));
await
tester
.
pumpAndSettle
();
MaterialApp
app
=
find
.
byType
(
MaterialApp
).
evaluate
().
first
.
widget
;
...
...
@@ -89,7 +89,7 @@ void main() {
expect
(
hasFeedback
,
true
);
// Hide the options page
await
tester
.
tap
(
find
.
byTooltip
(
'
Show
options page'
));
await
tester
.
tap
(
find
.
byTooltip
(
'
Toggle
options page'
));
await
tester
.
pumpAndSettle
();
});
}
examples/flutter_gallery/test/simple_smoke_test.dart
View file @
709b0cb2
...
...
@@ -16,7 +16,7 @@ void main() {
await
tester
.
pump
();
// see https://github.com/flutter/flutter/issues/1865
await
tester
.
pump
();
// triggers a frame
final
Finder
showOptionsPageButton
=
find
.
byTooltip
(
'
Show
options page'
);
final
Finder
showOptionsPageButton
=
find
.
byTooltip
(
'
Toggle
options page'
);
// Show the options page
await
tester
.
tap
(
showOptionsPageButton
);
...
...
examples/flutter_gallery/test/smoke_test.dart
View file @
709b0cb2
...
...
@@ -96,7 +96,7 @@ Future<Null> smokeDemo(WidgetTester tester, GalleryDemo demo) async {
}
Future
<
Null
>
smokeOptionsPage
(
WidgetTester
tester
)
async
{
final
Finder
showOptionsPageButton
=
find
.
byTooltip
(
'
Show
options page'
);
final
Finder
showOptionsPageButton
=
find
.
byTooltip
(
'
Toggle
options page'
);
// Show the options page
await
tester
.
tap
(
showOptionsPageButton
);
...
...
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