title: Another exception was thrown: type 'MyApp' is not a subtype of type 'StatelessWidget'
body: <p>I have just started using Flutter and i'm having this problem while running my code
  "Another exception was thrown: type 'MyApp' is not a subtype of type 'StatelessWidget'".
  And the interesting part is that i dont even have this 'StatelessWidget' in my code.</p>
  
  <pre><code>   import 'package:flutter/material.dart';
  
  void main() {
    runApp(MyApp());
  }
  
  class MyApp extends StatefulWidget {
    @override
    State&lt;StatefulWidget&gt; createState() {
      // TODO: implement createState
      return _MyAppState();
    }
  }
  
  class _MyAppState extends State&lt;MyApp&gt; {
    List&lt;String&gt; _bars = ['Olivio bar'];
    @override
    Widget build(BuildContext context) {
      return MaterialApp(
        home: Scaffold(
            appBar: AppBar(
              title: Text('Drinkzz'),
            ),
            body: Column(
              children: [
                Container(
                  margin: EdgeInsets.all(10.0),
                  child: RaisedButton(
                    onPressed: () {
                      _bars.add('Riviera Bar');
                    },
                    child: Text('Add new Bar!'),
                  ),
                ),
                Column(
                  children: _bars
                      .map((element) =&gt; Card(
                            child: Column(
                              children: &lt;Widget&gt;[
                                Image.asset('assets/olivio.jpg'),
                                Text(element)
                              ],
                            ),
                          ))
                      .toList(),
                )
              ],
            )),
      );
    }
  }
  </code></pre>
  
  <p>I am really lost and would aprecciate some help!</p>
  
  <p>Thanks,</p>