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
ButtonStyle.text_style
I'm using the control 'TextButton' and would like to customize its text. In 'style' property of 'TextButton', I'm using the class 'ButtonStyle'.
When I use TextStyle as value for 'style' (that is a property of 'ButtonStyle'), it displays a grey page. You can see it in the pictures attached.
import flet as ft def main(page: ft.Page): btn = ft.TextButton( text='Text Button 1', style=ft.ButtonStyle( color=ft.colors.GREEN, text_style=ft.TextStyle( size=10 ) ) ) page.add(btn) ft.app(target=main)
Just run the code.
No response
[Upload m edia here]
Windows
Windows 11 Pro
0.24.1
No, it isn't
[Paste your logs here]
The text was updated successfully, but these errors were encountered:
ndonkoHenri
Successfully merging a pull request may close this issue.
Duplicate Check
Describe the bug
I'm using the control 'TextButton' and would like to customize its text.
In 'style' property of 'TextButton', I'm using the class 'ButtonStyle'.
When I use TextStyle as value for 'style' (that is a property of 'ButtonStyle'), it displays a grey page. You can see it in the pictures attached.
Code sample
Code
To reproduce
Just run the code.
Expected behavior
No response
Screenshots / Videos
Captures
[Upload m
edia here]
Operating System
Windows
Operating system details
Windows 11 Pro
Flet version
0.24.1
Regression
No, it isn't
Suggestions
No response
Logs
Logs
[Paste your logs here]
Additional details
No response
The text was updated successfully, but these errors were encountered: