title: Flutter: The element type 'String' can't be assigned to the list type 'Widget'
body: <p>First off, I am really really new</p>
  <p>I do not understand why these two errors are appearing :
  1.The element type 'String' can't be assigned to the list type 'Widget'.
  2.Expected to find ']'.</p>
  <pre><code>import 'package:flutter/material.dart';
  
  import './qs.dart';
  import 'answer.dart';
  
  void main() {
    runApp(MyApp());
  }
  
  class MyApp extends StatefulWidget {
    @override
    //override is basically useless
    State&lt;StatefulWidget&gt; createState() {
      // TODO: implement createState
      return _MyAppState();
    } //refers to the particular class
  }
  
  class _MyAppState extends State&lt;MyApp&gt; {
    //an underscore means that the particular class can only be called
    //within htat particular file
    var _questionindex = 0;
    @override
    void _answerQuestion() {
      setState(() {
        _questionindex = _questionindex + 1;
      });
      print(_questionindex);
    } //helps in reloading the state whenever the values of a vriable is updated
  
    @override
    Widget build(BuildContext context) {
      var questions = [
        {
          'questiontext':'What\s your Age group?',
        'answers':['No','No','No','No'],
        },
        {
          'questiontext':'What\s your profession?',
        'answers':['student','teacher','government official','[private enterprise']
        },
        {
          'questiontext':'At what time do you get up?',
        'answers':['4am-6am','6am-7am','7am-8am','After 8am']}
        ];
  
      return MaterialApp(
        home: Scaffold(
          appBar: AppBar(
            title: const Text(
              'Dragons be here',
              style: TextStyle(
                fontFamily: &quot;Arial&quot;,
                fontSize: 35,
                fontWeight: FontWeight.bold,
              ),
            ),
            titleSpacing: 1.0,
            centerTitle: true,
            shape: const RoundedRectangleBorder(
              borderRadius: BorderRadius.vertical(bottom: Radius.circular(30)),
            ),
          ),
  
          body: Column(
            children: &lt;Widget&gt;[
              qs(
                questions[_questionindex]['questiontext'] as String,
              ),
              ...(questions[_questionindex]['answers']) as List&lt;String&gt;.map((answer){
                Answer(_answerQuestion,answer);
              }).toList()
    
            ],
          ),
        ),
      );
    }
  
  
     }
  
  import 'package:flutter/material.dart';
  
  class qs extends StatelessWidget {
    final String questionStr;
    qs(this.questionStr);
  
    @override
    Widget build(BuildContext context) {
      return Container(
        width: double.infinity,
        child: Text(
          questionStr,
        ),
      );
    }
  }
  
  import 'package:flutter/material.dart';
  
  class Answer extends StatelessWidget {
    final VoidCallback ansk;
    //idk y but function is snot working, 
    //if it is not wrking use Voidcallback
    final String gimme_da_answer;
  
    Answer(this.ansk, this.gimme_da_answer);
    @override
    Widget build(BuildContext context) {
      return Container(
        width: double.infinity,
        child: ElevatedButton(
          onPressed: ansk,
          child: Text(gimme_da_answer),
          style: ButtonStyle(
            backgroundColor: MaterialStateProperty.all&lt;Color&gt;(Colors.amberAccent),
            foregroundColor: MaterialStateProperty.all&lt;Color&gt;(Colors.blueAccent),
          ),
        ),
      );
    }
  }
  </code></pre>
  <p>Also i did not exactly understand what maps in dart was, would be really halpful if someone gave a breif overview</p>
  <p>If you have read till here THANK YOU</p>