[Question]Search bar doesnt change the colour #2505
-
Question]¿Why my search bar only changes colour when i close or tap in the view instead of change it automatically? 20240128_002555.mp4Code sampleclass MyApp:
def __init__(self, page: ft.Page):
page.window_width=500
.......................
def validate_form(self, e):
for search_boxes in self.search_bars:
print(search_boxes.obj.bar_bgcolor)
search_boxes.obj.bar_bgcolor=ft.colors.RED
print(search_boxes.obj.bar_bgcolor)
self.page.update()
def ui(self,e)
self.next_button = ft.Container(
padding=10,
content=ft.Row(
controls=[
ft.ElevatedButton(
text="Siguiente",
on_click=self.validate_form
),
],
alignment=ft.MainAxisAlignment.SPACE_AROUND
),
)
--------etc-----------
self.dropdowns = [self.order_txt, self.cleaning_txt, self.water_txt, self.spare_tire_txt,
self.oil_txt, self.car_jack_txt, self.cross_wrench_txt, self.extinguisher_txt, self.padlock_txt]
self.search_bars = [self.patent_search_bar, self.technician_search_bar] Error messageNo response ------------------------------------------------------
|
Beta Was this translation helpful? Give feedback.
Answered by
ndonkoHenri
Jan 29, 2024
Replies: 1 comment 2 replies
-
Make use of the below properties when creating the |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Oh, sorry, thats an error of mine. The prop is actually called
view_hint_text_style
:flet/sdk/python/packages/flet-core/src/flet_core/search_bar.py
Line 71 in 829b085
Will modify that in the docs.