title: flutter - how to make the tab position not change when going to another tab
body: <p>I have a <strong>list</strong> and go to that <strong>list</strong> there will be 4 <strong>tabbars</strong> widget. When I move to another <strong>tabbar</strong> and return to the original tab, my last scroll position changed. </p>
  
  <p>How do I make the scroll position in 'tab 1' for example then when going to 'tab 2' the position of 'tab 1' remains like its last position?</p>
  
  <p>following the code snippet on the home tab: </p>
  
  <pre><code>class HomeTabDetail extends StatefulWidget {
    final Fixture fixture;
    final FixtureModel model;
  
  
    HomeTabDetail({this.fixture, this.model});
  
    @override
    _HomeTabDetailState createState() =&gt; _HomeTabDetailState();
  }
  
  class _HomeTabDetailState extends State&lt;HomeTabDetail&gt; {
  
   @override
     void initState() {
       // TODO: implement initState
       super.initState();
      loadData();  
     }
  
       Future loadData() async {
      await Future.wait([
        widget.model.fetchVenue(widget.fixture.venueId.toString()),
        widget.model.fetchCountry(widget.fixture.league.countryId.toString())
  
      ]); 
    }
  
    @override
    Widget build(BuildContext context) {
      return DefaultTabController(
        length: 4,
        child: Scaffold(
          appBar: AppBar(
            title: Text('Info Pertandingan'),
            bottom: TabBar(
              tabs: &lt;Widget&gt;[
                Tab(text: 'RINCIAN'),
                Tab(text: 'MEDIA'),
                Tab(text: 'LINEUP'),
                Tab(text: 'KLASEMEN'),
              ],
            ),
          ),
          body: ScopedModelDescendant&lt;FixtureModel&gt;(builder: 
          (context, child, model){
            return TabBarView(
            children: &lt;Widget&gt;[
              DetailMatchTab(widget.fixture),
              MediaMatchTab(),
              LineupMatchTab(),
              KlasemenMatchTab()
            ],
          );
          })
  
  
        ),
      );
    }
  }
  </code></pre>