AlbumImagePicker class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- AlbumImagePicker
Constructors
-
AlbumImagePicker({Key? key, int maxSelection = 1, required dynamic onSelected(List<
AssetEntity> ), List<AssetEntity> ? selected, AlbumType type = AlbumType.all, BoxFit thumbnailBoxFix = BoxFit.cover, int crossAxisCount = 3, double childAspectRatio = 1.0, int thumbnailQuality = 200, EdgeInsets gridPadding = EdgeInsets.zero, Color listBackgroundColor = Colors.white, Color itemBackgroundColor = Colors.grey, Color selectedItemBackgroundColor = Colors.grey, Color appBarColor = Colors.redAccent, TextStyle albumTextStyle = const TextStyle(color: Colors.white, fontSize: 18), TextStyle albumHeaderTextStyle = const TextStyle(color: Colors.white, fontSize: 18), TextStyle albumSubTextStyle = const TextStyle(color: Colors.white, fontSize: 14), double appBarHeight = 45, Color albumBackGroundColor = const Color(0xFF333333), Color albumDividerColor = const Color(0xFF484848), bool centerTitle = true, List<Widget> ? appBarActionWidgets, Widget? closeWidget, SelectionWidgetBuilder? selectionBuilder, ScrollPhysics? scrollPhysics, ScrollController? scrollController, VoidCallback? onSelectedMax, Widget? emptyAlbumThumbnail}) -
const
Properties
- albumBackGroundColor → Color
-
album background color
final
- albumDividerColor → Color
-
album divider color
final
- albumHeaderTextStyle → TextStyle
-
album header text color
final
- albumSubTextStyle → TextStyle
-
album sub text color
final
- albumTextStyle → TextStyle
-
album text color
final
-
appBarActionWidgets
→ List<
Widget> ? -
appBar actions widgets
final
- appBarColor → Color
-
dropdown appbar color
final
- appBarHeight → double
-
album text color
final
- centerTitle → bool
-
final
- childAspectRatio → double
-
gallery gridview aspect ratio
final
- closeWidget → Widget?
-
Close widget
final
- crossAxisCount → int
-
gridview crossAxisCount
final
- emptyAlbumThumbnail → Widget?
-
final
- gridPadding → EdgeInsets
-
gridView Padding
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- itemBackgroundColor → Color
-
grid image backGround color
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- listBackgroundColor → Color
-
gridView background color
final
- maxSelection → int
-
maximum images allowed (default 1)
final
-
onSelected
→ dynamic Function(List<
AssetEntity> ) -
return all selected images
final
- onSelectedMax → VoidCallback?
-
On reach max
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scrollController → ScrollController?
-
gridView controller
final
- scrollPhysics → ScrollPhysics?
-
gridView physics
final
-
selected
→ List<
AssetEntity> ? -
preSelected images
final
- selectedItemBackgroundColor → Color
-
grid selected image backGround color
final
- selectionBuilder → SelectionWidgetBuilder?
-
Icon widget builder
index = -1, not selected yet
final
- thumbnailBoxFix → BoxFit
-
thumbnail box fit
final
- thumbnailQuality → int
-
image quality thumbnail
final
- type → AlbumType
-
The album type when requesting paths.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → _AlbumImagePickerState -
Creates the mutable state for this widget at a given location in the tree.
override
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of
DiagnosticsNode
objects describing this node's children.inherited -
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited