close keyboard on listView scroll
Signed-off-by: xsahil03x <[email protected]>
This commit is contained in:
@@ -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> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user