material_dialog

A wrapper on top of simple dialog provided by flutter.

Getting Started

PropertyTypeDefault ValueDescription
titleWidgetnullThe (optional) title of the dialog is displayed in a large font at the top of the dialog.
subTitleWidgetnullThe (optional) subtitle of the dialog is displayed below title of the dialog.
contentWidgetnullThe (optional) content of the dialog is displayed in the center of the dialog in a lighter font.
actionsListnullThe (optional) set of actions that are displayed at the bottom of the dialog.
childrenListnullThe (optional) content of the dialog is displayed in a SingleChildScrollView underneath the title.
headerColorColornullThe (optional) header color is displayed in the header background.
backButtonColorColorColors.whiteThe (optional) back button color. By default its set to white.
closeButtonColorColorColors.whiteThe (optional) close button color. By default its set to white.
onBackButtonClickedVoidCallbacknullA callback function to get back button event from dialog. If back button is enabled this callback has to be provided in-order to get callbacks.
onCloseButtonClickedVoidCallbacknullA callback function to get close button event from dialog. If close button is enabled this callback has to be provided in-order to get callbacks.
enableBackButtonboolfalseThe (optional) value to enable/disable back button for a dialog.
enableCloseButtonboolfalseThe (optional) value to enable/disable close button for a dialog.
enableFullWidthbooltrueThe (optional) value to stretch dialog to its max width.
enableFullHeightboolfalseThe (optional) value to stretch dialog to its max height.
borderRadiusdouble10.0The (optional) border radius of a dialog. by default its 10.0.

Libraries

button_bar
dialog
material_dialog