Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add: label supprot for CurvedNavigationBarItems (Closes #11) #154

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

satish-nep79
Copy link

Overview
This PR addresses the requirements specified in issue #11 by adding label support for the CurvedNavigationBar. It also allows for customizing the text style and visibility of active and inactive labels.

Details of the Change:

  • Introduces a CurvedBarItem model to replace the basic list of widgets in the items. The model includes:
    • label: A text label for each navigation item.
    • child: It takes the widget to be displayed in the bottom bar
  • activeLabelStyle and inActiveLabelStyle: Customizable text styles for active and inactive states.
  • showActiveLabel and showInactiveLabel: Flags to control the visibility of labels based on the selected state.

Fixes & Improvements:

  • Closes issue Adding a text below the icon #11 by enabling the requested label customization feature.
  • Improves the user experience by allowing labels to be added and customizable

Testing:

  • Verified that the CurvedNavigationBar renders correctly with labels on both active and inactive states.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant