Skip to content

[Question] Put two icons in a TextButton #1873

Answered by tehphilb
AngelCard asked this question in Q&A
Discussion options

You must be logged in to vote

I hope I have understood your question correctly. In my opinion, you can achieve this with a row. See the code below.

import flet as ft

def main(page: ft.Page):
    page.add(
        ft.Container(
            ft.Row(
                alignment=ft.MainAxisAlignment.CENTER,
                controls=[ft.IconButton(
                    icon=ft.icons.HOME,
                    icon_color="#17F1FF",
                    icon_size=24,
                ),
                ft.Text("text"),
                ft.IconButton(
                    icon=ft.icons.ARROW_FORWARD_IOS_ROUNDED,
                    icon_color="#8DF1A9",
                    icon_size=24,
                ),]
            )
        )
   …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by AngelCard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
help wanted Extra attention is needed
2 participants