From c1adf43e70ab742365d5d3ba876988f74efde1cb Mon Sep 17 00:00:00 2001 From: w-R <953969641@qq.com> Date: Fri, 17 Jun 2022 11:01:16 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=BE=E7=A8=8B=E6=9B=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/community/community_view/class_list_view.dart | 2 +- lib/community/community_view/home_class.dart | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/community/community_view/class_list_view.dart b/lib/community/community_view/class_list_view.dart index 92f45945..c1c2a21f 100644 --- a/lib/community/community_view/class_list_view.dart +++ b/lib/community/community_view/class_list_view.dart @@ -168,7 +168,7 @@ class _ClassListView extends State { Text( classList.subject, overflow: TextOverflow.ellipsis, - maxLines: 2, + maxLines: 1, style: TextStyle( fontSize: 14.sp, fontWeight: MyFontWeight.semi_bold, diff --git a/lib/community/community_view/home_class.dart b/lib/community/community_view/home_class.dart index add55a71..2649c8ab 100644 --- a/lib/community/community_view/home_class.dart +++ b/lib/community/community_view/home_class.dart @@ -48,8 +48,6 @@ class _HomeClass extends State { Widget collectItem(CollectClassList collectList) { return Container( - width: 168.w, - // height: 250, margin: EdgeInsets.symmetric( horizontal: 6.w, vertical: 10.h, @@ -106,7 +104,6 @@ class _HomeClass extends State { Widget classItem(CourseList collect) { return Container( width: 168.w, - height: 195.h, decoration: BoxDecoration( borderRadius: BorderRadius.vertical( bottom: Radius.circular(4), @@ -258,7 +255,7 @@ class _HomeClass extends State { child: Text( collect.subject, overflow: TextOverflow.ellipsis, - maxLines: 2, + maxLines: 1, style: TextStyle( fontSize: 14.sp, fontWeight: MyFontWeight.semi_bold,