DialogCenterInputWidget constructor

const DialogCenterInputWidget({
  1. Key? key,
  2. required String title,
  3. bool outSideDismissible = false,
  4. String? cancelText,
  5. String? affirmText,
  6. Color? cancelTextColor,
  7. Color? affirmTextColor,
  8. String? contentHint,
  9. String? defaultText,
  10. dynamic onPressed(
    1. bool tag,
    2. String text
    )?,
})

tag 如果是true 代表点击确认

Implementation

const DialogCenterInputWidget(
    {Key? key,
    required this.title,
    this.outSideDismissible = false,
    this.cancelText,
    this.affirmText,
    this.cancelTextColor,
    this.affirmTextColor,
    this.contentHint,
    this.defaultText,
    this.onPressed})
    : super(key: key);