ProductPicture class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- ProductPicture
Constructors
-
ProductPicture.fromImageProvider({required ImageProvider<
Object> imageProvider, required Size size, String? fallbackUrl, VoidCallback? onTap, String? heroTag, bool showObsoleteIcon = false, bool showOwnerIcon = false, BorderRadius? borderRadius, double imageFoundBorder = 0.0, double imageNotFoundBorder = 0.0, TextStyle? errorTextStyle, WidgetBuilder? noImageBuilder, bool blurFilter = true}) - ProductPicture.fromProduct({required Product product, required ImageField imageField, required Size size, OpenFoodFactsLanguage? language, bool allowAlternativeLanguage = false, String? fallbackUrl, VoidCallback? onTap, String? heroTag, bool showObsoleteIcon = false, bool showOwnerIcon = false, BorderRadius? borderRadius = const BorderRadius.all(Radius.circular(14.0)), double imageFoundBorder = 0.0, double imageNotFoundBorder = 0.0, TextStyle? errorTextStyle, WidgetBuilder? noImageBuilder, bool blurFilter = true})
- ProductPicture.fromTransientFile({required TransientFile transientFile, required Size size, OpenFoodFactsLanguage? language, bool allowAlternativeLanguage = false, Product? product, ImageField? imageField, String? fallbackUrl, VoidCallback? onTap, String? heroTag, bool showObsoleteIcon = false, bool showOwnerIcon = false, BorderRadius? borderRadius, double imageFoundBorder = 0.0, double imageNotFoundBorder = 0.0, TextStyle? errorTextStyle, WidgetBuilder? noImageBuilder, bool blurFilter = true})
Properties
- allowAlternativeLanguage → bool
-
When an image is unavailable in the language or product main language,
we try to find another one in an alternative language.
final
- blurFilter → bool
-
final
- borderRadius → BorderRadius?
-
Rounded borders around the image
final
- errorTextStyle → TextStyle?
-
Style when there is no image/an error
final
- fallbackUrl → String?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- heroTag → String?
-
final
- imageField → ImageField?
-
final
- imageFoundBorder → double
-
final
- imageNotFoundBorder → double
-
final
-
imageProvider
→ ImageProvider<
Object> ? -
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- language → OpenFoodFactsLanguage?
-
final
- noImageBuilder → WidgetBuilder?
-
Allows to change the placeholder
final
- onTap → VoidCallback?
-
final
- product → Product?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showObsoleteIcon → bool
-
Show the obsolete icon on top of the image
final
- showOwnerIcon → bool
-
Show the owner icon on top of the image
final
- size → Size
-
final
- transientFile → TransientFile?
-
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< ProductPicture> -
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
Static Methods
-
generateHeroTag(
String barcode, ImageField imageField) → String