xxxxxxxxxx
Each of your Tab in TabBar have a property of height,
which could be used to reduce the space between your Tab and its indicator.
TabBar(
physics: ClampingScrollPhysics(),
indicatorSize: TabBarIndicatorSize.tab,
labelColor: AppColors.black,
unselectedLabelColor: AppColors.black,
tabs: ["Students", "Professionals", "Researchers"]
.map((e) => Tab(
height: 25.sp, /// You can see the [height] here
text: e,
))
.toList()),
xxxxxxxxxx
TabBar(
indicatorSize: TabBarIndicatorSize.label,
isScrollable: true,
tabs: categoriesWidgets,
padding: EdgeInsets.zero,
indicatorPadding: EdgeInsets.zero,
labelPadding: EdgeInsets.zero,
indicatorWeight: 4,
)