Size of the IconButton, not the Icon #4428
Answered
by
ndonkoHenri
ingdesarr1
asked this question in
Q&A
-
Good morning. I want to know if it's possible add a option to change the size of the IconButton, not the size of the Icon. I observed that the icon_size option only changes the size of the icon, but the transparent area around the icon does not change, which generates unnecessary space. Thanks |
Beta Was this translation helpful? Give feedback.
Answered by
ndonkoHenri
Nov 29, 2024
Replies: 1 comment
-
Uprgade to the Flet v0.25.0 and use Here's an example: import flet as ft
def main(page: ft.Page):
page.add(
ft.IconButton(
ft.Icons.ADD,
size_constraints=ft.BoxConstraints(min_width=200, min_height=200),
icon_size=100,
)
)
ft.app(main) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ingdesarr1
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uprgade to the Flet v0.25.0 and use
IconButton.size_constraints
Here's an example: