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
cf164071
Commit
cf164071
authored
Aug 19, 2015
by
Hans Muller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Dismissable: correct handling of a drag that ends with a fling
parent
7782a115
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
page_scrollable.dart
examples/widgets/page_scrollable.dart
+0
-1
dismissable.dart
packages/flutter/lib/widgets/dismissable.dart
+4
-1
No files found.
examples/widgets/page_scrollable.dart
View file @
cf164071
...
@@ -56,7 +56,6 @@ class TestApp extends App {
...
@@ -56,7 +56,6 @@ class TestApp extends App {
}
}
Widget
buildCard
(
CardModel
cardModel
)
{
Widget
buildCard
(
CardModel
cardModel
)
{
print
(
"SKY buildCard
${cardModel.label}
"
);
Widget
card
=
new
Card
(
Widget
card
=
new
Card
(
color:
cardModel
.
color
,
color:
cardModel
.
color
,
child:
new
Container
(
child:
new
Container
(
...
...
packages/flutter/lib/widgets/dismissable.dart
View file @
cf164071
...
@@ -153,7 +153,10 @@ class Dismissable extends StatefulComponent {
...
@@ -153,7 +153,10 @@ class Dismissable extends StatefulComponent {
_dragUnderway
=
false
;
_dragUnderway
=
false
;
if
(
_isHorizontalFlingGesture
(
event
))
{
if
(
_isHorizontalFlingGesture
(
event
))
{
_dragX
=
event
.
velocityX
.
sign
;
_dragX
=
event
.
velocityX
.
sign
;
_fadePerformance
.
fling
(
velocity:
event
.
velocityX
.
abs
()
*
_kFlingVelocityScale
);
if
(
_fadePerformance
.
isCompleted
)
_startResizePerformance
();
else
_fadePerformance
.
fling
(
velocity:
event
.
velocityX
.
abs
()
*
_kFlingVelocityScale
);
}
else
{
}
else
{
_fadePerformance
.
reverse
();
_fadePerformance
.
reverse
();
}
}
...
...
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