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

outdated

smooth carousel slider with selected center custom widget design.

Create smooth slider with custom center selection widget

Features #

alt text

Installation #

Add smooth_carousel_slider_widget: ^1.0.0 to your pubspec.yaml dependencies. And import it:

import 'package:smooth_carousel_slider_widget/smooth_carousel_slider_widget.dart';

Usage #

Simply create a SmoothCarouselSlider widget, and pass the required params:

SmoothCarouselSlider(
        itemCount: 11,
        initialSelectedIndex: 5,
        itemExtent: 80,
        selectedWidget: (index) => Padding(
          padding: const EdgeInsets.symmetric(horizontal: 8),
          child: Container(
            height: 40,
            color: Colors.pinkAccent,
          ),
        ),
        unSelectedWidget: (index) => Padding(
        padding: const EdgeInsets.symmetric(horizontal: 8),
            child: Container(
            height: 40,
            color: Colors.purpleAccent,
          ),
        ),
        onSelectedItemChanged: (index) => debugPrint('$index'),
      )

6
likes
0
pub points
64%
popularity

Publisher

unverified uploader

smooth carousel slider with selected center custom widget design.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on smooth_carousel_slider_widget