Browse Source

fix some bug

fix_bug
mohsen zamani 1 year ago
parent
commit
6d72f14c27
  1. 16
      lib/features/posts/screen/posts_screen.dart

16
lib/features/posts/screen/posts_screen.dart

@ -105,13 +105,14 @@ class _PostsScreenState extends State<PostsScreen> {
forceElevated: false, forceElevated: false,
shadowColor: Colors.transparent, shadowColor: Colors.transparent,
bottom: PreferredSize( bottom: PreferredSize(
preferredSize: const Size.fromHeight(95),
preferredSize: const Size.fromHeight(116),
child: Column( child: Column(
children: [ children: [
SizedBox(height: context.height * 26 / AppConstants.instance.appHeight), SizedBox(height: context.height * 26 / AppConstants.instance.appHeight),
Padding( Padding(
padding:
EdgeInsets.symmetric(horizontal: context.width * 26 / AppConstants.instance.appWidth),
padding: EdgeInsets.symmetric(
horizontal: context.width * 26 / AppConstants.instance.appWidth,
),
child: _searchMode child: _searchMode
? Row( ? Row(
children: [ children: [
@ -244,8 +245,9 @@ class _PostsScreenState extends State<PostsScreen> {
SizedBox( SizedBox(
height: context.height * 31 / AppConstants.instance.appHeight, height: context.height * 31 / AppConstants.instance.appHeight,
child: ListView.builder( 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) { itemBuilder: (context, index) {
return GestureDetector( return GestureDetector(
onTap: () { onTap: () {
@ -270,11 +272,11 @@ class _PostsScreenState extends State<PostsScreen> {
delegate: SliverChildBuilderDelegate( delegate: SliverChildBuilderDelegate(
(context, index) { (context, index) {
if (_loading) { if (_loading) {
return const Expanded(child: LoadingListWidget());
return const LoadingListWidget();
} }
return ListView.builder( return ListView.builder(
shrinkWrap: true, shrinkWrap: true,
physics: NeverScrollableScrollPhysics(),
physics: const NeverScrollableScrollPhysics(),
itemBuilder: (context, index) { itemBuilder: (context, index) {
if (_searchMode) { if (_searchMode) {
return GestureDetector( return GestureDetector(

Loading…
Cancel
Save