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
ecb56927
Commit
ecb56927
authored
Sep 12, 2017
by
Michael Goderbauer
Committed by
GitHub
Sep 12, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Show accessibility frame while scrolling (#12039)
* Show accessibility frame while scrolling * ++ * fix test
parent
3ee1495c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
2 deletions
+30
-2
scrollable.dart
packages/flutter/lib/src/widgets/scrollable.dart
+1
-0
keep_alive_test.dart
packages/flutter/test/widgets/keep_alive_test.dart
+2
-2
scrollable_semantics_test.dart
packages/flutter/test/widgets/scrollable_semantics_test.dart
+27
-0
No files found.
packages/flutter/lib/src/widgets/scrollable.dart
View file @
ecb56927
...
...
@@ -487,6 +487,7 @@ class ScrollableState extends State<Scrollable> with TickerProviderStateMixin
child:
new
IgnorePointer
(
key:
_ignorePointerKey
,
ignoring:
_shouldIgnorePointer
,
ignoringSemantics:
false
,
child:
new
_ScrollableScope
(
scrollable:
this
,
position:
position
,
...
...
packages/flutter/test/widgets/keep_alive_test.dart
View file @
ecb56927
...
...
@@ -239,7 +239,7 @@ void main() {
' │ constraints: BoxConstraints(w=800.0, h=600.0)
\n
'
' │ size: Size(800.0, 600.0)
\n
'
' │ ignoring: false
\n
'
' │ ignoringSemantics:
implicitly
false
\n
'
' │ ignoringSemantics: false
\n
'
' │
\n
'
' └─child: RenderViewport#00000
\n
'
' │ parentData: <none> (can use size)
\n
'
...
...
@@ -344,7 +344,7 @@ void main() {
' │ constraints: BoxConstraints(w=800.0, h=600.0)
\n
'
' │ size: Size(800.0, 600.0)
\n
'
' │ ignoring: false
\n
'
' │ ignoringSemantics:
implicitly
false
\n
'
' │ ignoringSemantics: false
\n
'
' │
\n
'
' └─child: RenderViewport#00000
\n
'
' │ parentData: <none> (can use size)
\n
'
...
...
packages/flutter/test/widgets/scrollable_semantics_test.dart
View file @
ecb56927
...
...
@@ -226,6 +226,33 @@ void main() {
semantics
.
dispose
();
});
testWidgets
(
'Semantics tree is populated mid-scroll'
,
(
WidgetTester
tester
)
async
{
final
SemanticsTester
semantics
=
new
SemanticsTester
(
tester
);
final
List
<
Widget
>
children
=
<
Widget
>[];
for
(
int
i
=
0
;
i
<
80
;
i
++)
children
.
add
(
new
Container
(
child:
new
Text
(
'Item
$i
'
),
height:
40.0
,
));
await
tester
.
pumpWidget
(
new
Directionality
(
textDirection:
TextDirection
.
ltr
,
child:
new
ListView
(
children:
children
),
),
);
final
TestGesture
gesture
=
await
tester
.
startGesture
(
tester
.
getCenter
(
find
.
byType
(
ListView
)));
await
gesture
.
moveBy
(
const
Offset
(
0.0
,
-
40.0
));
await
tester
.
pump
();
expect
(
semantics
,
includesNodeWith
(
label:
'Item 1'
));
expect
(
semantics
,
includesNodeWith
(
label:
'Item 2'
));
expect
(
semantics
,
includesNodeWith
(
label:
'Item 3'
));
semantics
.
dispose
();
});
}
Future
<
Null
>
flingUp
(
WidgetTester
tester
,
{
int
repetitions:
1
})
async
{
...
...
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