From 6d72f14c27260d1e0b893657f83824a4f9782463 Mon Sep 17 00:00:00 2001 From: mohsen zamani Date: Tue, 30 May 2023 01:00:22 +0330 Subject: [PATCH] fix some bug --- lib/features/posts/screen/posts_screen.dart | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/lib/features/posts/screen/posts_screen.dart b/lib/features/posts/screen/posts_screen.dart index 7bd34b9..9592c87 100644 --- a/lib/features/posts/screen/posts_screen.dart +++ b/lib/features/posts/screen/posts_screen.dart @@ -105,13 +105,14 @@ class _PostsScreenState extends State { forceElevated: false, shadowColor: Colors.transparent, bottom: PreferredSize( - preferredSize: const Size.fromHeight(95), + preferredSize: const Size.fromHeight(116), child: Column( children: [ SizedBox(height: context.height * 26 / AppConstants.instance.appHeight), Padding( - padding: - EdgeInsets.symmetric(horizontal: context.width * 26 / AppConstants.instance.appWidth), + padding: EdgeInsets.symmetric( + horizontal: context.width * 26 / AppConstants.instance.appWidth, + ), child: _searchMode ? Row( children: [ @@ -244,8 +245,9 @@ class _PostsScreenState extends State { SizedBox( height: context.height * 31 / AppConstants.instance.appHeight, child: ListView.builder( - padding: - EdgeInsetsDirectional.only(start: context.width * 26 / AppConstants.instance.appWidth), + padding: EdgeInsetsDirectional.only( + start: context.width * 26 / AppConstants.instance.appWidth, + ), itemBuilder: (context, index) { return GestureDetector( onTap: () { @@ -270,11 +272,11 @@ class _PostsScreenState extends State { delegate: SliverChildBuilderDelegate( (context, index) { if (_loading) { - return const Expanded(child: LoadingListWidget()); + return const LoadingListWidget(); } return ListView.builder( shrinkWrap: true, - physics: NeverScrollableScrollPhysics(), + physics: const NeverScrollableScrollPhysics(), itemBuilder: (context, index) { if (_searchMode) { return GestureDetector(