提交 25667735 authored 作者: 史晓晨's avatar 史晓晨

feat:SearchAppBar去除软键盘控制

上级 1090257f
...@@ -76,11 +76,7 @@ class _SearchAppBarState extends State<SearchAppBar> { ...@@ -76,11 +76,7 @@ class _SearchAppBarState extends State<SearchAppBar> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return KeyboardActions( return AppBar(
config:
KeyBoardUtils.getKeyboardActionsConfig(context, [_searchFocusNode]),
tapOutsideBehavior: TapOutsideBehavior.opaqueDismiss,
child: AppBar(
backgroundColor: widget.backgroundColor, backgroundColor: widget.backgroundColor,
foregroundColor: widget.foregroundColor, foregroundColor: widget.foregroundColor,
titleSpacing: 0.0, titleSpacing: 0.0,
...@@ -163,7 +159,6 @@ class _SearchAppBarState extends State<SearchAppBar> { ...@@ -163,7 +159,6 @@ class _SearchAppBarState extends State<SearchAppBar> {
) )
], ],
), ),
),
); );
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论