feature/suggestion-tag #30

Merged
v4l3n71n merged 11 commits from feature/suggestion-tag into main 2024-12-28 13:52:41 +00:00
Showing only changes of commit f267e3ede9 - Show all commits

View File

@ -56,6 +56,8 @@ class _MyHomePageState extends State<ListItemMenu> {
bool showDateFields = false; // State to toggle date fields
bool showArrow = true;
bool showInputSearch = true;
bool showInputGeo = true;
bool showInputTag = true;
// Fetching events from API
static Future<List<Events>> getPosts() async {
PermissionStatus status = await Permission.location.status;
@ -678,6 +680,7 @@ class _MyHomePageState extends State<ListItemMenu> {
body: Column(
children: [
if (showInputSearch) _buildItemZoneSearchField(),
if ((showDateFields) && (showInputTag)) _buildTagsField(),
if ((showDateFields) && (showArrow))
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
@ -685,8 +688,8 @@ class _MyHomePageState extends State<ListItemMenu> {
Flexible(child: _buildDateField("start")),
Flexible(child: _buildDateField("end"))
]),
if ((showDateFields) && (showArrow)) _buildTagsField(),
if (showDateFields) _buildGeographicalZoneSearchField(),
if ((showDateFields) && (showInputGeo))
_buildGeographicalZoneSearchField(),
if (showArrow)
IconButton(
onPressed: () {