I added in the middle of my Userpage a TabBar and I want to add different content in each one of them but when I try to add screens it’s messing around my entire code(issue video https://imgur.com/a/nDbyWqx) . What I should add so it will appear like 3 screens
Column(
children: [
TabBar(
unselectedLabelColor: Colors.black,
labelColor: const Color.fromARGB(255, 3, 59, 161),
tabs: const [
Tab(
text: 'Services',
),
Tab(text: 'Products'),
Tab(
text: 'Reviews',
),
],
controller: tabController,
indicatorSize: TabBarIndicatorSize.tab,
),
],
),
const SizedBox(
height: 8,
),
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
const Text(
"Recomandari",
style:
TextStyle(color: Colors.black, fontWeight: FontWeight.bold),
),
2
Answers
use the Tab bar view for the tab bar like below. check with below code
Try below code hope its help to you, if you want to add some widgets on bottom of the screen I added as per UI, have you facing any issue please let me know.
Result Screen->