# base_dialog library

## Functions

dialog({required dynamic item, Function? onSubmit, bool bodyIsWidget = false, Widget bodyAsWidget = const Text(''), String title = '', String body = '', String submitText = '', ButtonStyle submitStyle = const ButtonStyle(), bool submitInput = true, bool centerText = false, String cancelText = '', Function? onCancel}) → dynamic
  This function displays a dialog box with the given `item`, which is a widget that is displayed in the dialog box. It also takes an optional `onSubmit` parameter, which is a function that is called when the user presses the submit button. The rest of the parameters are optional and are used to customize the dialog box. The `onSubmit` function is called with the text input by the user as a parameter. This function returns a future that resolves when the dialog is closed.