提交 04ec2ce5 authored 作者: shixiaochen's avatar shixiaochen

1、SearchAppBar增加图片颜色设置

上级 658a4e9f
...@@ -16,6 +16,7 @@ class SearchAppBar extends StatefulWidget implements PreferredSizeWidget { ...@@ -16,6 +16,7 @@ class SearchAppBar extends StatefulWidget implements PreferredSizeWidget {
final Color? inputTextColor; final Color? inputTextColor;
final Color? hintTextColor; final Color? hintTextColor;
final Color? searchTextColor; final Color? searchTextColor;
final Color? searchIconColor;
final Function? onFocusListener; final Function? onFocusListener;
final String? rightText; final String? rightText;
final Function? onRightBtnCallback; final Function? onRightBtnCallback;
...@@ -35,6 +36,7 @@ class SearchAppBar extends StatefulWidget implements PreferredSizeWidget { ...@@ -35,6 +36,7 @@ class SearchAppBar extends StatefulWidget implements PreferredSizeWidget {
this.onFocusListener, this.onFocusListener,
this.rightText, this.rightText,
this.onRightBtnCallback, this.onRightBtnCallback,
this.searchIconColor,
}) : super(key: key); }) : super(key: key);
@override @override
...@@ -82,7 +84,7 @@ class _SearchAppBarState extends State<SearchAppBar> { ...@@ -82,7 +84,7 @@ class _SearchAppBarState extends State<SearchAppBar> {
child: Row( child: Row(
children: <Widget>[ children: <Widget>[
hGap10, hGap10,
Icon(Icons.search, color: Colors.grey.shade300), Icon(Icons.search, color: widget.searchIconColor ?? Colors.grey.shade300),
hGap5, hGap5,
Expanded( Expanded(
child: TextField( child: TextField(
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论