easy_carousel 0.1.5
easy_carousel: ^0.1.5 copied to clipboard
EasyCarousel is a customizable and developer-friendly Flutter widget that helps you build beautiful carousels and onboarding screens with ease. It supports image sliders, animated page indicators, sty [...]
example/lib/main.dart
import 'package:flutter/material.dart';
import 'package:easy_carousel/easy_carousel.dart';
void main() => runApp(const ExampleApp());
class ExampleApp extends StatelessWidget {
const ExampleApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
leading: BackButton(),
title: const Text('EasyCarousel'),
),
body: EasyCarousel(
imageUrls: [
'https://picsum.photos/id/1011/600/400',
'https://picsum.photos/id/1012/600/400',
'https://picsum.photos/id/1013/600/400',
],
headlineTexts: ['Welcome', 'Explore', 'Enjoy'],
captionTexts: [
'Welcome to EasyCarousel package demo',
'Swipe to explore features',
'Enjoy building carousels!',
],
isNavigationButtonVisible: true,
activeIndicatorDotHeight: 5,
continueButtonText: 'Next',
completeButtonText: 'Get Started',
spaceBetweenImageAndText: 32,
navigationButtonIcon: const Icon(
Icons.arrow_forward,
color: Colors.white,
),
navigationButtonPosition: CarouselPosition.bottomRight,
isIndicatorVisible: true,
indicatorPosition: CarouselPosition.bottomLeft,
onCarouselComplete: () {
print('You finished the carousel!');
},
),
),
);
}
}