diff --git a/Sources/justMUSIC/lib/screens/feed_screen.dart b/Sources/justMUSIC/lib/screens/feed_screen.dart index a369c4c..97c42e2 100644 --- a/Sources/justMUSIC/lib/screens/feed_screen.dart +++ b/Sources/justMUSIC/lib/screens/feed_screen.dart @@ -4,11 +4,9 @@ import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:google_fonts/google_fonts.dart'; -import 'package:image_picker/image_picker.dart'; import '../components/comment_component.dart'; import '../components/post_component.dart'; import '../components/top_nav_bar_component.dart'; -import '../main.dart'; import '../values/constants.dart'; class FeedScreen extends StatefulWidget { @@ -124,6 +122,8 @@ class _FeedScreenState extends State padding: EdgeInsets.only( left: defaultPadding, right: defaultPadding), child: SingleChildScrollView( + physics: BouncingScrollPhysics( + decelerationRate: ScrollDecelerationRate.fast), child: Wrap( // to apply margin in the main axis of the wrap runSpacing: 10, @@ -237,10 +237,6 @@ class _FeedScreenState extends State ); } - void _onModalClosed() { - print("modal closed"); - } - @override Widget build(BuildContext context) { return Scaffold( @@ -252,6 +248,8 @@ class _FeedScreenState extends State animation: animation, centerOffset: Offset(30.w, -100), child: SingleChildScrollView( + physics: const BouncingScrollPhysics( + decelerationRate: ScrollDecelerationRate.fast), child: SizedBox( width: double.infinity, child: Align( diff --git a/Sources/justMUSIC/lib/screens/profile_screen.dart b/Sources/justMUSIC/lib/screens/profile_screen.dart index 896cd91..eead70d 100644 --- a/Sources/justMUSIC/lib/screens/profile_screen.dart +++ b/Sources/justMUSIC/lib/screens/profile_screen.dart @@ -60,6 +60,8 @@ class _ProfileScreenState extends State { height: double.infinity, color: bgColor, child: SingleChildScrollView( + physics: const BouncingScrollPhysics( + decelerationRate: ScrollDecelerationRate.fast), child: Padding( padding: const EdgeInsets.symmetric(horizontal: settingPadding), child: Column( diff --git a/Sources/justMUSIC/lib/screens/search_song_screen.dart b/Sources/justMUSIC/lib/screens/search_song_screen.dart index 8ef2ecc..02dc64a 100644 --- a/Sources/justMUSIC/lib/screens/search_song_screen.dart +++ b/Sources/justMUSIC/lib/screens/search_song_screen.dart @@ -166,6 +166,8 @@ class _SearchSongScreenState extends State { child: ScrollConfiguration( behavior: ScrollBehavior().copyWith(scrollbars: true), child: ListView.builder( + physics: const BouncingScrollPhysics( + decelerationRate: ScrollDecelerationRate.fast), controller: _scrollController, itemCount: filteredData.length, itemBuilder: (context, index) {