rotating_carousel 0.0.1 copy "rotating_carousel: ^0.0.1" to clipboard
rotating_carousel: ^0.0.1 copied to clipboard

A package for implementing a carousel like look and feel in flutter apps.

example/lib/main.dart

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

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

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: SafeArea(
        child: Scaffold(
          body: Center(
            child: RotatingCarousel(
              panels: [
                Container(
                  // height: 100,
                  decoration: const BoxDecoration(color: Colors.red),
                ),
                Image.asset(
                  "assets/images/person.jpeg",
                  fit: BoxFit.fill,
                ),
                Image.asset(
                  "assets/images/person1.jpeg",
                  fit: BoxFit.fill,
                ),
                Image.asset(
                  "assets/images/person2.jpeg",
                  fit: BoxFit.fill,
                ),
              ],
              height: 250,
              width: 350,
              minRatio: 0.9,
              overlapRatio: -0.3,
            ),
          ),
        ),
      ),
    );
  }
}
16
likes
160
pub points
77%
popularity

Publisher

unverified uploader

A package for implementing a carousel like look and feel in flutter apps.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on rotating_carousel