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
2609f7bf
Commit
2609f7bf
authored
Oct 16, 2015
by
Hans Muller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OMG I've been running with checking turned off. Fixed scrollbar assertion failures.
parent
f77319fc
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
scrollbar.dart
examples/widgets/scrollbar.dart
+6
-1
scrollable.dart
packages/flutter/lib/src/widgets/scrollable.dart
+0
-1
No files found.
examples/widgets/scrollbar.dart
View file @
2609f7bf
...
...
@@ -23,7 +23,12 @@ class ScrollbarAppState extends State<ScrollbarApp> {
return
new
ScrollableList
<
int
>(
items:
new
List
<
int
>.
generate
(
_itemCount
,
(
int
i
)
=>
i
),
itemExtent:
_itemExtent
,
itemBuilder:
(
BuildContext
_
,
int
i
)
=>
new
Text
(
'Item
${dd.format(i)}
'
,
style:
Theme
.
of
(
context
).
text
.
title
),
itemBuilder:
(
_
,
int
i
)
{
return
new
Text
(
'Item
${dd.format(i)}
'
,
key:
new
ValueKey
<
int
>(
i
),
style:
Theme
.
of
(
context
).
text
.
title
);
},
scrollableListPainter:
_scrollbarPainter
);
}
...
...
packages/flutter/lib/src/widgets/scrollable.dart
View file @
2609f7bf
...
...
@@ -434,7 +434,6 @@ abstract class ScrollableListPainter extends Painter {
double
_scrollOffset
=
0.0
;
void
set
scrollOffset
(
double
value
)
{
assert
(
value
!=
null
);
assert
(
value
>=
0.0
&&
value
<=
1.0
);
if
(
_scrollOffset
==
value
)
return
;
_scrollOffset
=
value
;
...
...
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