提交 6aadaa80 authored 作者: shixiaochen's avatar shixiaochen

1、修改SearchAppBar

上级 d8605d61
......@@ -14,6 +14,7 @@ class SearchAppBar extends StatefulWidget implements PreferredSizeWidget {
final Color? searchBackgroundColor;
final Color? inputTextColor;
final Color? hintTextColor;
final Color? searchTextColor;
const SearchAppBar({
Key? key,
......@@ -25,6 +26,7 @@ class SearchAppBar extends StatefulWidget implements PreferredSizeWidget {
this.searchBackgroundColor,
this.inputTextColor,
this.hintTextColor,
this.searchTextColor,
}) : super(key: key);
@override
......@@ -98,9 +100,11 @@ class _SearchAppBarState extends State<SearchAppBar> {
child: Container(
width: 60.0,
alignment: Alignment.center,
child: const Text(
child: Text(
"搜索",
style: TextStyle(color: Color(0xFFFFFFFF), fontSize: 14.0),
style: TextStyle(
color: widget.searchTextColor ?? const Color(0xFFFFFFFF),
fontSize: 14.0),
),
),
)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论