DHListDialog<W, D> constructor
DHListDialog<W, D> ({
- Key? key,
- Widget? title,
- String? titleText,
- EdgeInsetsGeometry? titlePadding,
- TextStyle? titleTextStyle,
- TextAlign titleAlign = TextAlign.center,
- required List<
DialogListItem< datas,W, D> > - EdgeInsetsGeometry? itemPadding = DialogStyle.listItemPadding,
- double? itemHeight,
- AlignmentGeometry? itemAlignment = Alignment.center,
- IndexedWidgetBuilder? itemDividerBuilder,
- ListItemBuilder<
W> ? itemBuilder, - OnItemClickListener<
D> ? itemClickListener, - EdgeInsetsGeometry? contentPadding = EdgeInsets.zero,
- String? positiveText,
- TextStyle? positiveTextStyle,
- GestureTapCallback? positiveTap,
- bool hasPositive = true,
- String? negativeText,
- TextStyle? negativeTextStyle,
- GestureTapCallback? negativeTap,
- bool hasNegative = true,
- double? actionHeight,
- Color? dividerColor = DHColors.color_000000_15,
- DividerBuilder? actionDividerBuilder,
- Color? backgroundColor,
- double topRadius = 20.0,
- double bottomRadius = 20.0,
- double? elevation,
- double? dialogWidth,
- EdgeInsets? dialogMargin,
- EdgeInsets? dialogPadding,
- AlignmentGeometry dialogAlignment = Alignment.bottomCenter,
Implementation
DHListDialog({
Key? key,
Widget? title,
String? titleText,
EdgeInsetsGeometry? titlePadding,
TextStyle? titleTextStyle,
TextAlign titleAlign = TextAlign.center,
required this.datas,
this.itemPadding = DialogStyle.listItemPadding,
this.itemHeight,
this.itemAlignment = Alignment.center,
this.itemDividerBuilder,
this.itemBuilder,
this.itemClickListener,
EdgeInsetsGeometry? contentPadding = EdgeInsets.zero,
String? positiveText,
TextStyle? positiveTextStyle,
GestureTapCallback? positiveTap,
bool hasPositive = true,
String? negativeText,
TextStyle? negativeTextStyle,
GestureTapCallback? negativeTap,
bool hasNegative = true,
double? actionHeight,
Color? dividerColor = DHColors.color_000000_15,
DividerBuilder? actionDividerBuilder,
Color? backgroundColor,
double topRadius = 20.0,
double bottomRadius = 20.0,
double? elevation,
double? dialogWidth,
EdgeInsets? dialogMargin,
EdgeInsets? dialogPadding,
AlignmentGeometry dialogAlignment = Alignment.bottomCenter,
}) : assert(datas != null),
assert(dialogAlignment != null),
assert(itemPadding != null || itemHeight != null),
super(
key: key,
title: title,
titleText: titleText,
titlePadding: titlePadding,
titleTextStyle: titleTextStyle,
titleAlign: titleAlign,
contentPadding: contentPadding,
positiveText: positiveText,
positiveTextStyle: positiveTextStyle,
positiveTap: positiveTap,
hasPositive: hasPositive,
negativeText: negativeText,
negativeTextStyle: negativeTextStyle,
negativeTap: negativeTap,
hasNegative: hasNegative,
actionHeight: actionHeight,
dividerColor: dividerColor,
actionDividerBuilder: actionDividerBuilder,
backgroundColor: backgroundColor,
topRadius: topRadius,
bottomRadius: bottomRadius,
elevation: elevation,
dialogWidth: dialogWidth,
dialogMargin: dialogMargin,
dialogPadding: dialogPadding,
dialogAlignment: dialogAlignment,
);