/flutter_slider_view

A slider view widget that supports custom type models and various configs.

Primary LanguageDartApache License 2.0Apache-2.0

Slider View

All Contributors

pub package GitHub GitHub stars FlutterCandies

A slider view widget that supports custom type models and various configs.

Features ✨

  • ⚡️ Support infinity scrolling
  • 🎛 Control layout size from either Aspect Ratio or Width * Height
  • 🖲 Displays indicators
  • 💻 Desktop support

Preparing for use 🍭

flutter pub add slider_view

Usage 📖

Widget _buildSliderView(BuildContext context) {
  return SliderView(
    config: SliderViewConfig<String>(
      aspectRatio: 16 / 9,
      models: models,
      itemBuilder: (String model) => Center(
        child: Text(
          model,
          style: Theme.of(context).textTheme.headline3,
        ),
      ),
    ),
  );
}

See SliderViewConfig for more details.

Contributors ✨

Many thanks to these wonderful people (emoji key):

Alex Li
Alex Li

💻 🎨 📖 💡 🤔 🚧 💬 👀
moxiaov587
moxiaov587

💻 💡

This project follows the all-contributors specification. Contributions of any kind welcomed!!