[Question] is there any way to make the navigation bar transparent #1894
-
Questioni want to make the navigation bar transparent only showing the icons I tried to set bgcolor opacity to "0" but it didn't work Code sampleimport flet as ft
async def main(page: ft.Page):
page.title = "NavigationBar Example"
page.navigation_bar = ft.NavigationBar(
bgcolor = ft.colors.with_opacity(0.0, '#ff6666'),
destinations=[
ft.NavigationDestination(
icon=ft.icons.HOME_OUTLINED,
selected_icon=ft.icons.HOME_ROUNDED,
label="Home"
),
ft.NavigationDestination(icon=ft.icons.COMMUTE, label="Commute"),
ft.NavigationDestination(
icon=ft.icons.ACCOUNT_CIRCLE_OUTLINED,
selected_icon=ft.icons.ACCOUNT_CIRCLE_ROUNDED,
label="Account",
),
]
)
text_=ft.Text(value="Body!")
await page.add_async(text_)
ft.app(target=main, view=ft.WEB_BROWSER) Error messageNo response ------------------------------------------------------
|
Beta Was this translation helpful? Give feedback.
Answered by
FeodorFitsner
Oct 3, 2023
Replies: 1 comment
-
Hm, it "blends" provided color with theme colors: https://api.flutter.dev/flutter/material/NavigationBar/backgroundColor.html |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
plugeit
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hm, it "blends" provided color with theme colors: https://api.flutter.dev/flutter/material/NavigationBar/backgroundColor.html