close keyboard on listView scroll

Signed-off-by: xsahil03x <[email protected]>
This commit is contained in:
xsahil03x
2020-11-27 14:08:41 +05:30
parent 1ef7511f62
commit d5e8ee2071
+4
View File
@@ -128,6 +128,9 @@ class _ChannelListPageState extends State<ChannelListPage> {
Expanded( Expanded(
child: AnimatedSwitcher( child: AnimatedSwitcher(
duration: const Duration(milliseconds: 350), duration: const Duration(milliseconds: 350),
child: GestureDetector(
behavior: HitTestBehavior.opaque,
onPanDown: (_) => FocusScope.of(context).unfocus(),
child: _isSearchActive child: _isSearchActive
? MessageSearchListView( ? MessageSearchListView(
messageQuery: _channelQuery, messageQuery: _channelQuery,
@@ -162,6 +165,7 @@ class _ChannelListPageState extends State<ChannelListPage> {
), ),
), ),
), ),
),
], ],
), ),
), ),