title: What is the difference between Scaffold and MaterialApp in Flutter?
body: <p>I have two screens, where<br>
   <strong>First:</strong> Listing of data from Firebase<br>
   <strong>Second:</strong> Add data in that screen so I want to comeback to first screen,
   Everything working fine only there was a black screen when I go back. 
  Now issue was gone, I have searched for how it works but its still not clear my concept about this, Can any one describe how it works?</p>
  
  <p><strong>Before</strong>:</p>
  
  <pre><code>return new MaterialApp(
        title: "AddEditNames ",
        home: new AddEditNameScreen(),
  );
  </code></pre>
  
  <p><strong>After</strong>: when i have replaced it  by </p>
  
  <pre><code> return new Scaffold(
        backgroundColor: Color.fromRGBO(30, 30, 30, 1.0),
        body: new AddEditNameScreen(),
        appBar: new AppBar(
          elevation: 0.0,
          backgroundColor: Colors.blueAccent,
          actions: &lt;Widget&gt;[
          ],
          title: new Text(
            "AddEditNames",
            style: new TextStyle(color: Colors.white),
          ),
          centerTitle: true,
        ),
   );
  </code></pre>