Skip to content
On this page

ImageStack

A layered stack of image previews.

ImageStack in FluttyUIImageStack in FluttyUI dark theme

Import

import 'package:flutter/widgets.dart';
import 'package:fluttyui/fluttyui.dart' as ui;

API Reference

The declarations below match the current FluttyUI source. Types are shown without the optional ui. import prefix.

ImageStack

const ImageStack({
  super.key,
  required this.images,
  this.width = 200,
  this.aspectRatio = 1,
  this.maxVisible = 3,
  this.spacing = 7,
  this.rotation = .045,
  this.borderRadius,
  this.showCount = true,
  this.openViewer = true,
  this.onPressed,
  this.motion,
});
ParameterTypeRequiredDefault
keyKey?Nonull
imagesList<ImageProvider<Object>>Yes—
widthdoubleNo200
aspectRatiodoubleNo1
maxVisibleintNo3
spacingdoubleNo7
rotationdoubleNo.045
borderRadiusdouble?Nonull
showCountboolNotrue
openViewerboolNotrue
onPressedVoidCallback?Nonull
motionComponentMotion?Nonull

Application Setup

Place components under FluttyApp to provide theme, navigation, localization, and overlay defaults. Use theme tokens for shared appearance settings.

Source

lib/src/widgets/media/image_stack/image_stack.dart

This reference is generated from the ImageStack declaration in the FluttyUI core checkout. The component catalog lists the other available building blocks.

DartFlutter

Get started with FluttyUI