Skip to content

Dialog

A customizable modal dialog component that provides a consistent way to display information and get user input.

The KitDialog widget provides a flexible system for creating dialogs with various configurations including hero images, titles, custom content, and action buttons. The showKitDialog function provides a convenient way to display these dialogs.

  • Content Types: Title, subtitle, custom content, hero images
  • Actions: Primary and secondary buttons
  • Layouts: Standard and full-width modes
  • Customizable: Supports custom styling and content

Basic confirmation dialog with two actions.


Simple error message dialog without actions.


Error dialog with a dismissal action.


Dialog with form input and actions.


Dialog with a small circular image at the top.


Dialog with full-width layout and hero image.


PropertyTypeDescription
heroImageWidget?Optional widget displayed as a banner at the top of the dialog.
titleString?Primary text displayed at the top of the dialog content.
subtitleString?Secondary text displayed below the title.
contentWidget?Custom widget displayed in the dialog’s content area.
primaryLabelString?Text label for the primary action button.
onPrimaryVoidCallback?Callback triggered when the primary button is pressed.
secondaryLabelString?Text label for the optional secondary action button.
onSecondaryVoidCallback?Callback triggered when the secondary button is pressed.
radiusdoubleCorner radius of the dialog container and hero image. Default: 12.
isFullboolMakes the dialog content expand to full width. Default: false.
paddingEdgeInsetsGeometryPadding around the dialog content. Default: EdgeInsets.all(16).
barrierDismissibleboolWhether clicking outside the dialog dismisses it. Default: true.