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

BottomNavbar is not evaluating dynamic value of switchScreen #1855

Closed
mehsaandev opened this issue Jan 31, 2025 · 0 comments · Fixed by #1868
Closed

BottomNavbar is not evaluating dynamic value of switchScreen #1855

mehsaandev opened this issue Jan 31, 2025 · 0 comments · Fixed by #1868
Assignees

Comments

@mehsaandev
Copy link
Contributor

I want to dynamically assign the value of switchScreen using ensemble.storage value but if I assign dynamic value it doesn't work fine.

Here's my EDL:

BottomNavBar:
    styles:
      selectedColor: 0xff50884f
      backgroundColor: 0xffe9e2dd
    items:
      - customItem:
          widget:
            CustomNavBarItem:
              inputs:
                icon: home_4_line
                library: remix
                label: Home
          selectedWidget:
            ActiveCustomNavBarItem:
              inputs:
                icon: home_4_fill
                library: remix
                label: Home
        page: dashboard

      - customItem:
          widget:
            CustomNavBarItem:
              inputs:
                icon: star_line
                library: remix
                label: Watchlist
          selectedWidget:
            ActiveCustomNavBarItem:
              inputs:
                icon: star_fill
                library: remix
                label: Watchlist
        switchScreen: "${ensemble.storage.userMode == null false : true}"

In the second item I am dynamically assigning the value and expected value should be false but it behaves as if the value is true. Seems like it is not evaluating the value.

I also tried using conditional styling and it is not evaluating and styling as well.

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 a pull request may close this issue.

1 participant