flutter_slide_builder 0.0.3
flutter_slide_builder: ^0.0.3 copied to clipboard
A customizable slide builder widget for Flutter with auto-slide, animated page indicators, and touch control.
flutter_slide_builder #
A lightweight Flutter widget for building beautiful, animated image or widget slides with optional auto-play and customizable indicator dots.
Demo #

✨ Features #
- Simple slide builder with
PageView - Optional auto slide feature with direction reverse
- Customizable indicator dots
- Tap or drag interaction pauses/resumes auto-sliding
- Flexible layout support with
LayoutBuilder
🚀 Installation #
Add this to your pubspec.yaml:
dependencies:
flutter_slide_builder: ^0.0.3
Usage #
SizedBox(
height: 300,
child: SlideBuilder(
children: _slides.map((e) => _buildPageSlide(e)).toList(),
),
),
Children list of slide widget
SlideBuilder(
children: [
_buildPageSlide(),
_buildPageSlide(),
_buildPageSlide(),
_buildPageSlide(),
_buildPageSlide(),
],
),
dotSlideBuilder Build custom dot slider
SlideBuilder(
dotSlideBuilder: (isActive) => AnimatedContainer(
color: isActive ? Colors.red : Colors.amber,
width: isActive ? 10 : 5,
height: 5,
),
),
Auto Slide Behavior
SlideBuilder(
AutoSlide(
duration: Duration(seconds: 4),
curve: Curves.easeInOut,
)
),
Indicator Dot Behavior
SlideBuilder(
hideSlideDot : true // hide dot on bottom of slide
),
Indicator Dot Behavior
SlideBuilder(
hideSlideDot : true // hide dot on bottom of slide
),
Dot Spacing
SlideBuilder(
dotSpaceFromBottom : 10 // optional
),
Default Slide Show
SlideBuilder(
defaultSlideIndexActive : 1 // optional, default slide index show
),
Contributing #
Contributions are welcome! Please open issues or submit pull requests for improvements or fixes.
Contact #
- GitHub: horlengg
- Portfolio: horleng.vercel.app
Feel free to open issues or pull requests if you'd like to contribute or report bugs.