Integrate Tabbar switch card on Appbar

class StatePage extends StatelessWidget {
  final title;
  StatePage({this.title = ' '});
  @override
  Widget build(BuildContext context) {
    return DefaultTabController(
      length: 11,
      child: Scaffold(
        appBar: AppBar(
          title: Row(
            children: <Widget>[
              Expanded(
                child: TabBar(
                  isScrollable: true,
                  tabs: <Widget>[
                    Tab(text: 'live'),
                    Tab(text: 'recommendations'),
                    Tab(text: 'snap'),
                    Tab(text: 'hot'),
                    Tab(text: 'them'),
                    Tab(text: 'film'),
                    Tab(text: '70'),
                    Tab(text: 'hot'),
                    Tab(text: 'film'),
                    Tab(text: '70'),
                    Tab(text: 'hot'),
                  ],
                ),
              )
            ],
          ),
        ),
        body: TabBarView(
          children: <Widget>[
            Text('film'),
            Text('recommendations'),
            Text('snap'),
            Text('hot'),
            Text('them'),
            Text('film'),
            Text(After the '70'),
            Text(After the '80'),
            Text('film'),
            Text(After the '70'),
            Text(After the '80'[[(), [(), [(), [(); }}Copy the code