GalleryMediaPicker constructor

const GalleryMediaPicker({
  1. Key? key,
  2. int maxPickImages = 2,
  3. bool singlePick = true,
  4. Color appBarColor = Colors.white,
  5. Color? albumBackGroundColor = Colors.white,
  6. Color? albumDividerColor,
  7. Color albumTextColor = Colors.black,
  8. Color? appBarIconColor,
  9. Color appBarTextColor = Colors.black,
  10. int? crossAxisCount,
  11. Color gridViewBackgroundColor = Colors.white,
  12. double? childAspectRatio,
  13. Widget? appBarLeadingWidget,
  14. double appBarHeight = 100,
  15. Color imageBackgroundColor = Colors.white,
  16. EdgeInsets? gridPadding,
  17. ScrollController? gridViewController,
  18. ScrollPhysics? gridViewPhysics,
  19. dynamic pathList(
    1. List<PickedAssetModel> path
    )?,
  20. Color selectedBackgroundColor = Colors.white,
  21. Color selectedCheckColor = Colors.white,
  22. BoxFit thumbnailBoxFix = BoxFit.cover,
  23. Color selectedCheckBackgroundColor = Colors.white,
  24. bool onlyImages = false,
  25. bool onlyVideos = false,
  26. int? thumbnailQuality,
  27. required GalleryMediaPickerController provider,
})

Implementation

const GalleryMediaPicker(
    {super.key,
    this.maxPickImages = 2,
    this.singlePick = true,
    this.appBarColor = Colors.white,
    this.albumBackGroundColor = Colors.white,
    this.albumDividerColor,
    this.albumTextColor = Colors.black,
    this.appBarIconColor,
    this.appBarTextColor = Colors.black,
    this.crossAxisCount,
    this.gridViewBackgroundColor = Colors.white,
    this.childAspectRatio,
    this.appBarLeadingWidget,
    this.appBarHeight = 100,
    this.imageBackgroundColor = Colors.white,
    this.gridPadding,
    this.gridViewController,
    this.gridViewPhysics,
    this.pathList,
    this.selectedBackgroundColor = Colors.white,
    this.selectedCheckColor = Colors.white,
    this.thumbnailBoxFix = BoxFit.cover,
    this.selectedCheckBackgroundColor = Colors.white,
    this.onlyImages = false,
    this.onlyVideos = false,
    this.thumbnailQuality,
    required this.provider});