-
-
Notifications
You must be signed in to change notification settings - Fork 172
Open
Labels
enhancementNew feature or requestNew feature or request
Milestone
Description
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.
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"),
],
)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request