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
content
Defines the the Widget on belowdescription
submitted
Defines the text for the button submit.back
Defines the text for the button cancel.isDismiss
Iffalse
the dialog cannot be closed.submittedColor
Defines the color for the button submit.
Detail¶
AppDialog.detail(
context: context,
title: 'Detail User',
imageUrl: AppImages.avatarUrl,
content: const [TypeFilterForm()],
onSubmitted: () {},
onReset: () {},
)
Constructors
content
put [ListRowBasic] inside these properties.imageUrl
put url address image typeString
onDelete
If the property isnull
then the delete button is hidden.onSubmitted
If the property isnull
then the edit button is hidden.isDismiss
Iffalse
the dialog cannot be closed.heightReduce
set 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
content
put List Form input on the propertiesisDismiss
Iffalse
the dialog cannot be closed.heightReduce
set 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
content
put the WidgetTextFieldPicker
isDismiss
Iffalse
the dialog cannot be closed.
Authors: