DialogText constructor
const
DialogText({
- Key? key,
- required String title,
- String? description,
- TextInputType? keyboardType,
- bool obscureText = false,
- String? hint,
- String? initialValue,
- Widget descriptionWidget = const SizedBox.shrink(),
- String confirmText = "Done",
- String cancelText = "Cancel",
- int maxLines = 1,
- int? minLines,
- int? maxLength,
- required void onConfirm(
- String result
- List<
Widget> ? actions,
Implementation
const DialogText(
{super.key,
required this.title,
this.description,
this.keyboardType,
this.obscureText = false,
this.hint,
this.initialValue,
this.descriptionWidget = const SizedBox.shrink(),
this.confirmText = "Done",
this.cancelText = "Cancel",
this.maxLines = 1,
this.minLines,
this.maxLength,
required this.onConfirm,
this.actions});