JJDialogList constructor

JJDialogList({
  1. Key? key,
  2. JJDialogType type = JJDialogType.list,
  3. List<String>? list,
  4. List<Widget>? children,
  5. Widget? custom,
  6. double cellHeight = 44,
  7. double cellWidth = double.infinity,
  8. EdgeInsets? listPadding = const EdgeInsets.symmetric(horizontal: 16),
  9. EdgeInsets? cellPadding,
  10. TextAlign? textAlign = TextAlign.center,
  11. TextStyle? textStyle,
  12. TextStyle? selectedTextStyle,
  13. BoxDecoration? cellDecoration,
  14. BoxDecoration? cellSelectedDecoration,
  15. void onTap(
    1. int index
    )?,
  16. int selectedIndex = -1,
  17. Color? highlightColor,
  18. Color? tapSplashColor,
  19. BorderRadius? tapBorderRadius,
  20. Color separateColor = const Color(0xfff5f5f5),
  21. double separateWidth = 0.5,
  22. int crossAxisCount = 3,
  23. double mainAxisSpacing = 0.0,
  24. double crossAxisSpacing = 0.0,
  25. double childAspectRatio = 1.0,
  26. double? mainAxisExtent,
  27. double diameterRatio = 1.07,
  28. Color? backgroundColor = Colors.transparent,
  29. double offAxisFraction = 0.0,
  30. bool useMagnifier = true,
  31. double magnification = 1.2,
  32. FixedExtentScrollController? scrollController,
  33. double squeeze = 1.45,
  34. Widget? selectionOverlay,
  35. void onChange(
    1. int index
    )?,
})

Implementation

JJDialogList({Key? key,

this.type = JJDialogType.list,

///默认list
this.list,
this.children,
///custom
this.custom,

///cell选项卡
this.cellHeight = 44,
this.cellWidth = double.infinity,
this.listPadding = const EdgeInsets.symmetric(horizontal: 16),
this.cellPadding,
this.textAlign = TextAlign.center,
this.textStyle,
this.selectedTextStyle,
this.cellDecoration,
this.cellSelectedDecoration,
this.onTap,
this.selectedIndex = -1,
this.highlightColor,
this.tapSplashColor,
this.tapBorderRadius,
///list, listHeight 44, 文字居中
this.separateColor = const Color(0xfff5f5f5),
this.separateWidth = 0.5,


///grid
this.crossAxisCount = 3,
this.mainAxisSpacing = 0.0, //wrap spacing
this.crossAxisSpacing = 0.0,//wrap runSpacing
this.childAspectRatio = 1.0,
this.mainAxisExtent,

///picker
this.diameterRatio = 1.07,
this.backgroundColor = Colors.transparent,
this.offAxisFraction = 0.0,
this.useMagnifier = true,
this.magnification = 1.2,
this.scrollController,
this.squeeze = 1.45,
this.selectionOverlay,
this.onChange,
  }) : super(key: key);