Skip to content

AutofillGroup

Used to group autofill controls together.

Inherits: Control

Properties

Examples#

Live example

Basic example#

import flet as ft


def main(page: ft.Page):
    page.add(
        ft.SafeArea(
            content=ft.AutofillGroup(
                content=ft.Column(
                    controls=[
                        ft.TextField(
                            label="Name",
                            autofill_hints=ft.AutofillHint.NAME,
                        ),
                        ft.TextField(
                            label="Email",
                            autofill_hints=[ft.AutofillHint.EMAIL],
                        ),
                        ft.TextField(
                            label="Phone Number",
                            autofill_hints=[ft.AutofillHint.TELEPHONE_NUMBER],
                        ),
                        ft.TextField(
                            label="Street Address",
                            autofill_hints=ft.AutofillHint.FULL_STREET_ADDRESS,
                        ),
                        ft.TextField(
                            label="Postal Code",
                            autofill_hints=ft.AutofillHint.POSTAL_CODE,
                        ),
                    ]
                )
            )
        )
    )


if __name__ == "__main__":
    ft.run(main)

basic

Properties#

content instance-attribute #

content: Control

The content of this group.

Raises:

dispose_action class-attribute instance-attribute #

The action to be run when this group is the topmost and it's being disposed, in order to clean up the current autofill context.