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
accd6aba
Unverified
Commit
accd6aba
authored
Jan 14, 2022
by
Konstantin Scheglov
Committed by
GitHub
Jan 14, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix UNUSED_ELEMENT_PARAMETER for unused field formal parameter. (#96684)
parent
f97d9e07
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
9 deletions
+3
-9
reorderable_list.dart
packages/flutter/lib/src/widgets/reorderable_list.dart
+3
-9
No files found.
packages/flutter/lib/src/widgets/reorderable_list.dart
View file @
accd6aba
...
@@ -887,10 +887,10 @@ class SliverReorderableListState extends State<SliverReorderableList> with Ticke
...
@@ -887,10 +887,10 @@ class SliverReorderableListState extends State<SliverReorderableList> with Ticke
///
///
/// The scroll velocity is controlled by the [velocityScalar]:
/// The scroll velocity is controlled by the [velocityScalar]:
///
///
/// velocity = <distance of overscroll> * [
v
elocityScalar].
/// velocity = <distance of overscroll> * [
_kDefaultAutoScrollV
elocityScalar].
class
_EdgeDraggingAutoScroller
{
class
_EdgeDraggingAutoScroller
{
/// Creates a auto scroller that scrolls the [scrollable].
/// Creates a auto scroller that scrolls the [scrollable].
_EdgeDraggingAutoScroller
(
this
.
scrollable
,
{
this
.
onScrollViewScrolled
,
this
.
velocityScalar
=
_kDefaultAutoScrollVelocityScalar
});
_EdgeDraggingAutoScroller
(
this
.
scrollable
,
{
this
.
onScrollViewScrolled
});
// An eyeball value
// An eyeball value
static
const
double
_kDefaultAutoScrollVelocityScalar
=
7
;
static
const
double
_kDefaultAutoScrollVelocityScalar
=
7
;
...
@@ -905,12 +905,6 @@ class _EdgeDraggingAutoScroller {
...
@@ -905,12 +905,6 @@ class _EdgeDraggingAutoScroller {
/// in between each scroll.
/// in between each scroll.
final
VoidCallback
?
onScrollViewScrolled
;
final
VoidCallback
?
onScrollViewScrolled
;
/// The velocity scalar per pixel over scroll.
///
/// How the velocity scale with the over scroll distance. The auto scroll
/// velocity = <distance of overscroll> * velocityScalar.
final
double
velocityScalar
;
late
Rect
_dragTargetRelatedToScrollOrigin
;
late
Rect
_dragTargetRelatedToScrollOrigin
;
/// Whether the auto scroll is in progress.
/// Whether the auto scroll is in progress.
...
@@ -1002,7 +996,7 @@ class _EdgeDraggingAutoScroller {
...
@@ -1002,7 +996,7 @@ class _EdgeDraggingAutoScroller {
_scrolling
=
false
;
_scrolling
=
false
;
return
;
return
;
}
}
final
Duration
duration
=
Duration
(
milliseconds:
(
1000
/
v
elocityScalar
).
round
());
final
Duration
duration
=
Duration
(
milliseconds:
(
1000
/
_kDefaultAutoScrollV
elocityScalar
).
round
());
await
scrollable
.
position
.
animateTo
(
await
scrollable
.
position
.
animateTo
(
newOffset
,
newOffset
,
duration:
duration
,
duration:
duration
,
...
...
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