A slider view widget that supports custom type models and various configs.
- ⚡️ Support infinity scrolling
- 🎛 Control layout size from either Aspect Ratio or Width * Height
- 🖲 Displays indicators
- 💻 Desktop support
flutter pub add slider_view
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.
Many thanks to these wonderful people (emoji key):
Alex Li 💻 🎨 📖 💡 🤔 🚧 💬 👀 |
moxiaov587 💻 💡 |
This project follows the all-contributors specification. Contributions of any kind welcomed!!