StoryTray constructor

const StoryTray({
  1. Key? key,
  2. String? thumbnailUrl,
  3. required Widget title,
  4. required Widget subtitle,
  5. VoidCallback? onTap,
  6. double size = 70,
  7. double traySize = 120,
  8. required String roundness,
  9. double itemSpacing = 5,
  10. double thumbnailHeight = 100,
  11. List<Color> gradientColors = const [Colors.purple, Colors.pink],
  12. VoidCallback? onThumbnailClicked,
  13. VoidCallback? onStoryShown,
  14. Color? skeletonColor,
  15. double? trayItemWidth,
  16. double? trayItemHeight,
  17. double? trayGap,
  18. TrayAlignment? alignment,
  19. 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,
});