DialogText constructor

const DialogText({
  1. Key? key,
  2. required String title,
  3. String? description,
  4. TextInputType? keyboardType,
  5. bool obscureText = false,
  6. String? hint,
  7. String? initialValue,
  8. Widget descriptionWidget = const SizedBox.shrink(),
  9. String confirmText = "Done",
  10. String cancelText = "Cancel",
  11. int maxLines = 1,
  12. int? minLines,
  13. int? maxLength,
  14. required void onConfirm(
    1. String result
    ),
  15. 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});