From 3f0a7a22279bece97d3d06cd5c36b4bab1969a2b Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sun, 8 Dec 2024 17:03:10 +0800 Subject: [PATCH] :iphone: Fix post item responsive --- lib/widgets/navigation/app_drawer_navigation.dart | 2 +- lib/widgets/post/post_item.dart | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/widgets/navigation/app_drawer_navigation.dart b/lib/widgets/navigation/app_drawer_navigation.dart index b886ec0..b17e671 100644 --- a/lib/widgets/navigation/app_drawer_navigation.dart +++ b/lib/widgets/navigation/app_drawer_navigation.dart @@ -54,7 +54,7 @@ class _AppNavigationDrawerState extends State { ], ).padding( horizontal: 32, - top: MediaQuery.of(context).padding.top + 8, + top: MediaQuery.of(context).padding.top + 12, bottom: 12, ), ...destinations.where((ele) => ele.isPinned).map((ele) { diff --git a/lib/widgets/post/post_item.dart b/lib/widgets/post/post_item.dart index 320c963..6cdb870 100644 --- a/lib/widgets/post/post_item.dart +++ b/lib/widgets/post/post_item.dart @@ -68,7 +68,7 @@ class PostItem extends StatelessWidget { onDeleted: () { if (onDeleted != null) {} }, - ).padding(horizontal: 12, top: 8, bottom: 4), + ).padding(horizontal: 12, top: 8, bottom: 8), Container( width: double.infinity, margin: const EdgeInsets.only(bottom: 4, left: 12, right: 12), @@ -120,7 +120,7 @@ class PostItem extends StatelessWidget { ).padding(left: 8, right: 14), ], ), - ); + ).center(); } return Column(