|
|
@@ -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),
|
|
|
),
|
|
|
);
|
|
|
}),
|