GalleryConfig class

Constructors

GalleryConfig({String albumTitle = StringConst.ALL_PHOTOS, bool enableCamera = true, int crossAxisCount = 3, SlideSheetConfig slideSheetConfig = const SlideSheetConfig(), CameraConfig cameraConfig = const CameraConfig(), dynamic onReachMaximum()?, Widget closingDialogBuilder()?, TextTheme textTheme = const TextTheme(bodyMedium: TextStyle(fontSize: 16), titleMedium: TextStyle(fontSize: 14, fontWeight: FontWeight.w700), titleSmall: TextStyle(fontSize: 14, fontWeight: FontWeight.w500)), ColorScheme colorScheme = const ColorScheme.light(), SystemUiOverlayStyle overlayStyle = SystemUiOverlayStyle.dark})
const

Properties

albumTitle String
Album name for all photos, default is set to "All Photos"
final
cameraConfig CameraConfig
Camera config
final
closingDialogBuilder Widget Function()?
Alert dialog when closing with selected assets
final
colorScheme ColorScheme
Color Scheme
final
crossAxisCount int
Gallery grid cross axis count. Default is 3
final
enableCamera bool
Set false to hide camera from gallery view
final
hashCode int
The hash code for this object.
no setterinherited
onReachMaximum → dynamic Function()?
On select maximum count
final
overlayStyle SystemUiOverlayStyle
Overlay Style
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
slideSheetConfig SlideSheetConfig
Gallery slidable sheet config
final
textTheme TextTheme
Color Scheme
final

Methods

copyWith({String? albumTitle, bool? enableCamera, int? crossAxisCount, SlideSheetConfig? slideSheetConfig, CameraConfig? cameraConfig, dynamic onReachMaximum()?, Widget closingDialogBuilder()?, TextTheme? textTheme, ColorScheme? colorScheme, SystemUiOverlayStyle? overlayStyle}) GalleryConfig
Helper function to copy its properties
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited