We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When trying to implement a FloatingActionButtonTheme and add to the ft.Theme class there is no property to override.
ft.Theme
class MyFloatingActionButtonTheme(ft.FloatingActionButtonTheme): def __init__(self): super().__init__( bgcolor='#FFFFFF', ) class MyTheme(ft.Theme): def __init__(self): super().__init__( floating_action_button_theme=MyFloatingActionButtonTheme(), )
Try to initialize the above theme.
page.theme = mypackage.MyTheme()
TypeError: Theme.__init__() got an unexpected keyword argument 'floating_action_button_theme'
FAB theme should be overridden.
[Upload media here]
macOS
MacOS 14.5
0.22.0
No, it isn't
[Paste your logs here]
No response
The text was updated successfully, but these errors were encountered:
Workaround for me is to assign it to theme directly:
page.theme.floating_action_button_theme = MyFloatingActionButtonTheme()
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Duplicate Check
Describe the bug
When trying to implement a FloatingActionButtonTheme and add to the
ft.Theme
class there is no property to override.Code sample
Code
To reproduce
Try to initialize the above theme.
TypeError: Theme.__init__() got an unexpected keyword argument 'floating_action_button_theme'
Expected behavior
FAB theme should be overridden.
Screenshots / Videos
Captures
[Upload media here]
Operating System
macOS
Operating system details
MacOS 14.5
Flet version
0.22.0
Regression
No, it isn't
Suggestions
Logs
Logs
[Paste your logs here]
Additional details
No response
The text was updated successfully, but these errors were encountered: