|
@@ -242,6 +242,7 @@ class _PreselectedAddStaffState extends State<PreselectedAddStaff> {
|
|
|
children: [
|
|
|
Expanded(
|
|
|
child: SearchAppBar(
|
|
|
+ key: Key("keyword"),
|
|
|
value: controller.keyword,
|
|
|
searchBarHeight: 38,
|
|
|
searchBarBgColor: Colors.white,
|
|
@@ -251,15 +252,40 @@ class _PreselectedAddStaffState extends State<PreselectedAddStaff> {
|
|
|
width: 0.5, // 设置边框宽度
|
|
|
),
|
|
|
textHintColor: Color(0XFFAFB3B7),
|
|
|
- textFontSize: 12.0,
|
|
|
textColor: ColorConstants.black33,
|
|
|
+ textFontSize: 12.0,
|
|
|
+ showSearchIcon: false,
|
|
|
+ margin: EdgeInsets.only(right: 5),
|
|
|
onSearch: (keyword) {
|
|
|
- controller.searchInputSearch(keyword);
|
|
|
+ controller.searchKeywordInputSearch(keyword);
|
|
|
},
|
|
|
- hintText: "Staff Name/Loction".tr,
|
|
|
+ hintText: "Staff Name".tr,
|
|
|
controller: controller.searchController,
|
|
|
),
|
|
|
),
|
|
|
+ Expanded(
|
|
|
+ child: SearchAppBar(
|
|
|
+ key: Key("searchLocation"),
|
|
|
+ value: controller.searchLocation,
|
|
|
+ searchBarHeight: 38,
|
|
|
+ searchBarBgColor: Colors.white,
|
|
|
+ searchBarBorderRadius: 15,
|
|
|
+ searchBarBorder: Border.all(
|
|
|
+ color: Color(0XFFC3C3C3), // 设置边框颜色为灰色
|
|
|
+ width: 0.5, // 设置边框宽度
|
|
|
+ ),
|
|
|
+ textHintColor: Color(0XFFAFB3B7),
|
|
|
+ textColor: ColorConstants.black33,
|
|
|
+ textFontSize: 12.0,
|
|
|
+ showSearchIcon: false,
|
|
|
+ margin: EdgeInsets.only(right: 5),
|
|
|
+ onSearch: (searchLocation) {
|
|
|
+ controller.searchLocationInputSearch(searchLocation);
|
|
|
+ },
|
|
|
+ hintText: "Location".tr,
|
|
|
+ controller: controller.searchLocationController,
|
|
|
+ ),
|
|
|
+ ),
|
|
|
Row(
|
|
|
mainAxisAlignment: MainAxisAlignment.end,
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|