GalleryGridView constructor

const GalleryGridView({
  1. Key? key,
  2. required AssetPathEntity? path,
  3. required GalleryMediaPickerController provider,
  4. OnAssetItemClick? onAssetItemClick,
  5. RemoveAssetItem? onAssetRemove,
  6. bool loadWhenScrolling = false,
  7. double childAspectRatio = 0.5,
  8. Color gridViewBackgroundColor = Colors.white,
  9. int crossAxisCount = 3,
  10. EdgeInsets? padding,
  11. ScrollController? gridViewController,
  12. ScrollPhysics? gridViewPhysics,
  13. Color selectedBackgroundColor = Colors.black,
  14. Color selectedCheckColor = Colors.white,
  15. Color imageBackgroundColor = Colors.white,
  16. BoxFit thumbnailBoxFix = BoxFit.cover,
  17. Color selectedCheckBackgroundColor = Colors.white,
  18. int? thumbnailQuality = 200,
})

Implementation

const GalleryGridView(
    {super.key,
    required this.path,
    required this.provider,
    this.onAssetItemClick,
    this.onAssetRemove,
    this.loadWhenScrolling = false,
    this.childAspectRatio = 0.5,
    this.gridViewBackgroundColor = Colors.white,
    this.crossAxisCount = 3,
    this.padding,
    this.gridViewController,
    this.gridViewPhysics,
    this.selectedBackgroundColor = Colors.black,
    this.selectedCheckColor = Colors.white,
    this.imageBackgroundColor = Colors.white,
    this.thumbnailBoxFix = BoxFit.cover,
    this.selectedCheckBackgroundColor = Colors.white,
    this.thumbnailQuality = 200});