# dialogs library

## Classes

ClickableDependency
ClickableText
ClickableUrl
CreateWidget
DependencyList
InstallDialog
  Install Dialog

## Properties

cmds ↔ String
  read / write

## Functions

copyDialog(dynamic item) → dynamic
  Copy Dialog @param item: distro name
createDialog() → dynamic
  Create Dialog
createInstance(TextEditingController nameController, TextEditingController locationController, WSLApi api, TextEditingController autoSuggestBox, TextEditingController userController) → Future<void>
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.
extractPorts(String portRaw) → String
getInstanceData(String item) → Future<Map<String, String>>
infoDialog(dynamic prefs, dynamic currentVersion) → dynamic
  Info Dialog @param prefs: SharedPreferences @param currentVersion: String
settingsColumn(TextEditingController pathController, TextEditingController startCmdController, TextEditingController userController, dynamic context, dynamic item, bool isSyncing, Function setState) → Column
settingsDialog(dynamic item) → dynamic
  Rename Dialog @param context: context @param item: distro name
settingSwitch(dynamic item, Function setState, String parent, String setting) → Widget
settingText(dynamic item, Function setState, String parent, String setting) → Widget
shareUsageData(dynamic prefs) → ClickableText
wslSettings(dynamic item, Function setState) → Widget