CommonDialog.singleButton constructor

CommonDialog.singleButton({
  1. Key? key,
  2. Widget? contentChild,
  3. String? title,
  4. TextAlign? titleAlign,
  5. TextStyle? titleStyle,
  6. double? titleFontSize,
  7. Color? titleColor,
  8. String? content,
  9. TextAlign? contentAlign,
  10. TextStyle? contentStyle,
  11. double? contentFontSize,
  12. Color? contentColor,
  13. String? button,
  14. TextStyle? buttonTextStyle,
  15. VoidCallback? onButtonPressed,
})

单按钮弹窗

Implementation

CommonDialog.singleButton(
    {Key? key,
    Widget? contentChild,
    String? title,
    TextAlign? titleAlign,
    TextStyle? titleStyle,
    double? titleFontSize,
    Color? titleColor,
    String? content,
    TextAlign? contentAlign,
    TextStyle? contentStyle,
    double? contentFontSize,
    Color? contentColor,
    String? button,
    TextStyle? buttonTextStyle,
    VoidCallback? onButtonPressed})
    : this(
          key: key,
          contentChild: contentChild,
          title: title,
          titleAlign: titleAlign,
          contentAlign: contentAlign,
          titleStyle: titleStyle,
          titleFontSize: titleFontSize,
          titleColor: titleColor,
          content: content,
          contentStyle: contentStyle,
          contentFontSize: contentFontSize,
          contentColor: contentColor,
          rightButton: button,
          rightButtonTextStyle: buttonTextStyle,
          onRightButtonPressed: onButtonPressed);