Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 21 additions & 14 deletions lib/image_stack.dart
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ class ImageStack extends StatelessWidget {
/// Optional field to set the color of circular border when [children] is passed
final Color? widgetBorderColor;

/// Optional field to set the box shadow for individual child when [children] is passed
final List<BoxShadow>? widgetBoxShadow;

/// List of `ImageProvider`
final List<ImageProvider> providers;

Expand All @@ -78,6 +81,7 @@ class ImageStack extends StatelessWidget {
required this.totalCount,
this.imageBorderWidth = 2,
this.imageBorderColor = Colors.grey,
this.widgetBoxShadow,
this.imageSource = ImageSource.Network,
this.showTotalCount = true,
this.extraCountTextStyle = const TextStyle(
Expand Down Expand Up @@ -105,6 +109,7 @@ class ImageStack extends StatelessWidget {
required this.totalCount,
this.widgetBorderWidth = 2,
Color this.widgetBorderColor = Colors.grey,
this.widgetBoxShadow,
this.showTotalCount = true,
this.extraCountTextStyle = const TextStyle(
color: Colors.black,
Expand All @@ -131,6 +136,7 @@ class ImageStack extends StatelessWidget {
this.imageCount = 3,
required this.totalCount,
this.imageBorderWidth = 2,
this.widgetBoxShadow,
this.imageBorderColor = Colors.grey,
this.showTotalCount = true,
this.extraCountTextStyle = const TextStyle(
Expand Down Expand Up @@ -228,6 +234,7 @@ class ImageStack extends StatelessWidget {
color: widgetBorderColor!,
width: widgetBorderWidth!,
),
boxShadow: widgetBoxShadow,
),
child: ClipRRect(
borderRadius: BorderRadius.circular(widgetRadius!),
Expand All @@ -241,13 +248,13 @@ class ImageStack extends StatelessWidget {
height: imageRadius,
width: imageRadius,
decoration: BoxDecoration(
shape: BoxShape.circle,
color: backgroundColor,
border: Border.all(
color: imageBorderColor!,
width: imageBorderWidth!,
),
),
shape: BoxShape.circle,
color: backgroundColor,
border: Border.all(
color: imageBorderColor!,
width: imageBorderWidth!,
),
boxShadow: widgetBoxShadow),
child: Container(
decoration: BoxDecoration(
shape: BoxShape.circle,
Expand All @@ -265,13 +272,13 @@ class ImageStack extends StatelessWidget {
height: imageRadius,
width: imageRadius,
decoration: BoxDecoration(
shape: BoxShape.circle,
color: backgroundColor,
border: Border.all(
color: imageBorderColor!,
width: imageBorderWidth!,
),
),
shape: BoxShape.circle,
color: backgroundColor,
border: Border.all(
color: imageBorderColor!,
width: imageBorderWidth!,
),
boxShadow: widgetBoxShadow),
child: Container(
decoration: BoxDecoration(
shape: BoxShape.circle,
Expand Down