DHInputDialog constructor

DHInputDialog({
  1. Key? key,
  2. Widget? title,
  3. String? titleText,
  4. EdgeInsetsGeometry? titlePadding,
  5. TextStyle? titleTextStyle,
  6. TextAlign titleAlign = TextAlign.center,
  7. EdgeInsetsGeometry? contentPadding,
  8. String? positiveText,
  9. TextStyle? positiveTextStyle,
  10. ValueChanged<String>? positiveTap,
  11. bool hasPositive = true,
  12. String? negativeText,
  13. TextStyle? negativeTextStyle,
  14. ValueChanged<String>? negativeTap,
  15. bool hasNegative = true,
  16. double? actionHeight,
  17. EdgeInsets? dialogMargin,
  18. EdgeInsets? dialogPadding,
  19. Color? backgroundColor,
  20. double topRadius = 20.0,
  21. double bottomRadius = 20.0,
  22. double? elevation,
  23. Color? dividerColor = DHColors.color_000000_15,
  24. DividerBuilder? actionDividerBuilder,
  25. AlignmentGeometry dialogAlignment = Alignment.bottomCenter,
  26. double? dialogWidth,
  27. String? text,
  28. TextStyle? style,
  29. int? maxLines = 1,
  30. List<TextInputFormatter>? inputFormatter,
  31. TextInputType? keyboardType,
  32. int? maxLength,
  33. bool? enabled,
  34. InputDecoration? decoration,
  35. String? hintText,
  36. TextStyle? hintStyle,
  37. InputBorderStyle? borderStyle = InputBorderStyle.outline,
  38. bool? filled = true,
  39. Color? fillColor = DHColors.color_f8f8f8,
  40. EdgeInsetsGeometry? inputPadding = DialogStyle.inputPadding,
  41. BorderSide? borderSide,
  42. BorderRadius? borderRadius,
  43. bool showCounter = false,
  44. Widget? suffix,
  45. GestureTapCallback? suffixOnTap,
  46. BoxConstraints? suffixConstraints,
  47. ValueSetter<TextEditingController>? controllerGetter,
})

Implementation

DHInputDialog({
  Key? key,
  this.title,
  this.titleText,
  this.titlePadding,
  this.titleTextStyle,
  this.titleAlign = TextAlign.center,
  this.contentPadding,
  this.positiveText,
  this.positiveTextStyle,
  this.positiveTap,
  this.hasPositive = true,
  this.negativeText,
  this.negativeTextStyle,
  this.negativeTap,
  this.hasNegative = true,
  this.actionHeight,
  this.dialogMargin,
  this.dialogPadding,
  this.backgroundColor,
  this.topRadius = 20.0,
  this.bottomRadius = 20.0,
  this.elevation,
  this.dividerColor = DHColors.color_000000_15,
  this.actionDividerBuilder,
  this.dialogAlignment = Alignment.bottomCenter,
  this.dialogWidth,
  this.text,
  this.style,
  this.maxLines = 1,
  this.inputFormatter,
  this.keyboardType,
  this.maxLength,
  this.enabled,
  this.decoration,
  this.hintText,
  this.hintStyle,
  this.borderStyle = InputBorderStyle.outline,
  this.filled = true,
  this.fillColor = DHColors.color_f8f8f8,
  this.inputPadding = DialogStyle.inputPadding,
  this.borderSide,
  this.borderRadius,
  this.showCounter = false,
  this.suffix,
  this.suffixOnTap,
  this.suffixConstraints,
  this.controllerGetter,
}) : super(key: key);