Duplicate Check
Describe the bug
Applying ButtonStyle to TextButton has no effect.
Code sample
Code
import flet as ft
def main(page: ft.Page):
page.window.width = 400
page.window.height = 400
page.vertical_alignment = ft.MainAxisAlignment.CENTER
page.horizontal_alignment = ft.CrossAxisAlignment.CENTER
page.add(
ft.TextButton(
content='test_button_0',
style=ft.ButtonStyle(
bgcolor=ft.Colors.WHITE,
color=ft.Colors.BLACK,
shape=ft.RoundedRectangleBorder(0),
)
)
)
if __name__ == '__main__':
ft.run(main)
To reproduce
Run the code
Expected behavior
No response
Screenshots / Videos
Captures
Operating System
macOS
Operating system details
26.2
Flet version
0.80.1
Regression
I'm not sure / I don't know
Suggestions
No response
Logs
No response
Additional details
No response
Duplicate Check
Describe the bug
Applying ButtonStyle to TextButton has no effect.
Code sample
Code
To reproduce
Run the code
Expected behavior
No response
Screenshots / Videos
Captures
Operating System
macOS
Operating system details
26.2
Flet version
0.80.1
Regression
I'm not sure / I don't know
Suggestions
No response
Logs
No response
Additional details
No response