Skip to content

Commit

Permalink
Fix preview area to relative
Browse files Browse the repository at this point in the history
  • Loading branch information
TaYaKi71751 committed Dec 23, 2023
1 parent 31b7f8c commit 5a99a2b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/pages/article_info/article_info_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 5a99a2b

Please sign in to comment.