|
@@ -289,9 +289,9 @@ class ClassicHeaderWidgetState extends State<ClassicHeaderWidget>
|
|
|
// 初始化时间
|
|
|
_dateTime = DateTime.now();
|
|
|
// 准备动画
|
|
|
- _readyController = new AnimationController(
|
|
|
+ _readyController = AnimationController(
|
|
|
duration: const Duration(milliseconds: 200), vsync: this);
|
|
|
- _readyAnimation = new Tween(begin: 0.5, end: 1.0).animate(_readyController)
|
|
|
+ _readyAnimation = Tween(begin: 0.5, end: 1.0).animate(_readyController)
|
|
|
..addListener(() {
|
|
|
setState(() {
|
|
|
if (_readyAnimation.status != AnimationStatus.dismissed) {
|
|
@@ -305,10 +305,10 @@ class ClassicHeaderWidgetState extends State<ClassicHeaderWidget>
|
|
|
}
|
|
|
});
|
|
|
// 恢复动画
|
|
|
- _restoreController = new AnimationController(
|
|
|
+ _restoreController = AnimationController(
|
|
|
duration: const Duration(milliseconds: 200), vsync: this);
|
|
|
_restoreAnimation =
|
|
|
- new Tween(begin: 1.0, end: 0.5).animate(_restoreController)
|
|
|
+ Tween(begin: 1.0, end: 0.5).animate(_restoreController)
|
|
|
..addListener(() {
|
|
|
setState(() {
|
|
|
if (_restoreAnimation.status != AnimationStatus.dismissed) {
|
|
@@ -322,10 +322,10 @@ class ClassicHeaderWidgetState extends State<ClassicHeaderWidget>
|
|
|
}
|
|
|
});
|
|
|
// float收起动画
|
|
|
- _floatBackController = new AnimationController(
|
|
|
+ _floatBackController = AnimationController(
|
|
|
duration: const Duration(milliseconds: 300), vsync: this);
|
|
|
_floatBackAnimation =
|
|
|
- new Tween(begin: widget.refreshIndicatorExtent, end: 0.0)
|
|
|
+ Tween(begin: widget.refreshIndicatorExtent, end: 0.0)
|
|
|
.animate(_floatBackController)
|
|
|
..addListener(() {
|
|
|
setState(() {
|