Skip to content

NavigationBar and indicator_color - not working #4057

Closed Answered by ap4499
lennpet asked this question in Q&A
Discussion options

You must be logged in to vote

@lennpet - I can replicate your issue on MacOS when running Flet latest (0.24.1) and 0.23.1.

I think this should work.. I've had a look over the Dart code and I am unsure why, it should just switch to the Cupertino control and return that (which you say is working).

I'd raise an issue for it.

You seem to have already figured out a solution, but yes - I'd create a custom control and have two routes,
if system == Darwin/iOS
return Curpurtino

Else dont

Dump in the kwargs to each respectively.

import flet as ft

def main(page: ft.Page):
    page.title = "TEST"

    page.navigation_bar = ft.NavigationBar(
        adaptive=True,
        bgcolor=ft.colors.GREY_900,
        indicator_color=ft.col…

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@lennpet
Comment options

@tanmay-bhatgare
Comment options

Comment options

You must be logged in to vote
1 reply
@lennpet
Comment options

Answer selected by lennpet
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
help wanted Extra attention is needed
3 participants