Skip to content

Cannot change the currentIndex using Global Key #203

Closed
@direct2harsh

Description

@direct2harsh

Hi,
I need to change index (navigate to another page using Page Controller) by click on a TextButton.
I am able to switch to another page but the Convex_bottom_bar does not change the UI for the current page like the active Tab text and Convex radius. It stays the same as default index of 0.

I created a Global key and used it like -
final ConvexAppBar navigationBar = bottomNAVKey.currentWidget;
navigationBar.onTap(1);

Any help is appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions