dynamic_carousel 0.0.1 dynamic_carousel: ^0.0.1 copied to clipboard
An animated carousel swiper supporting adding and removing of items.
Dynamic Carousel is a flutter package that implements a manual swiping carousel. The carousel allows deletion and adding images with a custom slider which displays and hides based on input.
Preview #
Features #
Getting started #
Add the package to the yaml
file.
dynamic_carousel: latestversion
Import the package to your widget tree before using it
import 'package:dynamic_carousel/dynamic_carousel.dart';
Usage #
NB this package is still in production and so is the documentation
List<Widget> carouselItems = [
Container(
width: double.maxFinite,
height: double.maxFinite,
color: Colors.green,
),
Container(
width: double.maxFinite,
height: double.maxFinite,
color: Colors.blue,
),
];
DynamicCarousel(
animationDuration: Duration(milliseconds: 250),
onDelete: (index) {
carouselItems.removeAt(index);
},
children: carouselItems,
),
Additional information #
Contribute to the widget on Github.