buildPrevButton method
Implementation
Widget buildPrevButton() {
if (tabController.index == 0) {
return Container(width: MediaQuery.of(context).size.width / 4);
} else {
return TextButton(
onPressed: () {
if (!isAnimating(tabController.animation!.value)) {
tabController.animateTo(tabController.index - 1);
}
},
style: TextButton.styleFrom(
primary: colorPrevBtn,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(borderRadiusPrevBtn)),
),
child: renderPrevBtn,
);
}
}