feat: Add keyboard dismiss on scroll

This commit is contained in:
cogwheel0
2025-11-05 14:12:58 +05:30
parent fd004d6494
commit bdd90b32fa
13 changed files with 212 additions and 4 deletions

View File

@@ -712,6 +712,7 @@ class _ChatPageState extends ConsumerState<ChatPage> {
return CustomScrollView(
key: const ValueKey('loading_messages'),
controller: null,
keyboardDismissBehavior: ScrollViewKeyboardDismissBehavior.onDrag,
physics: const AlwaysScrollableScrollPhysics(),
cacheExtent: 300,
slivers: [
@@ -840,6 +841,7 @@ class _ChatPageState extends ConsumerState<ChatPage> {
return CustomScrollView(
key: const ValueKey('actual_messages'),
controller: _scrollController,
keyboardDismissBehavior: ScrollViewKeyboardDismissBehavior.onDrag,
physics: const AlwaysScrollableScrollPhysics(),
cacheExtent: 600,
slivers: [