Skip to content

Size of the IconButton, not the Icon #4428

Answered by ndonkoHenri
ingdesarr1 asked this question in Q&A
Discussion options

You must be logged in to vote

Uprgade to the Flet v0.25.0 and use IconButton.size_constraints

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)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ingdesarr1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants