How to make indicator: UnderlinetabIndicator with border radius? this decoration doesnt like underlineinputborder that has borderRadius.
I was trying to make it with ShapeDecoration(UnderlineInputBorder). but the size of shapeDecoration counts from the tabs widget, so i can't have correct borderRadius topright and topleft.
*dont mind the color, it just for the debugging purpose.
TabBar(
controller: _tabController,
labelStyle:
TextStyle(fontWeight: FontWeight.w600, fontSize: 16),
indicatorWeight: 10.0,
unselectedLabelColor: Colors.black,
labelColor: Colors.black,
indicatorSize: TabBarIndicatorSize.tab,
indicator: UnderlineTabIndicator(
borderSide: BorderSide(
width: 5.0,
color: HexColor("2C7381"),
),
insets:
EdgeInsets.symmetric(horizontal: 10.0, vertical: 0),
),
tabs: [
Container(
color: Colors.amber,
child: Padding(
padding: const EdgeInsets.only(bottom: 10),
child: Column(
children: [
Image.asset(
_activeIndex == 0
? "assets/icons/dummy1.png"
: "assets/icons/dummy2.png",
height: 20,
),
SizedBox(
height: 5,
),
Text(
"TAB 0",
style: Dummytheme.text14theme,
textAlign: TextAlign.center,
),
],
),
),
),


