Skip to content

Multiline Text for Radio Buttons in Flet #2118

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

You must be logged in to vote

Can the below example satisfy your needs:

import flet as ft


def main(page):
    def button_clicked(e):
        t.value = f"Selection:  {cg.value}"
        page.update()

    t = ft.Text()
    b = ft.ElevatedButton(text="Submit", on_click=button_clicked)
    cg = ft.RadioGroup(
        content=ft.Column(
            [
                ft.Row(
                    [
                        ft.Radio(value="text1"),
                        ft.Text(
                            "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur quis nibh vitae purus consectetur facilisis sed vitae ipsum. Quisque faucibus sed nulla placerat sagittis. Phasellus condimentum risus vitae nulla vesti…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Gelraiser
Comment options

Answer selected by Gelraiser
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