Import
import 'package:flutter/widgets.dart';
import 'package:fluttyui/fluttyui.dart' as ui;API Reference
The declarations below match the current FluttyUI source. Types are shown without the optional ui. import prefix.
Carousel
const Carousel({
super.key,
required this.images,
this.thumbnails,
this.mode = CarouselMode.inPlace,
this.initialIndex = 0,
this.height = 360,
this.thumbnailSize = 64,
this.thumbnailSpacing = 8,
this.borderRadius = 16,
this.fit = BoxFit.cover,
this.thumbnailFit = BoxFit.cover,
this.backgroundColor = const Color(0xFFEAEAE7),
this.controlColor = const Color(0xFF006FEE),
this.controlBackgroundColor = const Color(0xE6FFFFFF),
this.showThumbnails = true,
this.showIndicators = true,
this.showControls = true,
this.onPageChanged,
this.onClose,
});| Parameter | Type | Required | Default |
|---|---|---|---|
key | Key? | No | null |
images | List<ImageProvider<Object>> | Yes | — |
thumbnails | List<ImageProvider<Object>>? | No | null |
mode | CarouselMode | No | CarouselMode.inPlace |
initialIndex | int | No | 0 |
height | double | No | 360 |
thumbnailSize | double | No | 64 |
thumbnailSpacing | double | No | 8 |
borderRadius | double | No | 16 |
fit | BoxFit | No | BoxFit.cover |
thumbnailFit | BoxFit | No | BoxFit.cover |
backgroundColor | Color | No | const Color(0xFFEAEAE7) |
controlColor | Color | No | const Color(0xFF006FEE) |
controlBackgroundColor | Color | No | const Color(0xE6FFFFFF) |
showThumbnails | bool | No | true |
showIndicators | bool | No | true |
showControls | bool | No | true |
onPageChanged | ValueChanged<int>? | No | null |
onClose | VoidCallback? | No | null |
Application Setup
Place components under FluttyApp to provide theme, navigation, localization, and overlay defaults. Use theme tokens for shared appearance settings.
Source
lib/src/widgets/data_display/carousel/carousel.dart
This reference is generated from the Carousel declaration in the FluttyUI core checkout. The component catalog lists the other available building blocks.

