title: Spread main Flutter Scaffold (AppBar +TabBar + PopupMenu, Drawer, main Body) over separate, smaller files?
body: <p>'Allo,</p>
  
  <p>My main file is getting up to 1000 lines of code and I can't help but think I could save time by separating the Scaffold into 3 or 4 .dart files. Is this possible?</p>
  
  <p>Between the AppBar and Drawer I'm already up to 500+ lines of code because of all the links and design parameters. I'd like to extricate this code instead of having to scroll through it continually when I'm working on the main body. </p>
  
  <p>Anytime I've tried to take out the drawer and put it in a separate file I get errors everywhere. Problems with 'dynamic' and 'widgets' and return types, etc. </p>
  
  <p>What can I take out the scaffold and reference it to another file?</p>
  
  <pre><code>child: new Scaffold(
    appBar: new AppBar(
      bottom: new TabBar(tabs:[.....]),
      actions: &lt;Widget&gt; [
        new PopupMenuButton&lt;xx&gt;()
        ],),],),  //end appBar
    drawer: new Drawer(......),   //end drawer
    body: TabBarView(....),   //end body
    ),  //end scaffold
  </code></pre>
  
  <p>I wouldn't mind leaving the main body in this main file but I might also take it out if i had more options. Just want to reduce a 1000+ lines into 2-3 chunks, files of manageable space.</p>
  
  <p>Any ideas?</p>