From 27d9fa05f527a1134308e958614cf8fb66a075d1 Mon Sep 17 00:00:00 2001 From: orz12 Date: Fri, 22 Mar 2024 21:09:19 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=B9=B3=E6=9D=BF=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/pages/whisper/view.dart | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/lib/pages/whisper/view.dart b/lib/pages/whisper/view.dart index 3b6c2427..697baa56 100644 --- a/lib/pages/whisper/view.dart +++ b/lib/pages/whisper/view.dart @@ -59,17 +59,14 @@ class _WhisperPageState extends State { return Padding( padding: const EdgeInsets.only(left: 20, right: 20), child: SizedBox( - height: constraints.maxWidth / 4 + 10, + height: 90, child: Obx( - () => GridView.count( - primary: false, - crossAxisCount: 4, - padding: const EdgeInsets.fromLTRB(0, 7, 0, 0), - childAspectRatio: 1.2, + () => Row( children: Iterable.generate( _whisperController.msgFeedTop.length) .map((idx) { - return GestureDetector( + return Expanded( + child: GestureDetector( child: Column( crossAxisAlignment: CrossAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center, @@ -112,7 +109,7 @@ class _WhisperPageState extends State { Get.toNamed( _whisperController.msgFeedTop[idx]['route']); }, - ); + )); }).toList(), ), ),