Skip to main content

AutofillGroup

Groups autofillable controls such as TextField or CupertinoTextField.

Examples

Live example

Basic example

import flet as ft

def main(page: ft.Page):
page.add(
ft.AutofillGroup(
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,
),
]
)
)
)

ft.app(main)

Properties

content

The content control of this group.

Value is of type Control.

dispose_action

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

Value is of type AutofillGroupDisposeAction and defaults to AutofillGroupDisposeAction.COMMIT.