PhotoFilter class

A widget that allows users to apply color filters to an image.

Inheritance
Annotations

Constructors

PhotoFilter({Key? key, required File image, List<NamedColorFilter> presets = defaultColorFilters, required IconData cancelIcon, required IconData applyIcon, Color? backgroundColor = Colors.black, Color? sliderColor, TextStyle? sliderLabelStyle, TextStyle? bottomButtonsTextStyle, TextStyle? presetsLabelTextStyle, TextStyle? applyingTextStyle, VoidCallback? onCancel, VoidCallback? onStartApplyingFilter, void onFinishApplyingFilter(File?)?, bool compressImage = false, int? compressQuality})
Creates a new ImageFilterWidget instance.
const

Properties

applyIcon IconData
The icon data for the apply button.
final
applyingTextStyle TextStyle?
The text style for the message displayed while filters are being applied.
final
backgroundColor Color?
The background color of the widget.
final
bottomButtonsTextStyle TextStyle?
The text style for labels on the bottom buttons (e.g., "Presets" and "Manual").
final
cancelIcon IconData
The icon data for the cancel button.
final
compressImage bool
The boolean if image has to be compressed when applying filter.
final
compressQuality int?
The value of the quality for compressing the image.
final
hashCode int
The hash code for this object.
no setterinherited
image File
The image to which filters will be applied.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onCancel VoidCallback?
The call back when tapping on the cancel icon.
final
onFinishApplyingFilter → void Function(File?)?
The call back when applying filter is finished to apply filter and generate new Image.
final
onStartApplyingFilter VoidCallback?
The call back when isolate starts to apply filter and generate new Image.
final
presets List<NamedColorFilter>
A list of named color filters as preset filters.
final
presetsLabelTextStyle TextStyle?
The text style for the labels of the presets
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sliderColor Color?
The color of the sliders used to adjust filter parameters.
final
sliderLabelStyle TextStyle?
The text style for the labels of the sliders.
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → _PhotoFilterState
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, int wrapWidth = 65}) 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