title: How to change style depending on which tab is selected?
body: <p>Following is my code to handle <code>TabBar</code> in <code>Flutter</code></p>
  
  <pre><code>TabBar(controller: tabController, indicatorColor: white, tabs: [
          Tab(
            child: Text(
              "Present",
              style: TextStyle(fontFamily: "BarlowBold", color: black),
            ),
          ),
          Tab(
            child: Text(
              "Upcoming",
              style: TextStyle(fontFamily: "BarlowBold", color: black),
            ),
          )
        ]),
  </code></pre>
  
  <p>I need to change the <code>fontFamily</code> of text depending on which tab is selected. I tried the properties of <code>tabController</code> but they do not help</p>