Skip to content

add activeIndex For BLOC implementation #114

@yooman1213

Description

@yooman1213

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"),
                ],
              )

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions