swift_slides 1.0.2 copy "swift_slides: ^1.0.2" to clipboard
swift_slides: ^1.0.2 copied to clipboard

A highly customizable and powerful carousel widget for Flutter.

example/swift_slides_example.dart

import 'package:flutter/material.dart';
import 'package:swift_slides/swift_slides.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: Text('Advanced Carousel Example'),
        ),
        body: Center(
          child: AdvancedCarousel(
            items: [
              Container(color: Colors.red),
              Container(color: Colors.green),
              Container(color: Colors.blue),
            ],
            height: 250.0,
            autoPlay: true,
            infiniteScroll: true,
            transitionCurve: Curves.easeInOut,
            transitionDuration: Duration(seconds: 1),
            showIndicator: true,
            indicatorColor: Colors.white,
            indicatorAlignment: Alignment.bottomCenter,
          ),
        ),
      ),
    );
  }
}
0
likes
0
points
43
downloads

Publisher

unverified uploader

Weekly Downloads

A highly customizable and powerful carousel widget for Flutter.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on swift_slides