DHInputDialog constructor
DHInputDialog({
- Key? key,
- Widget? title,
- String? titleText,
- EdgeInsetsGeometry? titlePadding,
- TextStyle? titleTextStyle,
- TextAlign titleAlign = TextAlign.center,
- EdgeInsetsGeometry? contentPadding,
- String? positiveText,
- TextStyle? positiveTextStyle,
- ValueChanged<
String> ? positiveTap, - bool hasPositive = true,
- String? negativeText,
- TextStyle? negativeTextStyle,
- ValueChanged<
String> ? negativeTap, - bool hasNegative = true,
- double? actionHeight,
- EdgeInsets? dialogMargin,
- EdgeInsets? dialogPadding,
- Color? backgroundColor,
- double topRadius = 20.0,
- double bottomRadius = 20.0,
- double? elevation,
- Color? dividerColor = DHColors.color_000000_15,
- DividerBuilder? actionDividerBuilder,
- AlignmentGeometry dialogAlignment = Alignment.bottomCenter,
- double? dialogWidth,
- String? text,
- TextStyle? style,
- int? maxLines = 1,
- List<
TextInputFormatter> ? inputFormatter, - TextInputType? keyboardType,
- int? maxLength,
- bool? enabled,
- InputDecoration? decoration,
- String? hintText,
- TextStyle? hintStyle,
- InputBorderStyle? borderStyle = InputBorderStyle.outline,
- bool? filled = true,
- Color? fillColor = DHColors.color_f8f8f8,
- EdgeInsetsGeometry? inputPadding = DialogStyle.inputPadding,
- BorderSide? borderSide,
- BorderRadius? borderRadius,
- bool showCounter = false,
- Widget? suffix,
- GestureTapCallback? suffixOnTap,
- BoxConstraints? suffixConstraints,
- 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);