From 8914f407461c9e83588359a6a1800c982a562410 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9E=A5=EC=8A=B9=ED=98=B8?= Date: Tue, 1 Aug 2023 23:19:54 +0900 Subject: [PATCH 1/2] design enhancement --- assets/translations/ko.json | 2 +- lib/providers/course_search_model.dart | 2 +- lib/providers/lecture_search_model.dart | 2 +- lib/widgets/review_block.dart | 3 ++- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/assets/translations/ko.json b/assets/translations/ko.json index 6fa9f1b6..d209d355 100644 --- a/assets/translations/ko.json +++ b/assets/translations/ko.json @@ -111,7 +111,7 @@ "grade": "성적", "load": "널널", "speech": "강의", - "like": "좋아요", + "like": "추천", "report": "신고하기" }, "user": { diff --git a/lib/providers/course_search_model.dart b/lib/providers/course_search_model.dart index 46f9c52a..ad9795f6 100644 --- a/lib/providers/course_search_model.dart +++ b/lib/providers/course_search_model.dart @@ -166,7 +166,7 @@ class CourseSearchModel extends ChangeNotifier { } else { _courseSearchquery = Text.rich( TextSpan( - style: bodyRegular.copyWith(color: OTLColor.grayA, height: 1.24), + style: evenBodyRegular.copyWith(color: OTLColor.grayA), children: [ TextSpan( text: _courseSearchText.isEmpty ? '' : '"$_courseSearchText"', diff --git a/lib/providers/lecture_search_model.dart b/lib/providers/lecture_search_model.dart index 6f72b76b..1d917db7 100644 --- a/lib/providers/lecture_search_model.dart +++ b/lib/providers/lecture_search_model.dart @@ -142,7 +142,7 @@ class LectureSearchModel extends ChangeNotifier { .map((i) => i.label)))).values.expand((i) => i).toList(); _lectureSearchquery = Text.rich( TextSpan( - style: bodyRegular.copyWith(color: OTLColor.grayA, height: 1.24), + style: evenBodyRegular.copyWith(color: OTLColor.grayA), children: [ TextSpan( text: _lectureSearchText.isEmpty ? '' : '"$_lectureSearchText"', diff --git a/lib/widgets/review_block.dart b/lib/widgets/review_block.dart index fa2bc8b2..ce4be91e 100644 --- a/lib/widgets/review_block.dart +++ b/lib/widgets/review_block.dart @@ -88,6 +88,7 @@ class _ReviewBlockState extends State { ], ), ), + const SizedBox(height: 2.0), ExpandableText( content.trim(), maxLines: widget.maxLines, @@ -140,7 +141,7 @@ class _ReviewBlockState extends State { iconSize: 12.0, icon: _liked ? Icons.favorite : Icons.favorite_border, spaceBetween: 2.0, - text: _liked ? "review.likes".tr() : "review.likes".tr(), + text: "review.like".tr(), textStyle: labelRegular, padding: EdgeInsets.fromLTRB(3, 8, 10, 8), onTap: _liked ? _uploadCancel : _uploadLike, From 07a2ec1b68e62d7125550eb5e79daa5f81b677ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9E=A5=EC=8A=B9=ED=98=B8?= Date: Wed, 2 Aug 2023 01:06:26 +0900 Subject: [PATCH 2/2] design enhancement --- lib/constants/privacy.dart | 2 +- lib/widgets/review_block.dart | 7 ++++--- lib/widgets/review_write_block.dart | 4 ++-- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/lib/constants/privacy.dart b/lib/constants/privacy.dart index 664e1fbb..a22ee83d 100644 --- a/lib/constants/privacy.dart +++ b/lib/constants/privacy.dart @@ -118,7 +118,7 @@ const String privacyText11 = """ const String privacyTitle12 = '12. 개인정보 처리방침 변경'; const String privacyText12 = """ -이 개인정보 처리방침은 2022년 2월 15일에 마지막으로 수정되었으며, 2022년 2월 15일부터 적용됩니다. +이 개인정보 처리방침은 2023년 8월 2일에 마지막으로 수정되었으며, 2023년 8월 2일부터 적용됩니다. """; const List privacyTitles = [ diff --git a/lib/widgets/review_block.dart b/lib/widgets/review_block.dart index ce4be91e..fb28e6c1 100644 --- a/lib/widgets/review_block.dart +++ b/lib/widgets/review_block.dart @@ -138,9 +138,10 @@ class _ReviewBlockState extends State { children: [ IconTextButton( color: OTLColor.pinksMain, - iconSize: 12.0, - icon: _liked ? Icons.favorite : Icons.favorite_border, - spaceBetween: 2.0, + iconSize: 16.0, + icon: + _liked ? Icons.thumb_up_alt : Icons.thumb_up_alt_outlined, + spaceBetween: 4.0, text: "review.like".tr(), textStyle: labelRegular, padding: EdgeInsets.fromLTRB(3, 8, 10, 8), diff --git a/lib/widgets/review_write_block.dart b/lib/widgets/review_write_block.dart index adabd6a2..b74350f6 100644 --- a/lib/widgets/review_write_block.dart +++ b/lib/widgets/review_write_block.dart @@ -249,7 +249,7 @@ class _ReviewWriteBlockState extends State { padding: const EdgeInsets.only(left: 4.0), child: ClipOval( child: BackgroundButton( - color: (_scores[type] == score) ? OTLColor.pinksSub : OTLColor.grayD, + color: (_scores[type] == score) ? OTLColor.gray75 : OTLColor.grayD, onTap: () { setState(() { _scores[type] = (_scores[type] == score) ? 0 : score; @@ -263,7 +263,7 @@ class _ReviewWriteBlockState extends State { ["?", "F", "D", "C", "B", "A"][score], style: labelBold.copyWith( color: - _scores[type] == score ? OTLColor.gray0 : OTLColor.grayF, + _scores[type] == score ? OTLColor.grayF : OTLColor.grayF, ), ), ),