AnimatedImageList constructor

const AnimatedImageList({
  1. Key? key,
  2. required List<String> images,
  3. ProviderBuilder? provider,
  4. ProviderBuilder? placeHolder,
  5. ItemBuilder? builder,
  6. double itemExtent = 150,
  7. double maxExtent = 400,
  8. Axis scrollDirection = Axis.vertical,
})

builder for snapping effect list with two static sizes scrollDirection scroll direction for list horizontal or isVertical itemExtent not selected item size required to calculate animations maxExtent selected item size required to calculate animations provider Function which maps an url or image string to an image provider images A list of images url to display in the list by default it accepts urls if custom image needed use provider paramter builder builder function for each item placeHolder Optional function which returns default placeholder for lightbox and error widget if image fails to load

Implementation

const AnimatedImageList(
    {Key? key,
    required this.images,
    this.provider,
    this.placeHolder,
    this.builder,
    this.itemExtent = 150,
    this.maxExtent = 400,
    this.scrollDirection = Axis.vertical})
    : super(key: key);