FlutterInstagramStories constructor

FlutterInstagramStories({
  1. required String collectionDbName,
  2. bool lastIconHighlight = false,
  3. Color lastIconHighlightColor = Colors.deepOrange,
  4. Radius lastIconHighlightRadius = const Radius.circular(15.0),
  5. double? iconWidth,
  6. double? iconHeight,
  7. bool showTitleOnIcon = true,
  8. TextStyle? iconTextStyle,
  9. BoxDecoration? iconBoxDecoration,
  10. BorderRadiusGeometry iconImageBorderRadius = const BorderRadius.all(Radius.circular(15.0)),
  11. EdgeInsets textInIconPadding = const EdgeInsets.only(left: 8.0, right: 8.0, bottom: 8.0),
  12. TextStyle captionTextStyle = const TextStyle(fontSize: 15, color: Colors.white),
  13. EdgeInsets captionMargin = const EdgeInsets.only(bottom: 24),
  14. EdgeInsets captionPadding = const EdgeInsets.symmetric(horizontal: 24, vertical: 8),
  15. int imageStoryDuration = 5,
  16. Color backgroundColorBetweenStories = Colors.black,
  17. Icon? closeButtonIcon,
  18. Color? closeButtonBackgroundColor,
  19. bool sortingOrderDesc = true,
  20. VoidCallback? backFromStories,
  21. ProgressPosition progressPosition = ProgressPosition.top,
  22. bool repeat = true,
  23. bool inline = false,
  24. String languageCode = 'en',
})

Implementation

FlutterInstagramStories(
    {required this.collectionDbName,
    this.lastIconHighlight = false,
    this.lastIconHighlightColor = Colors.deepOrange,
    this.lastIconHighlightRadius = const Radius.circular(15.0),
    this.iconWidth,
    this.iconHeight,
    this.showTitleOnIcon = true,
    this.iconTextStyle,
    this.iconBoxDecoration,
    this.iconImageBorderRadius =
        const BorderRadius.all(Radius.circular(15.0)),
    this.textInIconPadding =
        const EdgeInsets.only(left: 8.0, right: 8.0, bottom: 8.0),
    this.captionTextStyle = const TextStyle(
      fontSize: 15,
      color: Colors.white,
    ),
    this.captionMargin = const EdgeInsets.only(
      bottom: 24,
    ),
    this.captionPadding = const EdgeInsets.symmetric(
      horizontal: 24,
      vertical: 8,
    ),
    this.imageStoryDuration = 5,
    this.backgroundColorBetweenStories = Colors.black,
    this.closeButtonIcon,
    this.closeButtonBackgroundColor,
    this.sortingOrderDesc = true,
    this.backFromStories,
    this.progressPosition = ProgressPosition.top,
    this.repeat = true,
    this.inline = false,
    this.languageCode = 'en'});