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,
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<PostsScreen> {
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<PostsScreen> {
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(

Loading…
Cancel
Save