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
330af86b
Commit
330af86b
authored
Oct 06, 2015
by
Adam Barth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Delete AnimatedComponent
This class has no clients.
parent
012c5d94
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
51 deletions
+0
-51
animated_component.dart
packages/flutter/lib/src/widgets/animated_component.dart
+0
-50
widgets.dart
packages/flutter/lib/widgets.dart
+0
-1
No files found.
packages/flutter/lib/src/widgets/animated_component.dart
deleted
100644 → 0
View file @
012c5d94
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import
'package:sky/animation.dart'
;
import
'package:sky/src/widgets/framework.dart'
;
abstract
class
AnimatedComponent
extends
StatefulComponent
{
const
AnimatedComponent
({
Key
key
,
this
.
direction
,
this
.
duration
})
:
super
(
key:
key
);
final
Duration
duration
;
final
AnimationDirection
direction
;
}
abstract
class
AnimatedState
<
T
extends
AnimatedComponent
>
extends
State
<
T
>
{
void
initState
()
{
super
.
initState
();
_performance
=
new
Performance
(
duration:
config
.
duration
);
performance
.
addStatusListener
(
_handleAnimationStatusChanged
);
if
(
buildDependsOnPerformance
)
{
performance
.
addListener
(()
{
setState
(()
{
// We don't actually have any state to change, per se,
// we just know that we have in fact changed state.
});
});
}
performance
.
play
(
config
.
direction
);
}
void
didUpdateConfig
(
T
oldConfig
)
{
performance
.
duration
=
config
.
duration
;
if
(
config
.
duration
!=
oldConfig
.
duration
||
config
.
direction
!=
oldConfig
.
direction
)
performance
.
play
(
config
.
direction
);
}
Performance
get
performance
=>
_performance
;
Performance
_performance
;
void
_handleAnimationStatusChanged
(
PerformanceStatus
status
)
{
if
(
status
==
PerformanceStatus
.
completed
)
handleCompleted
();
else
if
(
status
==
PerformanceStatus
.
dismissed
)
handleDismissed
();
}
bool
get
buildDependsOnPerformance
=>
false
;
void
handleCompleted
()
{
}
void
handleDismissed
()
{
}
}
packages/flutter/lib/widgets.dart
View file @
330af86b
...
...
@@ -5,7 +5,6 @@
/// The Flutter widget framework.
library
widgets
;
export
'src/widgets/animated_component.dart'
;
export
'src/widgets/animated_container.dart'
;
export
'src/widgets/app.dart'
;
export
'src/widgets/basic.dart'
;
...
...
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