flutter_image_carousel_slider
Flutter 图片轮播滑块,实现平滑滑动。在 Flutter 中,轮播滑块是一种 UI 小部件,用于以水平滚动的方式显示一系列项目。
naveenpardeep/flutter_image_slider open-source repository details.
{"sdk":"flutter"}^1.0.0^0.15.0{"sdk":"flutter"}^2.0.0以下为英文项目原文快照,最新内容请访问 GitHub。
Flutter image carousel slider
Fast flutter image carousel slider and smooth slides
A carousel slider in Flutter is a UI widget used to display a series of items horizontally in a scrolling manner, typically with one item visible at a time. It allows users to swipe or scroll through the items, providing a visually appealing and interactive way to navigate content. Image carousels, commonly referred to as sliders, are interactive elements on web pages that showcase multiple images or content pieces in a rotating sequence. Originating as simple photo sliders, their evolution has been influenced significantly by advancements in web technology.
to use this package import the latest package and directly pass the images path like this-->
ImageCarouselSlider(items: imageList),
image
To show images in gallery view just use like this
InkWell(
onTap: () {
Navigator.of(context)
.push(MaterialPageRoute(
builder: (context) {
return ImageListView(
imageList: imageList,
);
}));
},
child:
ImageCarouselSlider(
items: imageList,
imageHeight: 300,
dotColor: Colors.black,
),
),
image
/// To show image carousel left right viewportFraction InkWell( onTap: () { Navigator.of(context) .push(MaterialPageRoute(builder: (context) { return ImageListView( imageList: imageList, ); })); },
///user can add image height and dots color
child: ImageCarouselSliderLeftRightShow(
items: imageList,
imageHeight: 300,
dotColor: Colors.black,
),
),
image
for Asset image AssetImageCarouselSliderLeftRightShow( items: imageList, imageHeight: 300, dotColor: Colors.black, ),
AssetImageCarouselSlider(
items: imageList,
imageHeight: 300,
dotColor: Colors.black,
),
Any help or suggestion contact me naveensheoran1000@gmail.com or telegram @NaveenSheoran777