skip to Main Content

Only one item of data is coming from Firebase Firestore – Flutter

I wrote code like this: Container( height: 250, child: StreamBuilder( stream: db.collection("DebrisPeoples").snapshots(), builder: (context, snapshot) { if (!snapshot.hasData) { return Text("yükleniyor"); } else { final List<DebrisPeopleModel> data = snapshot.data!.docs .map((e) => DebrisPeopleModel.fromDocument(e)) .toList(); inspect(data); /* OUTPUT: [0]: DebrisPeopleModel [1]: DebrisPeopleModel…

VIEW QUESTION

Flutter Angela Yu example

I want to print first element in the list "first ques" but I'm getting different sort of errors tried using final also, then all sort of errors. class _QuizPageState extends State<QuizPage> { List<Widget> scoreKeeper = []; List<String> questions = ["First…

VIEW QUESTION
Back To Top
Search