Compare commits

..

No commits in common. "3315cf196122bf3da054aba934fde30889f0d573" and "6b53dc170d620d3e9f5ae517d20d128e01698890" have entirely different histories.

View File

@ -419,9 +419,7 @@ class _MyHomePageState extends State<ListItemMenu> {
readOnly: true,
decoration: InputDecoration(
border: OutlineInputBorder(),
suffixIcon: datePicker.text.isEmpty
? null
: IconButton(
suffixIcon: IconButton(
icon: const Icon(Icons.clear),
onPressed: () async {
setState(() {
@ -446,9 +444,7 @@ class _MyHomePageState extends State<ListItemMenu> {
decoration: InputDecoration(
labelText: 'Search by geographical zone',
border: OutlineInputBorder(),
suffixIcon: inputGeo.text.isEmpty
? null
: IconButton(
suffixIcon: IconButton(
icon: const Icon(Icons.clear),
onPressed: () async {
SharedPreferences prefs =
@ -457,12 +453,10 @@ class _MyHomePageState extends State<ListItemMenu> {
prefs.remove("city_long");
setState(() {
inputGeo.clear(); // Clear the text field
geographicalZone =
''; // Reset the geographical zone state
geographicalZone = ''; // Reset the geographical zone state
suggestions.clear();
showArrow = true;
showInputSearch =
true; // Optionally clear suggestions
showInputSearch = true; // Optionally clear suggestions
/// Clear the filtered posts
});
fetchPostsByLocation();
@ -543,9 +537,7 @@ class _MyHomePageState extends State<ListItemMenu> {
decoration: InputDecoration(
labelText: 'Search by item',
border: OutlineInputBorder(),
suffixIcon: inputItem.text.isEmpty
? null
: IconButton(
suffixIcon: IconButton(
icon: const Icon(Icons.clear),
onPressed: () {
setState(() {