close keyboard on listView scroll
Signed-off-by: xsahil03x <[email protected]>
This commit is contained in:
+33
-29
@@ -128,38 +128,42 @@ class _ChannelListPageState extends State<ChannelListPage> {
|
|||||||
Expanded(
|
Expanded(
|
||||||
child: AnimatedSwitcher(
|
child: AnimatedSwitcher(
|
||||||
duration: const Duration(milliseconds: 350),
|
duration: const Duration(milliseconds: 350),
|
||||||
child: _isSearchActive
|
child: GestureDetector(
|
||||||
? MessageSearchListView(
|
behavior: HitTestBehavior.opaque,
|
||||||
messageQuery: _channelQuery,
|
onPanDown: (_) => FocusScope.of(context).unfocus(),
|
||||||
filters: {
|
child: _isSearchActive
|
||||||
'members': {
|
? MessageSearchListView(
|
||||||
r'$in': [user.id]
|
messageQuery: _channelQuery,
|
||||||
}
|
filters: {
|
||||||
},
|
'members': {
|
||||||
paginationParams: PaginationParams(limit: 20),
|
r'$in': [user.id]
|
||||||
onItemTap: (message) {},
|
}
|
||||||
)
|
|
||||||
: ChannelListView(
|
|
||||||
onStartChatPressed: () {
|
|
||||||
Navigator.pushNamed(context, Routes.NEW_CHAT);
|
|
||||||
},
|
|
||||||
swipeToAction: true,
|
|
||||||
filter: {
|
|
||||||
'members': {
|
|
||||||
r'$in': [user.id],
|
|
||||||
},
|
},
|
||||||
'draft': {
|
paginationParams: PaginationParams(limit: 20),
|
||||||
r'$ne': true,
|
onItemTap: (message) {},
|
||||||
|
)
|
||||||
|
: ChannelListView(
|
||||||
|
onStartChatPressed: () {
|
||||||
|
Navigator.pushNamed(context, Routes.NEW_CHAT);
|
||||||
},
|
},
|
||||||
},
|
swipeToAction: true,
|
||||||
options: {
|
filter: {
|
||||||
'presence': true,
|
'members': {
|
||||||
},
|
r'$in': [user.id],
|
||||||
pagination: PaginationParams(
|
},
|
||||||
limit: 20,
|
'draft': {
|
||||||
|
r'$ne': true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
options: {
|
||||||
|
'presence': true,
|
||||||
|
},
|
||||||
|
pagination: PaginationParams(
|
||||||
|
limit: 20,
|
||||||
|
),
|
||||||
|
channelWidget: ChannelPage(),
|
||||||
),
|
),
|
||||||
channelWidget: ChannelPage(),
|
),
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user