Feature explain
please implement active Index, so the index can change with a button pressed anywhere by inserting manual index
so the current active index is controlled by given BLOC pattern index
Environment details
detailed explanation.
ConvexAppBar(
///activeIndex: BlocProvider.of<BottomNavigationBloc>(context).currentIndex
/// so the bottomnavigation index can be controlled by BLOC output
initialActiveIndex:
BlocProvider.of<BottomNavigationBloc>(context).currentIndex,
style: TabStyle.titled,
height: 55,
top: -30,
curveSize: 88,
onTap: (index) => BlocProvider.of<BottomNavigationBloc>(context)
.add(PageTapped(index: index)),
activeColor: Colors.white,
color: Colors.black,
backgroundColor: color,
items: [
TabItem(icon: MyIcon.home_1, title: "Home"),
TabItem(icon: MyIcon.assessment, title: "Empty"),
TabItem(icon: MyIcon.qrcode, title: "Empty"),
TabItem(icon: MyIcon.qrcode, title: "Empty"),
TabItem(icon: MyIcon.assignment, title: "Empty"),
],
)
Please add activeIndex For BLOC implementation
Feature explain please implement active Index, so the index can change with a button pressed anywhere by inserting manual index so the current active index is controlled by given BLOC pattern index
Environment details detailed explanation.