FlutterImageStack class

Creates a flutter image stack

Inheritance

Constructors

FlutterImageStack({Key? key, required List<String> imageList, double? itemRadius = 25, int? itemCount = 3, required int totalCount, double? itemBorderWidth = 2, Color itemBorderColor = Colors.grey, ImageSource? imageSource = ImageSource.network, bool showTotalCount = true, TextStyle extraCountTextStyle = const TextStyle(color: Colors.black, fontWeight: FontWeight.w600), Color backgroundColor = Colors.white})
Creates a flutter image stack widget.
FlutterImageStack.providers({Key? key, required List<ImageProvider<Object>> providers, double? itemRadius = 25, int? itemCount = 3, required int totalCount, double? itemBorderWidth = 2, Color itemBorderColor = Colors.grey, bool showTotalCount = true, TextStyle extraCountTextStyle = const TextStyle(color: Colors.black, fontWeight: FontWeight.w600), Color backgroundColor = Colors.white})
Creates an flutter image stack by passing list of ImageProvider.
FlutterImageStack.widgets({Key? key, required List<Widget> children, double? itemRadius = 25, int? itemCount = 3, required int totalCount, double? itemBorderWidth = 2, Color itemBorderColor = Colors.grey, bool showTotalCount = true, TextStyle extraCountTextStyle = const TextStyle(color: Colors.black, fontWeight: FontWeight.w600), Color backgroundColor = Colors.white})
Creates a flutter 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 widgets
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
imageList List<String>
List of image urls
final
imageSource ImageSource?
Enum to define the image source.
final
itemBorderColor Color?
Optional field to set the color of circular image/widget border
final
itemBorderWidth double?
Optional field to set the circular image/widget border width
final
itemCount int?
Count of the number of images/widgets to be shown
final
itemRadius double?
item radius for the circular image/widget
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
providers List<ImageProvider<Object>>
List of ImageProvider eg. AssetImage, FileImage, NetworkImage
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

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