how can i get the String value of the title from the ListTile which was pressed by the user?

Issue I need the String value of the tapped title from the ListTile here is my code from the Listviewbuilder: Expanded( child: ListView.builder( itemCount: displayed_add_ingridients_to_meal.length, itemBuilder: (context, index) => ListTile( onTap: Ingridients_Selected_x(), title: Text(displayed_add_ingridients_to_meal[index].Ingridient_title!), ) ) ) IngridientsSelected_x is a

Continue reading

BoxConstraints forces an infinite width (listview in a Column)

Issue I am getting an error when I add the listview builder in the column. I am getting the following error: this is my task widget page: import ‘package:cloud_firestore/cloud_firestore.dart’; import ‘package:flutter/material.dart’; import ‘package:gridview/Views/data/firestore_tasks.dart’; import ‘../Models/Task.dart’; import ‘../Views/HomeScreens/edit_task.dart’; import ‘../const/colors.dart’; import

Continue reading

Android draw a Horizontal line between views

Issue I have My Layout like below: <?xml version=”1.0″ encoding=”utf-8″?> <LinearLayout xmlns:android=”http://schemas.android.com/apk/res/android” android:layout_width=”fill_parent” android:layout_height=”fill_parent” android:orientation=”vertical” > <TextView android:id=”@+id/textView1″ style=”@style/behindMenuItemLabel” android:layout_width=”wrap_content” android:layout_height=”wrap_content” android:layout_marginTop=”10dp” android:text=”Twitter Feeds” android:textStyle=”bold” /> <ListView android:id=”@+id/list” android:layout_width=”350dp” android:layout_height=”50dp” /> <TextView android:id=”@+id/textView1″ style=”@style/behindMenuItemLabel1″ android:layout_width=”wrap_content” android:layout_height=”wrap_content” android:layout_marginTop=”1dp” android:text=”FaceBook Feeds” />

Continue reading