PickerDecoration class

PickerDecoration is used for decorating the UI

Constructors

PickerDecoration({ActionBarPosition actionBarPosition = ActionBarPosition.top, Widget? cancelIcon, int columnCount = 3, double blurStrength = 10, double scaleAmount = 1.2, TextStyle? albumTitleStyle, String completeText = 'Continue', TextStyle? completeTextStyle, ButtonStyle? completeButtonStyle, Widget? loadingWidget, TextStyle? albumTextStyle, TextStyle? albumCountTextStyle, String? noMedia, dynamic videoDurationBuilder(BuildContext context, String? duration)?, dynamic counterBuilder(BuildContext context, int? index)?, Color selectedColor = Colors.black26})
PickerDecoration constructor to be used for decorating the UI

Properties

actionBarPosition ActionBarPosition
set position of ActionBar, bottom or top
final
albumCountTextStyle TextStyle?
Album's media count text style
final
albumTextStyle TextStyle?
Album text text style
final
albumTitleStyle TextStyle?
Album title text style
final
blurStrength double
Blur amount on select media
final
cancelIcon Widget?
Widget that will work as back button in picker
final
columnCount int
assign number of Columns of Media Grid
final
completeButtonStyle ButtonStyle?
style of select button
final
completeText String
text of select button
final
completeTextStyle TextStyle?
text style of select button
final
counterBuilder → (dynamic Function(BuildContext context, int? index)?)
counterBuilder is used to customize the selection counter on picked media in the list. As it is placed in Stack widget, you can use Positioned/Align widget to position it. context is the BuildContext of picker header index is the index of selected media in the list. Show nothing if it is null
final
hashCode int
The hash code for this object.
no setterinherited
loadingWidget Widget?
loading widget to be used as media place holder until media loads
final
noMedia String?
text of no media
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scaleAmount double
Scale Amount of selected media
final
selectedColor Color
Color of selected media
final
videoDurationBuilder → (dynamic Function(BuildContext context, String? duration)?)
If the file is video, a duration will be shown on media list. You can customize it using this builder
final

Methods

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