Closed
Description
When setting the style properties for a TextButton
,MaterialState
throws a type error. I was able to replicate the same with example provided in the docs.
app.py
style = ft.ButtonStyle(
color = {
ft.MaterialState.DEFAULT: ft.colors.WHITE,
ft.MaterialState.HOVERED: ft.colors.LIGHT_BLUE,
},
bgcolor = {
ft.MaterialState.FOCUSED: ft.colors.LIGHT_BLUE
}
)
error
TypeError: keys must be str, int, float, bool or None, not MaterialState
Flet 0.2.4
Windows 11