GallerySetting class
Setting for likk picker
Constructors
-
GallerySetting({bool enableCropper = false, bool saveCropper = false, RequestType requestType = RequestType.all, int maximum = 20, bool enableCamera = true, int? crossAxisCount, bool backAndUnselect()?, dynamic onItemClick(LikkEntity, List<
LikkEntity> )?, VoidCallback? onReachedMaximumLimit, Alignment selectionCountAlignment = Alignment.center, Widget? actionButton = const SizedBox(), TextStyle? selectionCountTextStyle, Color? selectionCountBackgroundColor, double? selectionCountBackgroundSize, Color? selectionCountRingColor, double? selectionCountRingSize, EdgeInsets? selectionCountMargin, Widget selectionCountBuilder(int index)?, SelectedStyle? selectedStyle = SelectedStyle.border, EdgeInsets? padding, double? space, BorderRadius? itemBorderRadius, Widget albumBackground = const ColoredBox(color: Colors.black), Color albumColor = Colors.grey, int? albumImageSize, BorderRadius? albumBorderRadius, TextStyle? albumTitleStyle, TextStyle? albumSubTitleStyle, Widget? cameraItemWidget}) -
const
Properties
- actionButton → Widget?
-
Show Edit, Select action
final
- albumBackground → Widget
-
final
- albumBorderRadius → BorderRadius?
-
final
- albumColor → Color
-
final
- albumImageSize → int?
-
final
- albumSubTitleStyle → TextStyle?
-
final
- albumTitleStyle → TextStyle?
-
final
- backAndUnselect → (bool Function()?)
-
On unselect item:
return true is unselect,
false is cancel
final
- cameraItemWidget → Widget?
-
Custom Widget for camera item
final
- crossAxisCount → int?
-
Gallery cross axis count. Default is 3
final
- enableCamera → bool
-
Set false to hide camera from gallery view
final
- enableCropper → bool
-
Enable image cropper when maximum = 1 or open camera
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- itemBorderRadius → BorderRadius?
-
BorderRadius of item
Default: BorderRadius.circular(8)
final
- maximum → int
-
Total media allowed to select. Default is 20
final
-
onItemClick
→ (dynamic Function(LikkEntity, List<
LikkEntity> )?) -
On select item callback
Result is: clicked item and selected list
final
- onReachedMaximumLimit → VoidCallback?
-
On reached maximum limit
final
- padding → EdgeInsets?
-
Padding for panel content
final
- requestType → RequestType
-
Type of media e.g, image, video, audio, other
Default is RequestType.all
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- saveCropper → bool
-
Save image cropper to Gallery
final
- selectedStyle → SelectedStyle?
-
Item selected style
Default: SelectedStyle.border
final
- selectionCountAlignment → Alignment
-
Set position for selection count
final
- selectionCountBackgroundColor → Color?
-
Set Background color for selection count
final
- selectionCountBackgroundSize → double?
-
Set Background size for selection count
final
- selectionCountBuilder → (Widget Function(int index)?)
-
Set background for selection count
final
- selectionCountMargin → EdgeInsets?
-
Set margin for selection count
final
- selectionCountRingColor → Color?
-
Set Ring for selection count
final
- selectionCountRingSize → double?
-
Set Ring size for selection count
final
- selectionCountTextStyle → TextStyle?
-
Set TextStyle for selection count
final
- space → double?
-
Space for items
final
Methods
-
copyWith(
{bool? enableCropper, bool? saveCropper, SelectedStyle? selectedStyle, VoidCallback? onReachedMaximumLimit, RequestType? requestType, int? maximum, bool? enableCamera, int? crossAxisCount, bool backAndUnselect()?, dynamic onItemClick(LikkEntity, List< LikkEntity> )?, Widget? actionButton, Alignment? selectionCountAlignment, TextStyle? selectionCountTextStyle, Color? selectionCountBackgroundColor, double? selectionCountBackgroundSize, Color? selectionCountRingColor, double? selectionCountRingSize, EdgeInsets? selectionCountMargin, Widget selectionCountBuilder(int index)?, EdgeInsets? padding, double? space, BorderRadius? itemBorderRadius, Widget? albumBackground, Color? albumColor, int? albumImageSize, BorderRadius? albumBorderRadius, TextStyle? albumTitleStyle, TextStyle? albumSubTitleStyle, Widget? cameraItemWidget}) → GallerySetting - Helper function
-
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