From e27c29dbd81fff153ea39bad2a273a37d2c05d35 Mon Sep 17 00:00:00 2001 From: w-R <953969641@qq.com> Date: Wed, 30 Jun 2021 10:55:02 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B5=E9=9D=A2item=E6=9B=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/article/hot_article_details_page.dart | 34 ++++++----------------- 1 file changed, 9 insertions(+), 25 deletions(-) diff --git a/lib/article/hot_article_details_page.dart b/lib/article/hot_article_details_page.dart index 6d0aea60..8583a5fd 100644 --- a/lib/article/hot_article_details_page.dart +++ b/lib/article/hot_article_details_page.dart @@ -177,32 +177,16 @@ class _HotArticleDetailsPage extends State { fontWeight: FontWeight.bold, color: Color(0xff1A1A1A))), SizedBox( - height: 28, + child: ListView.builder( + itemCount: 6, + scrollDirection: Axis.vertical, + physics: BouncingScrollPhysics(), + itemBuilder: (context, position) { + return _commentItem(); + }, + ), ), - // Container( - // child: ListView.builder( - // itemCount: 10, - // itemBuilder: (context, position) { - // _commentItem(); - // return Container( - // margin: EdgeInsets.only( - // left: 16, right: 16, top: position == 0 ? 32 : 8, bottom: 8), - // padding: EdgeInsets.only(top: 16, bottom: 16), - // decoration: BoxDecoration( - // color: Colors.white, - // boxShadow: [ - // BoxShadow( - // color: Colors.black.withAlpha(12), - // offset: Offset(0, 3), - // blurRadius: 14, - // spreadRadius: 0) - // ], - // borderRadius: BorderRadius.all(Radius.circular(8))), - // child: _commentItem(), - // ); - // }), - // ) - _commentItem() + // _commentItem() ], ),