title: Is it possible to swipe from an TabBarView content area to an adjacent PageView page?
body: <p>I'd like to place a tabs inside a horizontal PageView and be able to swipe out of the tabs. Within the content area, I can swipe into the tabs from a page, but not out of the tabs to another page. If I swipe on the TabBar, then I can get out of the tabs and go to the adjacent page.</p>
  
  <p>Is there a way to allow me to swipe from a TabView content area and have it move to the adjacent PageView page?</p>
  
  <p>Here is my test code:</p>
  
  <pre><code>import 'package:flutter/material.dart';
  
  void main() =&gt; runApp(MyApp());
  
  class MyApp extends StatelessWidget {
    @override
    Widget build(BuildContext context) {
      return MaterialApp(
        title: 'Flutter Demo',
        theme: ThemeData(
          primarySwatch: Colors.blue,
        ),
        home: MyHomePage(title: 'Flutter Demo Home Page'),
      );
    }
  }
  
  class MyHomePage extends StatefulWidget {
    MyHomePage({Key key, this.title}) : super(key: key);
    final String title;
  
    @override
    _MyHomePageState createState() =&gt; _MyHomePageState();
  }
  
  class _MyHomePageState extends State&lt;MyHomePage&gt; {
    @override
    Widget build(BuildContext context) {
      return PageView(
        children: &lt;Widget&gt;[
          Scaffold(
            appBar: AppBar(title: Text('Page 1'),),
            body: Center(child: Text('hi'),),
          ),
          DefaultTabController(
            length: 3,
            child: Scaffold(
              appBar: AppBar(
                title: Text(widget.title),
                bottom: TabBar(
                  tabs: [
                    Tab(icon: Icon(Icons.directions_car)),
                    Tab(icon: Icon(Icons.directions_transit)),
                    Tab(icon: Icon(Icons.directions_bike)),
                  ],
                ),
              ),
              body: TabBarView(
                children: [
                  Icon(Icons.directions_car),
                  Icon(Icons.directions_transit),
                  Icon(Icons.directions_bike),
                ],
              ),
            ),
          ),
          Scaffold(
            appBar: AppBar(title: Text('Page 3'),),
            body: Center(child: Text('bye'),),
          ),
        ],
      );
    }
  }
  </code></pre>