DHGridDialog<W, D> constructor
DHGridDialog<W, D> ({
- Key? key,
- Widget? title,
- String? titleText,
- EdgeInsetsGeometry? titlePadding,
- TextStyle? titleTextStyle,
- TextAlign titleAlign = TextAlign.center,
- bool hasTitleDivider = false,
- Widget? titleDivider,
- required List<
DialogListItem< datas,W, D> > - required ListItemBuilder<
W> itemBuilder, - EdgeInsetsGeometry? itemPadding = const EdgeInsets.all(16.0),
- AlignmentGeometry? itemAlignment = Alignment.center,
- OnItemClickListener<
D> ? itemClickListener, - required int crossAxisCount,
- double mainAxisSpacing = 0.0,
- double crossAxisSpacing = 0.0,
- double childAspectRatio = 1.0,
- double? mainAxisExtent,
- bool reverse = false,
- EdgeInsetsGeometry? contentPadding = const EdgeInsets.symmetric(horizontal: 20.0),
- 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
DHGridDialog({
Key? key,
Widget? title,
String? titleText,
EdgeInsetsGeometry? titlePadding,
TextStyle? titleTextStyle,
TextAlign titleAlign = TextAlign.center,
bool hasTitleDivider = false,
Widget? titleDivider,
required this.datas,
required this.itemBuilder,
this.itemPadding = const EdgeInsets.all(16.0),
this.itemAlignment = Alignment.center,
this.itemClickListener,
required this.crossAxisCount,
this.mainAxisSpacing = 0.0,
this.crossAxisSpacing = 0.0,
this.childAspectRatio = 1.0,
this.mainAxisExtent,
this.reverse = false,
EdgeInsetsGeometry? contentPadding =
const EdgeInsets.symmetric(horizontal: 20.0),
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,
}) : super(
key: key,
title: title,
titleText: titleText,
titlePadding: titlePadding,
titleTextStyle: titleTextStyle,
titleAlign: titleAlign,
hasTitleDivider: hasTitleDivider,
titleDivider: titleDivider,
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,
);