ImageStack class

Creates an array of circular images stacked over each other

Inheritance

Constructors

ImageStack({Key? key, required List<String> imageList, double? imageRadius = 25, int? imageCount = 3, required int totalCount, double? imageBorderWidth = 2, Color? imageBorderColor = Colors.grey, ImageSource? imageSource = ImageSource.Network, bool showTotalCount = true, TextStyle extraCountTextStyle = const TextStyle(color: Colors.black, fontWeight: FontWeight.w600), Color? extraCountBorderColor, Color backgroundColor = Colors.white})
Creates a image stack widget.
ImageStack.providers({Key? key, required List<ImageProvider<Object>> providers, double? imageRadius = 25, int? imageCount = 3, required int totalCount, double? imageBorderWidth = 2, Color? imageBorderColor = Colors.grey, bool showTotalCount = true, TextStyle extraCountTextStyle = const TextStyle(color: Colors.black, fontWeight: FontWeight.w600), Color? extraCountBorderColor, Color backgroundColor = Colors.white})
Creates an image stack by passing list of ImageProvider.
ImageStack.widgets({Key? key, required List<Widget> children, double? widgetRadius = 25, int? widgetCount = 3, required int totalCount, double? widgetBorderWidth = 2, Color widgetBorderColor = Colors.grey, bool showTotalCount = true, TextStyle extraCountTextStyle = const TextStyle(color: Colors.black, fontWeight: FontWeight.w600), Color? extraCountBorderColor, Color backgroundColor = Colors.white})
Creates a image stack widget by passing list of custom widgets.

Properties

backgroundColor Color
Set the background color of the circle
final
children List<Widget>
Custom widget list passed to render circular images
final
extraCountBorderColor Color?
Optional field to set the color of circular extra count
final
extraCountTextStyle TextStyle
The text style to apply if there is any extra count to be shown
final
hashCode int
The hash code for this object.
no setterinherited
imageBorderColor Color?
Optional field to set the color of circular image border
final
imageBorderWidth double?
Optional field to set the circular image border width
final
imageCount int?
Count of the number of images to be shown
final
imageList List<String>
List of image urls
final
imageRadius double?
Image radius for the circular image
final
imageSource ImageSource?
Enum to define the image source.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
providers List<ImageProvider<Object>>
List of ImageProvider
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showTotalCount bool
To show the remaining count if the provided list size is less than totalCount
final
totalCount int
Total count will be used to determine the number of circular images to be shown along with showing the remaining count in an additional circle
final
widgetBorderColor Color?
Optional field to set the color of circular border when children is passed
final
widgetBorderWidth double?
Optional field to set the circular border width when children is passed
final
widgetCount int?
Count of the number of widget to be shown as circular images when children is passed
final
widgetRadius double?
Radius for the circular image to applied when children is passed
final

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
circularImage(String imageUrl) Widget
circularItem(dynamic item) Widget
circularProviders(ImageProvider<Object> imageProvider) Widget
circularWidget(Widget widget) → dynamic
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
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
imageProvider(dynamic imageUrl) → dynamic
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