From 3fdf560a42c8bd4fb5179701202a55d21ba534d4 Mon Sep 17 00:00:00 2001 From: w-R <953969641@qq.com> Date: Tue, 9 Nov 2021 18:44:41 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=86=E9=A2=91=E7=BC=A9=E6=94=BE=E9=80=82?= =?UTF-8?q?=E9=85=8D=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_details.dart | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/community/community_view/class_details.dart b/lib/community/community_view/class_details.dart index f26498d2..7bd9251a 100644 --- a/lib/community/community_view/class_details.dart +++ b/lib/community/community_view/class_details.dart @@ -440,7 +440,7 @@ class _ClassDetails extends State with WidgetsBindingObserver { ) : Container( width: width, - height: height, + height:width / 7 * 5, )), if (isShowImg) GestureDetector( @@ -482,6 +482,7 @@ class _ClassDetails extends State with WidgetsBindingObserver { Widget anthology() { return Container( color: Colors.white, + height: 148.h, margin: EdgeInsets.only(bottom: 16), padding: EdgeInsets.all(16), child: Column( @@ -551,6 +552,8 @@ class _ClassDetails extends State with WidgetsBindingObserver { ), child: Text( chapterList?.name ?? chapterList.name ?? "", + overflow: TextOverflow.ellipsis, + maxLines: 2, style: TextStyle( fontSize: 12.sp, fontWeight: MyFontWeight.regular,