title: How to send data between tabs in Flutter?
body: <p>I've got a Flutter app with 2 tabs: one that manages and receives a continuous flow of data, the other tab displays the data as it comes in. </p>
  
  <p>How do I pass the data from the first tab to the second? Most of the post I see are about passing data between parent and child, not child to child.</p>
  
  <p>Would I use <code>GlobalKey</code>? is there a better option?</p>
  
  <p>This is the main build function:</p>
  
  <pre><code>@override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('some text'),
        bottom: TabBar(
          tabs: tabs,
          controller: _tabController,
        ),
      ),
      body: TabBarView(
        controller: _tabController,
        children: [
          InputManagment(),
          InfiniteListView(),
        ],
      ),
    );
  }
  </code></pre>