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
04923d33
Commit
04923d33
authored
May 19, 2017
by
Collin Jackson
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'alpha'
parents
2da63e46
973304d5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
1 deletion
+19
-1
sliver_padding.dart
packages/flutter/lib/src/rendering/sliver_padding.dart
+1
-1
list_view_test.dart
packages/flutter/test/widgets/list_view_test.dart
+18
-0
No files found.
packages/flutter/lib/src/rendering/sliver_padding.dart
View file @
04923d33
...
...
@@ -146,7 +146,7 @@ class RenderSliverPadding extends RenderSliver with RenderObjectWithChildMixin<R
scrollOffset:
math
.
max
(
0.0
,
constraints
.
scrollOffset
-
beforePadding
),
overlap:
0.0
,
remainingPaintExtent:
constraints
.
remainingPaintExtent
-
calculatePaintOffset
(
constraints
,
from:
0.0
,
to:
beforePadding
),
crossAxisExtent:
constraints
.
crossAxisExtent
-
crossAxisPadding
,
crossAxisExtent:
math
.
max
(
0.0
,
constraints
.
crossAxisExtent
-
crossAxisPadding
)
,
),
parentUsesSize:
true
,
);
...
...
packages/flutter/test/widgets/list_view_test.dart
View file @
04923d33
...
...
@@ -156,6 +156,24 @@ void main() {
expect
(
find
.
text
(
'5'
),
findsNothing
);
});
testWidgets
(
'ListView can build out of overflow padding'
,
(
WidgetTester
tester
)
async
{
await
tester
.
pumpWidget
(
new
Center
(
child:
new
SizedBox
(
width:
0.0
,
height:
0.0
,
child:
new
ListView
(
padding:
const
EdgeInsets
.
all
(
8.0
),
children:
<
Widget
>[
const
Text
(
'padded'
),
],
),
),
),
);
expect
(
find
.
text
(
'padded'
),
findsOneWidget
);
});
testWidgets
(
'ListView with itemExtent in unbounded context'
,
(
WidgetTester
tester
)
async
{
await
tester
.
pumpWidget
(
new
SingleChildScrollView
(
...
...
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