skip to Main Content

enter image description here[enter image description here](https://i.stack.imgur.com/HxY0x.png)

im new to the mobile development can anyone pleased tell me where did i do wrong?
im trying to access to the list inside the map

2

Answers


  1. List of map can be accessed as questions[i]["questionText"]

    Login or Signup to reply.
  2. Map is a function, not a Widget. But you can fix it by using ListView.builder like it :

    ListView.builder(
      itemCount: questions[_questionIndex]["Questionanswers"].length,
      itemBuilder: (context, index) {
        return Answer(_quess, questions[_questionIndex]["Questionanswers"][index]);
      },
    );
    
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search