title: Flutter Refactoring move widgets to new files
body: <p>I have a DefaultTabController that is getting longer and longer in code. As a beginner, I see I might miss some class / oop knowledge here.</p>
  <p>I want to move its children to new files. I already have Widget TabContent1 and Widget TabContent2 in the same class, but how can I move these widgets to new files? The problem is that they both load values of TextEditingControllers on the TabController level. Moving the two Widgets breaks the reference to these TextEditingControllers. How can I refer to those from the newly created classes?</p>
  <p>Update: In addition. As suggested by Ivo, I can put all references in the constructor of my new class. But I have a lot of global controllers and variables in the top level class. Also need to bind to the events happening in my new class and have to emit those back or so. It feels more efficient to keep my logic, but only move some of it to sub-classes or so. I feel like the solution should be more in oop/class logic, implementing or extending them</p>