From 28f53c1122f549706b89c90e98aaaa1069356187 Mon Sep 17 00:00:00 2001 From: ormee Date: Fri, 15 May 2026 16:57:27 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=B9=AD=EC=B0=AC/=EB=8F=85=EB=A0=A4?= =?UTF-8?q?=ED=95=98=EA=B8=B0=20=EC=95=8C=EB=A6=BC=20=EB=B3=B8=EC=9D=B8=20?= =?UTF-8?q?=EC=A0=9C=EC=99=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../wedu/compliment_checklist_screen.dart | 65 +++++++++---------- .../wedu/encouragement_checklist_screen.dart | 64 +++++++++--------- 2 files changed, 60 insertions(+), 69 deletions(-) diff --git a/lib/screens/wedu/compliment_checklist_screen.dart b/lib/screens/wedu/compliment_checklist_screen.dart index 59ac629..df5cb43 100644 --- a/lib/screens/wedu/compliment_checklist_screen.dart +++ b/lib/screens/wedu/compliment_checklist_screen.dart @@ -318,46 +318,41 @@ class _ComplimentCheckListState extends State { ], ), ), - InkWell( - onTap: () { - if (isActiveList[index]) { + if (successList[index]['nickname'] != sender) + InkWell( + onTap: () { + if (isActiveList[index]) { + setState(() { + isCheckedList[index] = !isCheckedList[index]; + }); + } setState(() { - isCheckedList[index] = !isCheckedList[index]; + isSelectAll = controlAllSelect(); }); - } - setState(() { - isSelectAll = controlAllSelect(); - }); - }, - child: Container( - width: 24, - height: 24, - decoration: BoxDecoration( - border: Border.all( - color: (isCheckedList[index] - ? PeeroreumColor.primaryPuple[400]! - : PeeroreumColor.gray[200]!), - width: 1, - ), - borderRadius: BorderRadius.circular(4.0), - color: isActiveList[index] - ? (isCheckedList[index] + }, + child: Container( + width: 24, + height: 24, + decoration: BoxDecoration( + border: Border.all( + color: (isCheckedList[index] ? PeeroreumColor.primaryPuple[400]! - : PeeroreumColor.white) - : PeeroreumColor.gray[300]!, - ), - child: - // isCheckedList[index] - // ? Center( - // child: - SvgPicture.asset( - 'assets/icons/check.svg', - color: PeeroreumColor.white, + : PeeroreumColor.gray[200]!), + width: 1, + ), + borderRadius: BorderRadius.circular(4.0), + color: isActiveList[index] + ? (isCheckedList[index] + ? PeeroreumColor.primaryPuple[400]! + : PeeroreumColor.white) + : PeeroreumColor.gray[300]!, + ), + child: SvgPicture.asset( + 'assets/icons/check.svg', + color: PeeroreumColor.white, + ), ), - // ) - // : null, ), - ), ], ), ); diff --git a/lib/screens/wedu/encouragement_checklist_screen.dart b/lib/screens/wedu/encouragement_checklist_screen.dart index 51aed92..e5914c8 100644 --- a/lib/screens/wedu/encouragement_checklist_screen.dart +++ b/lib/screens/wedu/encouragement_checklist_screen.dart @@ -326,45 +326,41 @@ class _EncouragementCheckListState extends State { ], ), ), - InkWell( - onTap: () { - if (isActiveList[index]) { + if (notSuccessList[index]['nickname'] != sender) + InkWell( + onTap: () { + if (isActiveList[index]) { + setState(() { + isCheckedList[index] = !isCheckedList[index]; + }); + } setState(() { - isCheckedList[index] = !isCheckedList[index]; + isSelectAll = controlAllSelect(); }); - } - setState(() { - isSelectAll = controlAllSelect(); - }); - }, - child: Container( - width: 24, - height: 24, - decoration: BoxDecoration( - border: Border.all( - color: (isCheckedList[index] - ? PeeroreumColor.primaryPuple[400]! - : PeeroreumColor.gray[200]!), - width: 1, - ), - borderRadius: BorderRadius.circular(4.0), - color: isActiveList[index] - ? (isCheckedList[index] + }, + child: Container( + width: 24, + height: 24, + decoration: BoxDecoration( + border: Border.all( + color: (isCheckedList[index] ? PeeroreumColor.primaryPuple[400]! - : PeeroreumColor.white) - : PeeroreumColor.gray[300]!, - ), - child: //isCheckedList[index] - //? - // Center( - SvgPicture.asset( - 'assets/icons/check.svg', - color: PeeroreumColor.white, + : PeeroreumColor.gray[200]!), + width: 1, + ), + borderRadius: BorderRadius.circular(4.0), + color: isActiveList[index] + ? (isCheckedList[index] + ? PeeroreumColor.primaryPuple[400]! + : PeeroreumColor.white) + : PeeroreumColor.gray[300]!, + ), + child: SvgPicture.asset( + 'assets/icons/check.svg', + color: PeeroreumColor.white, + ), ), - // ) - //: null, ), - ), ], ), );