Pārlūkot izejas kodu

还原第三方包screenUtil

daxu0403 7 gadi atpakaļ
vecāks
revīzija
c6ab9d4598

BIN
android/.gradle/4.10.2/fileHashes/fileHashes.bin


BIN
android/.gradle/4.10.2/fileHashes/fileHashes.lock


BIN
android/.gradle/4.10.2/javaCompile/classAnalysis.bin


BIN
android/.gradle/4.10.2/javaCompile/javaCompile.lock


BIN
android/.gradle/4.10.2/taskHistory/taskHistory.bin


BIN
android/.gradle/4.10.2/taskHistory/taskHistory.lock


BIN
android/.gradle/buildOutputCleanup/buildOutputCleanup.lock


+ 1 - 1
android/app/src/main/java/com/example/logisticsclient/MainActivity.java

@@ -43,7 +43,7 @@ import io.flutter.plugin.common.MethodChannel.Result;
 
 import android.support.v4.app.ActivityCompat;
 import android.support.v4.content.ContextCompat;
-
+import android.content.pm.PackageManager;
 
 public class MainActivity extends FlutterActivity {
   private static final String CHANNEL = "io.fivefire/method_channel";

+ 6 - 6
lib/pages/order_taking_page.dart

@@ -338,7 +338,7 @@ class OrderCardContainer extends StatefulWidget {
 }
 
 class _OrderCardContainerState extends State < OrderCardContainer > with SingleTickerProviderStateMixin {
-  Animation < double > animation;
+  Animation < int > animation;
   AnimationController controller;
   String str = "联系方式";
   bool animationStatus = true;
@@ -347,7 +347,7 @@ class _OrderCardContainerState extends State < OrderCardContainer > with SingleT
     super.initState();
     controller = new AnimationController(
       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) {
       if (status == AnimationStatus.completed) {
         //动画执行结束时反向执行动画
@@ -463,12 +463,12 @@ class AnimatedOpen extends AnimatedWidget {
   final OrderList openInfo;
   AnimatedOpen({
     Key key,
-    Animation < double > animation,
+    Animation < int > animation,
     @required this.openInfo
   }): super(key: key, listenable: animation);
 
   Widget build(BuildContext context) {
-    final Animation < double > animation = listenable;
+    final Animation < int > animation = listenable;
     return Container(
       height: ScreenUtil.getInstance().setHeight(animation.value),
       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(
     margin: EdgeInsets.only(bottom: ScreenUtil.getInstance().setHeight(marginBottom)),
     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(
     child: Container(
       margin: EdgeInsets.only(bottom: ScreenUtil.getInstance().setHeight(marginBottom)),