浏览代码

[new]首页增加谈话跟待办数据显示

zk 1 年之前
父节点
当前提交
19c30d07f2
共有 1 个文件被更改,包括 9 次插入16 次删除
  1. 9 16
      lib/module/home/view.dart

+ 9 - 16
lib/module/home/view.dart

@@ -383,22 +383,15 @@ class HomePage extends BasePage<HomePageController> {
   Widget _buildInsertTodoItem(BuildContext context, int index,
       Animation<double> animation, Agenda item) {
     HomePageController controller = Get.find();
-    return SlideTransition(
-        position: animation.drive(
-          Tween<Offset>(
-            begin: const Offset(0, 0.1),
-            end: Offset.zero,
-          ).chain(CurveTween(curve: Curves.easeInOut)),
-        ),
-        child: FadeTransition(
-          opacity: animation,
-          child: taskItemView(item, onCheckClick: () {
-            controller.agendaList.remove(
-                index,
-                (context, animation, item) =>
-                    _buildRemoveTodoItem(context, index, animation, item));
-          }),
-        ));
+    return FadeTransition(
+      opacity: animation,
+      child: taskItemView(item, onCheckClick: () {
+        controller.agendaList.remove(
+            index,
+            (context, animation, item) =>
+                _buildRemoveTodoItem(context, index, animation, item));
+      }),
+    );
   }
 
   Widget _buildRemoveTodoItem(BuildContext context, int index,