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

1、修改SearchAppBar

上级 d8605d61
...@@ -14,6 +14,7 @@ class SearchAppBar extends StatefulWidget implements PreferredSizeWidget { ...@@ -14,6 +14,7 @@ class SearchAppBar extends StatefulWidget implements PreferredSizeWidget {
final Color? searchBackgroundColor; final Color? searchBackgroundColor;
final Color? inputTextColor; final Color? inputTextColor;
final Color? hintTextColor; final Color? hintTextColor;
final Color? searchTextColor;
const SearchAppBar({ const SearchAppBar({
Key? key, Key? key,
...@@ -25,6 +26,7 @@ class SearchAppBar extends StatefulWidget implements PreferredSizeWidget { ...@@ -25,6 +26,7 @@ class SearchAppBar extends StatefulWidget implements PreferredSizeWidget {
this.searchBackgroundColor, this.searchBackgroundColor,
this.inputTextColor, this.inputTextColor,
this.hintTextColor, this.hintTextColor,
this.searchTextColor,
}) : super(key: key); }) : super(key: key);
@override @override
...@@ -98,9 +100,11 @@ class _SearchAppBarState extends State<SearchAppBar> { ...@@ -98,9 +100,11 @@ class _SearchAppBarState extends State<SearchAppBar> {
child: Container( child: Container(
width: 60.0, width: 60.0,
alignment: Alignment.center, 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 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论