|
@@ -338,7 +338,7 @@ class OrderCardContainer extends StatefulWidget {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
class _OrderCardContainerState extends State < OrderCardContainer > with SingleTickerProviderStateMixin {
|
|
class _OrderCardContainerState extends State < OrderCardContainer > with SingleTickerProviderStateMixin {
|
|
|
- Animation < double > animation;
|
|
|
|
|
|
|
+ Animation < int > animation;
|
|
|
AnimationController controller;
|
|
AnimationController controller;
|
|
|
String str = "联系方式";
|
|
String str = "联系方式";
|
|
|
bool animationStatus = true;
|
|
bool animationStatus = true;
|
|
@@ -347,7 +347,7 @@ class _OrderCardContainerState extends State < OrderCardContainer > with SingleT
|
|
|
super.initState();
|
|
super.initState();
|
|
|
controller = new AnimationController(
|
|
controller = new AnimationController(
|
|
|
duration: const Duration(milliseconds: 200), vsync: this);
|
|
duration: const Duration(milliseconds: 200), vsync: this);
|
|
|
- animation = new Tween(begin: 0.0, end: 230.0).animate(controller);
|
|
|
|
|
|
|
+ animation = new Tween(begin: 0, end: 230).animate(controller);
|
|
|
animation.addStatusListener((status) {
|
|
animation.addStatusListener((status) {
|
|
|
if (status == AnimationStatus.completed) {
|
|
if (status == AnimationStatus.completed) {
|
|
|
//动画执行结束时反向执行动画
|
|
//动画执行结束时反向执行动画
|
|
@@ -463,12 +463,12 @@ class AnimatedOpen extends AnimatedWidget {
|
|
|
final OrderList openInfo;
|
|
final OrderList openInfo;
|
|
|
AnimatedOpen({
|
|
AnimatedOpen({
|
|
|
Key key,
|
|
Key key,
|
|
|
- Animation < double > animation,
|
|
|
|
|
|
|
+ Animation < int > animation,
|
|
|
@required this.openInfo
|
|
@required this.openInfo
|
|
|
}): super(key: key, listenable: animation);
|
|
}): super(key: key, listenable: animation);
|
|
|
|
|
|
|
|
Widget build(BuildContext context) {
|
|
Widget build(BuildContext context) {
|
|
|
- final Animation < double > animation = listenable;
|
|
|
|
|
|
|
+ final Animation < int > animation = listenable;
|
|
|
return Container(
|
|
return Container(
|
|
|
height: ScreenUtil.getInstance().setHeight(animation.value),
|
|
height: ScreenUtil.getInstance().setHeight(animation.value),
|
|
|
child: orderDetailInfo(openInfo),
|
|
child: orderDetailInfo(openInfo),
|
|
@@ -520,7 +520,7 @@ Widget orderDetailInfo(OrderList obj) { //卡片展开信息
|
|
|
);
|
|
);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-Widget orderItem(String key, String value, double marginBottom) { //货物名称,件数
|
|
|
|
|
|
|
+Widget orderItem(String key, String value, int marginBottom) { //货物名称,件数
|
|
|
return Container(
|
|
return Container(
|
|
|
margin: EdgeInsets.only(bottom: ScreenUtil.getInstance().setHeight(marginBottom)),
|
|
margin: EdgeInsets.only(bottom: ScreenUtil.getInstance().setHeight(marginBottom)),
|
|
|
child: Row(children: < Widget > [
|
|
child: Row(children: < Widget > [
|
|
@@ -529,7 +529,7 @@ Widget orderItem(String key, String value, double marginBottom) { //货物名称
|
|
|
);
|
|
);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-Widget orderPhone(String key, String value, double marginBottom) {
|
|
|
|
|
|
|
+Widget orderPhone(String key, String value, int marginBottom) {
|
|
|
return InkWell(
|
|
return InkWell(
|
|
|
child: Container(
|
|
child: Container(
|
|
|
margin: EdgeInsets.only(bottom: ScreenUtil.getInstance().setHeight(marginBottom)),
|
|
margin: EdgeInsets.only(bottom: ScreenUtil.getInstance().setHeight(marginBottom)),
|