Bladeren bron

[new]待办事项完善样式显示

zk 1 jaar geleden
bovenliggende
commit
22572f3a78
1 gewijzigde bestanden met toevoegingen van 57 en 46 verwijderingen
  1. 57 46
      lib/module/talk/common_view.dart

+ 57 - 46
lib/module/talk/common_view.dart

@@ -54,7 +54,7 @@ Widget getTalkFailView() {
 Widget getTodoItemView(AgendaListAllBean agenda) {
   return Container(
     decoration: BoxDecoration(
-      color: "#F6F5F8".toColor(),
+      color: ColorName.colorPrimary,
       borderRadius: BorderRadius.circular(6),
     ),
     child: Builder(builder: (context) {
@@ -62,53 +62,64 @@ Widget getTodoItemView(AgendaListAllBean agenda) {
         data: Theme.of(context).copyWith(
           splashFactory: NoSplash.splashFactory,
         ),
-        child: ExpansionTile(
-          onExpansionChanged: (value) {
-            agenda.isExpanded.value = value;
-          },
-          shape: RoundedRectangleBorder(
-            borderRadius: BorderRadius.circular(4.0),
-            side: const BorderSide(color: Colors.transparent),
+        child: Container(
+          margin: EdgeInsets.only(left: 4.w),
+          decoration: BoxDecoration(
+            color: "#F6F5F8".toColor(),
+            borderRadius: const BorderRadius.only(
+              topRight: Radius.circular(6),
+              bottomRight: Radius.circular(6),
+            ),
           ),
-          collapsedShape: RoundedRectangleBorder(
-            borderRadius: BorderRadius.circular(4.0),
-            side: const BorderSide(color: Colors.transparent),
+          child: ExpansionTile(
+            onExpansionChanged: (value) {
+              agenda.isExpanded.value = value;
+            },
+            shape: RoundedRectangleBorder(
+              borderRadius: BorderRadius.circular(4.0),
+              side: const BorderSide(color: Colors.transparent),
+            ),
+            collapsedShape: RoundedRectangleBorder(
+              borderRadius: BorderRadius.circular(4.0),
+              side: const BorderSide(color: Colors.transparent),
+            ),
+            minTileHeight: 46.h,
+            showTrailingIcon: false,
+            childrenPadding: EdgeInsets.zero,
+            tilePadding: EdgeInsets.zero,
+            title: Row(
+              children: [
+                SizedBox(width: 12.w),
+                Text(agenda.name.orEmpty,
+                    style: TextStyle(
+                        fontSize: 15.sp,
+                        color: ColorName.primaryTextColor,
+                        fontWeight: FontWeight.bold)),
+                const Spacer(),
+                Obx(() {
+                  return Row(
+                    children: [
+                      Text(
+                        '${agenda.list?.length}${StringName.talkTodoItem.tr}',
+                        style: TextStyle(
+                            fontSize: 15.sp,
+                            color: ColorName.secondaryTextColor),
+                      ),
+                      SizedBox(width: 3.w),
+                      SizedBox(
+                          width: 16.w,
+                          height: 16.w,
+                          child: agenda.isExpanded.value
+                              ? Assets.images.iconTalkExpand.image()
+                              : Assets.images.iconTalkCollapse.image()),
+                    ],
+                  );
+                }),
+                SizedBox(width: 12.w),
+              ],
+            ),
+            children: getTalkAgendaList(agenda.list),
           ),
-          minTileHeight: 46.h,
-          showTrailingIcon: false,
-          childrenPadding: EdgeInsets.zero,
-          tilePadding: EdgeInsets.zero,
-          title: Row(
-            children: [
-              SizedBox(width: 16.w),
-              Text(agenda.name.orEmpty,
-                  style: TextStyle(
-                      fontSize: 15.sp,
-                      color: ColorName.primaryTextColor,
-                      fontWeight: FontWeight.bold)),
-              const Spacer(),
-              Obx(() {
-                return Row(
-                  children: [
-                    Text(
-                      '${agenda.list?.length}${StringName.talkTodoItem.tr}',
-                      style: TextStyle(
-                          fontSize: 15.sp, color: ColorName.secondaryTextColor),
-                    ),
-                    SizedBox(width: 3.w),
-                    SizedBox(
-                        width: 16.w,
-                        height: 16.w,
-                        child: agenda.isExpanded.value
-                            ? Assets.images.iconTalkExpand.image()
-                            : Assets.images.iconTalkCollapse.image()),
-                  ],
-                );
-              }),
-              SizedBox(width: 12.w),
-            ],
-          ),
-          children: getTalkAgendaList(agenda.list),
         ),
       );
     }),