searchContainer method
Implementation
Widget searchContainer() {
return Padding(
padding: EdgeInsets.symmetric(vertical: (9)),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Row(
children: [
Expanded(
flex: 10,
child: CustomTextFieldWidget(
controller: controller.searchController,
keyboardType: TextInputType.text,
addHint: true,
validator: null,
hintText: 'Search products',
onChanged: (value) => controller.filterSearchResults(value!),
textInputAction: TextInputAction.search,
),
),
Expanded(
flex: 2,
child: CustomInkwellWidget(
onTap: () {
controller.hideShowSearch();
},
child: const Icon(
Icons.close,
size: 35,
color: AppColors.borderColor,
)))
],
),
verticalSpaceMedium,
CustomText(
text: controller.totalResults.toString() + " search Results",
txtColor: AppColors.doveGray,
font: Dimens.fontSize18,
txtAlign: TextAlign.start,
fntstyle: FontStyle.normal,
fntweight: FontWeight.w400,
),
],
),
);
}