|
|
|
|
@ -206,18 +206,18 @@ class _CleanerSearchFormViewState extends State<CleanerSearchFormView> {
|
|
|
|
|
// Site Autocomplete Field
|
|
|
|
|
Container(
|
|
|
|
|
padding: EdgeInsets.symmetric(horizontal: 16.toScreenWidth, vertical: 8.toScreenHeight),
|
|
|
|
|
decoration: BoxDecoration(color: AppColor.fieldBgColor(context), borderRadius: BorderRadius.circular(16), border: Border.all(color: AppColor.borderColor(context))),
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
color: AppColor.dropDownBackground(context),
|
|
|
|
|
borderRadius: BorderRadius.circular(16),
|
|
|
|
|
border: Border.all(color: AppColor.border2Color(context), width: 1),
|
|
|
|
|
),
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
Text(
|
|
|
|
|
'Site',
|
|
|
|
|
style: Theme.of(context).textTheme.bodySmall?.copyWith(
|
|
|
|
|
color: context.isDark ? AppColor.neutral30 : AppColor.neutral20,
|
|
|
|
|
fontWeight: FontWeight.w500,
|
|
|
|
|
),
|
|
|
|
|
style: TextStyle(fontWeight: FontWeight.w500, fontSize: context.isTablet() ? 16 : 12, color: AppColor.floatingTextStyleColor(context)),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(height: 4.toScreenHeight),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 24.toScreenHeight, // Fixed height for consistency
|
|
|
|
|
child: Autocomplete<Hospital>(
|
|
|
|
|
@ -264,14 +264,11 @@ class _CleanerSearchFormViewState extends State<CleanerSearchFormView> {
|
|
|
|
|
controller: controller,
|
|
|
|
|
// focusNode: _siteFocusNode,
|
|
|
|
|
focusNode: focusNode,
|
|
|
|
|
style: AppTextStyles.bodyText.copyWith(
|
|
|
|
|
color: context.isDark ? AppColor.neutral30 : AppColor.black10,
|
|
|
|
|
),
|
|
|
|
|
cursorColor: AppColor.loadingColor(context),
|
|
|
|
|
style: TextStyle(fontWeight: FontWeight.w500, fontSize: context.isTablet() ? 16 : 14, color: AppColor.textStyleColor(context)),
|
|
|
|
|
decoration: InputDecoration(
|
|
|
|
|
hintText: 'Search site...',
|
|
|
|
|
hintStyle: AppTextStyles.bodyText.copyWith(
|
|
|
|
|
color: AppColor.neutral20,
|
|
|
|
|
),
|
|
|
|
|
hintStyle: TextStyle(fontWeight: FontWeight.w500, fontSize: context.isTablet() ? 16 : 12, color: AppColor.labelTextStyleColor(context)),
|
|
|
|
|
filled: false,
|
|
|
|
|
border: InputBorder.none,
|
|
|
|
|
enabledBorder: InputBorder.none,
|
|
|
|
|
@ -308,9 +305,9 @@ class _CleanerSearchFormViewState extends State<CleanerSearchFormView> {
|
|
|
|
|
_allDeptRoomList = [];
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
child: const Icon(
|
|
|
|
|
child: Icon(
|
|
|
|
|
Icons.clear,
|
|
|
|
|
color: AppColor.neutral20,
|
|
|
|
|
color: AppColor.icon2Color(context),
|
|
|
|
|
size: 20,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
|