Dialog¶
Dialogs inform users about a task and can contain critical information, require decisions, or involve multiple tasks.
Danger
This component on development, if you use the component please follow this documentation.
Confirm¶
Dialog confirm default
AppDialog.confirm(
context: context,
title: 'Dialog Title',
description: 'Phasellus consectetur facilisis',
submitted: 'Yes',
onSubmitted: () {},
),
Useing Properties content
AppDialog.confirm(
context: context,
title: 'Change roles',
description: 'Are you sure you want to change the role for user Nanang?',
content: TextFieldDropdown(
onChanged: (String value) {},
hint: 'Select Role',
selectedItem: 'Manager',
items: const ['Admin', 'Manager', 'User'],
),
submitted: 'Save',
onSubmitted: () {},
)
Constructors
contentDefines the the Widget on belowdescriptionsubmittedDefines the text for the button submit.backDefines the text for the button cancel.isDismissIffalsethe dialog cannot be closed.submittedColorDefines the color for the button submit.
Detail¶
AppDialog.detail(
context: context,
title: 'Detail User',
imageUrl: AppImages.avatarUrl,
content: const [TypeFilterForm()],
onSubmitted: () {},
onReset: () {},
)
Constructors
contentput [ListRowBasic] inside these properties.imageUrlput url address image typeStringonDeleteIf the property isnullthen the delete button is hidden.onSubmittedIf the property isnullthen the edit button is hidden.isDismissIffalsethe dialog cannot be closed.heightReduceset height Dialog(Height Screen / 1.2) - heightReduce
For the contents of the dialog using Row Content:
Row Basic¶
Row Chip¶
Row Link¶
Row Highline¶
Form¶
Filter¶
AppDialog.filter(
context: context,
title: 'Fitler Type',
content: const TypeFilterForm(),
onSubmitted: () {},
onReset: () {},
)
Constructors
contentput List Form input on the propertiesisDismissIffalsethe dialog cannot be closed.heightReduceset height Dialog(Height Screen / 1.2) - heightReduce
Import¶
AppDialog.import(
context: context,
title: 'Import kartu',
description: 'Silahkan masukukan file Excel ke sini. Pastikan data sesuai dengan template.',
content: TextFieldPicker(
fileType: FileType.media,
onDone: (i) {},
),
onSubmitted: () {},
onDownload: () {},
),
Constructors
contentput the WidgetTextFieldPickerisDismissIffalsethe dialog cannot be closed.
Authors:









