From 5a99a2b60ca67ec6f4ce8dc26cb9ca80f40eb5a8 Mon Sep 17 00:00:00 2001 From: TaYaKi71751 Date: Sat, 23 Dec 2023 13:35:08 +0900 Subject: [PATCH] Fix preview area to relative --- lib/pages/article_info/article_info_page.dart | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/pages/article_info/article_info_page.dart b/lib/pages/article_info/article_info_page.dart index ffcc0d3ed..c851846b4 100644 --- a/lib/pages/article_info/article_info_page.dart +++ b/lib/pages/article_info/article_info_page.dart @@ -549,7 +549,10 @@ class PreviewAreaWidget extends StatelessWidget { controller: null, physics: const ScrollPhysics(), shrinkWrap: true, - crossAxisCount: 3, + crossAxisCount: ((){ + // return 3; + return int.parse('${(int.parse(('${(MediaQuery.of(context).size.width)}'.split('.')[0])) / 200)}'.split('.')[0]); + })(), childAspectRatio: 3 / 4, crossAxisSpacing: 8, mainAxisSpacing: 8,