提交 d8605d61 authored 作者: shixiaochen's avatar shixiaochen

1、修改SearchAppBar

上级 c36e204f
......@@ -49,65 +49,62 @@ class _SearchAppBarState extends State<SearchAppBar> {
titleSpacing: 0.0,
primary: widget.primary,
leading: widget.leading,
title: Container(
color: Colors.blue,
child: Row(
children: <Widget>[
Expanded(
child: Container(
decoration: BoxDecoration(
borderRadius: const BorderRadius.all(Radius.circular(20.0)),
color:
widget.searchBackgroundColor ?? const Color(0xFFEEEEEE),
),
child: Row(
children: <Widget>[
hGap10,
Icon(Icons.search, color: Colors.grey.shade300),
hGap5,
Expanded(
child: TextField(
maxLines: 1,
focusNode: searchFocusNode,
style: TextStyle(
fontSize: 14,
color: widget.inputTextColor ??
const Color(0xFF000000)),
textInputAction: TextInputAction.search,
controller: searchInfoController,
onSubmitted: (value) => _search(),
decoration: InputDecoration(
contentPadding: const EdgeInsets.symmetric(
horizontal: 0.0, vertical: 8.0),
isDense: true,
counterText: "",
hintText: widget.hintText,
hintStyle: TextStyle(
fontSize: 14.0,
color: widget.hintTextColor ??
const Color(0xFF999999)),
border: InputBorder.none, //去掉下划线
//hintStyle: TextStyles.textGrayC14
),
title: Row(
children: <Widget>[
Expanded(
child: Container(
decoration: BoxDecoration(
borderRadius: const BorderRadius.all(Radius.circular(20.0)),
color:
widget.searchBackgroundColor ?? const Color(0xFFEEEEEE),
),
child: Row(
children: <Widget>[
hGap10,
Icon(Icons.search, color: Colors.grey.shade300),
hGap5,
Expanded(
child: TextField(
maxLines: 1,
focusNode: searchFocusNode,
style: TextStyle(
fontSize: 14,
color: widget.inputTextColor ??
const Color(0xFF000000)),
textInputAction: TextInputAction.search,
controller: searchInfoController,
onSubmitted: (value) => _search(),
decoration: InputDecoration(
contentPadding: const EdgeInsets.symmetric(
horizontal: 0.0, vertical: 8.0),
isDense: true,
counterText: "",
hintText: widget.hintText,
hintStyle: TextStyle(
fontSize: 14.0,
color: widget.hintTextColor ??
const Color(0xFF999999)),
border: InputBorder.none, //去掉下划线
//hintStyle: TextStyles.textGrayC14
),
),
],
),
),
],
),
),
InkWell(
onTap: () => _search(),
child: Container(
width: 60.0,
alignment: Alignment.center,
child: const Text(
"搜索",
style: TextStyle(color: Color(0xFFFFFFFF), fontSize: 14.0),
),
),
InkWell(
onTap: () => _search(),
child: Container(
width: 60.0,
alignment: Alignment.center,
child: const Text(
"搜索",
style: TextStyle(color: Color(0xFFFFFFFF), fontSize: 14.0),
),
)
],
),
),
)
],
),
),
);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论