feat: Dismiss keyboard on scroll in iOS
This commit is contained in:
parent
b269ab6f58
commit
15aa228581
2 changed files with 13 additions and 0 deletions
|
|
@ -268,6 +268,9 @@ class ChatView extends StatelessWidget {
|
|||
),
|
||||
reverse: true,
|
||||
controller: controller.scrollController,
|
||||
keyboardDismissBehavior: PlatformInfos.isIOS
|
||||
? ScrollViewKeyboardDismissBehavior.onDrag
|
||||
: ScrollViewKeyboardDismissBehavior.manual,
|
||||
childrenDelegate: SliverChildBuilderDelegate(
|
||||
(BuildContext context, int i) {
|
||||
return i == controller.filteredEvents.length + 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue