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

outdated

A package that is forked from carousel pro has been migrated to null safety and some improvements

example/lib/main.dart

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

void main() {
  runApp(
    const MaterialApp(
      debugShowCheckedModeBanner: true,
      title: 'Carousel Pro',
      home: CarouselPage(),
    ),
  );
}

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

  @override
  Widget build(BuildContext context) {
    return const Scaffold(
      body: Center(
        child: SizedBox(
          height: 150.0,
          width: 300.0,
          child: LightCarousel(
            boxFit: BoxFit.cover,
            autoPlay: false,
            animationCurve: Curves.fastOutSlowIn,
            animationDuration: Duration(milliseconds: 1000),
            dotSize: 6.0,
            dotIncreasedColor: Color(0xFFFF335C),
            dotBgColor: Colors.transparent,
            dotPosition: DotPosition.topRight,
            dotVerticalPadding: 10.0,
            showIndicator: true,
            indicatorBgPadding: 7.0,
            images: [
              NetworkImage(
                  'https://cdn-images-1.medium.com/max/2000/1*GqdzzfB_BHorv7V2NV7Jgg.jpeg'),
              NetworkImage(
                  'https://cdn-images-1.medium.com/max/2000/1*wnIEgP1gNMrK5gZU7QS0-A.jpeg'),
              ExactAssetImage("assets/flutter.jpg"),
            ],
          ),
        ),
      ),
    );
  }
}
7
likes
0
points
32
downloads

Publisher

verified publisherproblemsolved-os.blogspot.com

Weekly Downloads

A package that is forked from carousel pro has been migrated to null safety and some improvements

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on light_carousel