title: Flutter TabBar. How to change the padding
body: <p>Here's my code:</p>
  
  <pre><code>import 'package:flutter/material.dart';
  
  import '../widgets/profile_page/user_info.dart';
  import '../widgets/profile_page/user_messages.dart';
  import '../widgets/profile_page/user_multimedia.dart';
  import '../widgets/profile_page/user_stats.dart';
  
  class ProfilePage extends StatefulWidget{
    @override
    _ProfilePageState createState() =&gt; _ProfilePageState();
  }
  
  class _ProfilePageState extends State&lt;ProfilePage&gt; {
    int _currentIndex = 0;
  
    final List&lt;Tab&gt; _tabs = [
      Tab(icon: Icon(Icons.account_circle), text: 'User Info',),
      Tab(icon: Icon(Icons.chat_bubble), text: 'Messages',),
      Tab(icon: Icon(Icons.photo_size_select_actual), text: 'Multimedia',),
      Tab(icon: Icon(Icons.show_chart), text: 'Statistics',),
    ];
  
    @override
    Widget build(BuildContext context) {
      return SafeArea(
        child: DefaultTabController(
          length: 4,
          child: Scaffold(
            appBar: AppBar(
              title: Text("${_tabs[_currentIndex].text}"),
              bottom: TabBar(
                tabs: _tabs,
                onTap: (int index){
                  setState(() {
                    _currentIndex = index;
                  });
                },
                indicatorWeight: 3.0,
                labelStyle: TextStyle(
                  fontSize: 0,
                ),
              ),
            ),
            body: TabBarView(
              physics: NeverScrollableScrollPhysics(),
              children: &lt;Widget&gt;[
                UserInfo(),
                UserMessages(),
                UserMultimedia(),
                UserStats(),
              ],
            ),
          ),
        ),
      );
    }
  }
  </code></pre>
  
  <p>Can somebody tell me how can i remove padding around the Tab Bar icons? I already set the font size to 0, but it changed nothing. I would like to leave the text in Tab(icon: Icon(Icons.account_circle), text: 'User Info',) because i use it in appbar title: Text("${_tabs[_currentIndex].text}"), when the tabs change.</p>
  
  <p><a href="https://i.stack.imgur.com/7fvZ2.png" rel="nofollow noreferrer">enter image description here</a></p>