StoryTray constructor
const
StoryTray({
- Key? key,
- String? thumbnailUrl,
- required Widget title,
- required Widget subtitle,
- VoidCallback? onTap,
- double size = 70,
- double traySize = 120,
- required String roundness,
- double itemSpacing = 5,
- double thumbnailHeight = 100,
- List<
Color> gradientColors = const [Colors.purple, Colors.pink], - VoidCallback? onThumbnailClicked,
- VoidCallback? onStoryShown,
- Color? skeletonColor,
- double? trayItemWidth,
- double? trayItemHeight,
- double? trayGap,
- TrayAlignment? alignment,
- double? trayItemRoundness = 20,
Implementation
const StoryTray({
super.key,
this.thumbnailUrl,
required this.title,
required this.subtitle,
this.onTap,
this.size = 70,
this.traySize = 120,
required this.roundness,
this.itemSpacing = 5,
this.thumbnailHeight = 100,
this.gradientColors = const [
Colors.purple,
Colors.pink,
],
this.onThumbnailClicked,
this.onStoryShown,
this.skeletonColor,
this.trayItemWidth,
this.trayItemHeight,
this.trayGap,
this.alignment,
this.trayItemRoundness = 20,
});