GallerySetting constructor

const GallerySetting({
  1. bool enableCropper = false,
  2. bool saveCropper = false,
  3. RequestType requestType = RequestType.all,
  4. int maximum = 20,
  5. bool enableCamera = true,
  6. int? crossAxisCount,
  7. bool backAndUnselect()?,
  8. dynamic onItemClick(
    1. LikkEntity,
    2. List<LikkEntity>
    )?,
  9. VoidCallback? onReachedMaximumLimit,
  10. Alignment selectionCountAlignment = Alignment.center,
  11. Widget? actionButton = const SizedBox(),
  12. TextStyle? selectionCountTextStyle,
  13. Color? selectionCountBackgroundColor,
  14. double? selectionCountBackgroundSize,
  15. Color? selectionCountRingColor,
  16. double? selectionCountRingSize,
  17. EdgeInsets? selectionCountMargin,
  18. Widget selectionCountBuilder(
    1. int index
    )?,
  19. SelectedStyle? selectedStyle = SelectedStyle.border,
  20. EdgeInsets? padding,
  21. double? space,
  22. BorderRadius? itemBorderRadius,
  23. Widget albumBackground = const ColoredBox(color: Colors.black),
  24. Color albumColor = Colors.grey,
  25. int? albumImageSize,
  26. BorderRadius? albumBorderRadius,
  27. TextStyle? albumTitleStyle,
  28. TextStyle? albumSubTitleStyle,
  29. Widget? cameraItemWidget,
})

Implementation

const GallerySetting({
  this.enableCropper = false,
  this.saveCropper = false,
  this.requestType = RequestType.all,
  this.maximum = 20,
  this.enableCamera = true,
  this.crossAxisCount,
  this.backAndUnselect,
  this.onItemClick,
  this.onReachedMaximumLimit,
  this.selectionCountAlignment = Alignment.center,
  this.actionButton = const SizedBox(),
  this.selectionCountTextStyle,
  this.selectionCountBackgroundColor,
  this.selectionCountBackgroundSize,
  this.selectionCountRingColor,
  this.selectionCountRingSize,
  this.selectionCountMargin,
  this.selectionCountBuilder,
  this.selectedStyle = SelectedStyle.border,
  this.padding,
  this.space,
  this.itemBorderRadius,
  this.albumBackground = const ColoredBox(color: Colors.black),
  this.albumColor = Colors.grey,
  this.albumImageSize,
  this.albumBorderRadius,
  this.albumTitleStyle,
  this.albumSubTitleStyle,
  this.cameraItemWidget,
}) : assert(!(maximum > 1 && enableCropper));