|
@@ -253,9 +253,9 @@ class ClassicFooterWidgetState extends State<ClassicFooterWidget>
|
|
// 初始化时间
|
|
// 初始化时间
|
|
_dateTime = DateTime.now();
|
|
_dateTime = DateTime.now();
|
|
// 初始化动画
|
|
// 初始化动画
|
|
- _readyController = new AnimationController(
|
|
|
|
|
|
+ _readyController = AnimationController(
|
|
duration: const Duration(milliseconds: 200), vsync: this);
|
|
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(() {
|
|
..addListener(() {
|
|
setState(() {
|
|
setState(() {
|
|
if (_readyAnimation.status != AnimationStatus.dismissed) {
|
|
if (_readyAnimation.status != AnimationStatus.dismissed) {
|
|
@@ -268,10 +268,10 @@ class ClassicFooterWidgetState extends State<ClassicFooterWidget>
|
|
_readyController.reset();
|
|
_readyController.reset();
|
|
}
|
|
}
|
|
});
|
|
});
|
|
- _restoreController = new AnimationController(
|
|
|
|
|
|
+ _restoreController = AnimationController(
|
|
duration: const Duration(milliseconds: 200), vsync: this);
|
|
duration: const Duration(milliseconds: 200), vsync: this);
|
|
_restoreAnimation =
|
|
_restoreAnimation =
|
|
- new Tween(begin: 1.0, end: 0.5).animate(_restoreController)
|
|
|
|
|
|
+ Tween(begin: 1.0, end: 0.5).animate(_restoreController)
|
|
..addListener(() {
|
|
..addListener(() {
|
|
setState(() {
|
|
setState(() {
|
|
if (_restoreAnimation.status != AnimationStatus.dismissed) {
|
|
if (_restoreAnimation.status != AnimationStatus.dismissed) {
|
|
@@ -305,7 +305,7 @@ class ClassicFooterWidgetState extends State<ClassicFooterWidget>
|
|
overTriggerDistance = widget.loadState != LoadMode.inactive &&
|
|
overTriggerDistance = widget.loadState != LoadMode.inactive &&
|
|
widget.pulledExtent >= widget.loadTriggerPullDistance;
|
|
widget.pulledExtent >= widget.loadTriggerPullDistance;
|
|
return Stack(
|
|
return Stack(
|
|
- children: <Widget>[
|
|
|
|
|
|
+ children: [
|
|
Positioned(
|
|
Positioned(
|
|
top: !isVertical ? 0.0 : !isReverse ? 0.0 : null,
|
|
top: !isVertical ? 0.0 : !isReverse ? 0.0 : null,
|
|
bottom: !isVertical ? 0.0 : isReverse ? 0.0 : null,
|
|
bottom: !isVertical ? 0.0 : isReverse ? 0.0 : null,
|
|
@@ -394,7 +394,7 @@ class ClassicFooterWidgetState extends State<ClassicFooterWidget>
|
|
child: Column(
|
|
child: Column(
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
- children: <Widget>[
|
|
|
|
|
|
+ children: [
|
|
Text(
|
|
Text(
|
|
_showText,
|
|
_showText,
|
|
style: TextStyle(
|
|
style: TextStyle(
|