change function name

main_design2.0
zaid_daoud 2 years ago
parent 5e4d0927a5
commit 58e6118cff

@ -26,7 +26,7 @@ class SearchAllRequestsModel {
this.endDate, this.endDate,
}); });
void resetOtherValues() { void resetSearchValues() {
requestNumber?.controller?.text = ""; requestNumber?.controller?.text = "";
assetName?.controller?.text = ""; assetName?.controller?.text = "";
assetNo?.controller?.text = ""; assetNo?.controller?.text = "";

@ -68,7 +68,7 @@ class _AllRequestsSearchPageState extends State<AllRequestsSearchPage> {
// style: AppTextStyles.bodyText2.copyWith(color: const Color(0xFF4A8DB7)), // style: AppTextStyles.bodyText2.copyWith(color: const Color(0xFF4A8DB7)),
).paddingAll(8).onPress(() { ).paddingAll(8).onPress(() {
setState(() { setState(() {
search.resetOtherValues(); search.resetSearchValues();
}); });
}), }),
], ],
@ -91,7 +91,7 @@ class _AllRequestsSearchPageState extends State<AllRequestsSearchPage> {
onSelect: (value) { onSelect: (value) {
if (search.searchBySelectedValue != value) { if (search.searchBySelectedValue != value) {
search.searchBySelectedValue = value; search.searchBySelectedValue = value;
search.resetOtherValues(); search.resetSearchValues();
setState(() {}); setState(() {});
} }
}, },

Loading…
Cancel
Save