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
1aeea626
Commit
1aeea626
authored
Aug 03, 2016
by
Ian Hickson
Committed by
GitHub
Aug 03, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some misuse of types (#5197)
Thanks to @leafpetersen for catching these.
parent
c8db0041
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
drag_and_drop.dart
dev/manual_tests/drag_and_drop.dart
+2
-2
implicit_animations.dart
packages/flutter/lib/src/widgets/implicit_animations.dart
+1
-1
No files found.
dev/manual_tests/drag_and_drop.dart
View file @
1aeea626
...
...
@@ -24,7 +24,7 @@ class ExampleDragTargetState extends State<ExampleDragTarget> {
Widget
build
(
BuildContext
context
)
{
return
new
DragTarget
<
Color
>(
onAccept:
_handleAccept
,
builder:
(
BuildContext
context
,
List
<
Color
>
data
,
List
<
Color
>
rejectedData
)
{
builder:
(
BuildContext
context
,
List
<
Color
>
data
,
List
<
dynamic
>
rejectedData
)
{
return
new
Container
(
height:
100.0
,
margin:
new
EdgeInsets
.
all
(
10.0
),
...
...
@@ -214,7 +214,7 @@ class MovableBall extends StatelessWidget {
}
else
{
return
new
DragTarget
<
bool
>(
onAccept:
(
bool
data
)
{
callback
(
position
);
},
builder:
(
BuildContext
context
,
List
<
bool
>
accepted
,
List
<
bool
>
rejected
)
{
builder:
(
BuildContext
context
,
List
<
bool
>
accepted
,
List
<
dynamic
>
rejected
)
{
return
dashedBall
;
}
);
...
...
packages/flutter/lib/src/widgets/implicit_animations.dart
View file @
1aeea626
...
...
@@ -178,7 +178,7 @@ abstract class AnimatedWidgetBaseState<T extends ImplicitlyAnimatedWidget> exten
bool
_constructTweens
()
{
bool
shouldStartAnimation
=
false
;
forEachTween
((
Tween
<
dynamic
>
tween
,
dynamic
targetValue
,
TweenConstructor
<
T
>
constructor
)
{
forEachTween
((
Tween
<
dynamic
>
tween
,
dynamic
targetValue
,
TweenConstructor
<
dynamic
>
constructor
)
{
if
(
targetValue
!=
null
)
{
tween
??=
constructor
(
targetValue
);
if
(
_shouldAnimateTween
(
tween
,
targetValue
))
...
...
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