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

1、SearchAppBar增加图片颜色设置

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