FlutterInstagramStories constructor
FlutterInstagramStories({
- required String collectionDbName,
- bool lastIconHighlight = false,
- Color lastIconHighlightColor = Colors.deepOrange,
- Radius lastIconHighlightRadius = const Radius.circular(15.0),
- double? iconWidth,
- double? iconHeight,
- bool showTitleOnIcon = true,
- TextStyle? iconTextStyle,
- BoxDecoration? iconBoxDecoration,
- BorderRadiusGeometry iconImageBorderRadius = const BorderRadius.all(Radius.circular(15.0)),
- EdgeInsets textInIconPadding = const EdgeInsets.only(left: 8.0, right: 8.0, bottom: 8.0),
- int imageStoryDuration = 5,
- Color backgroundColorBetweenStories = Colors.black,
- Icon? closeButtonIcon,
- Color? closeButtonBackgroundColor,
- bool sortingOrderDesc = true,
- VoidCallback? backFromStories,
- ProgressPosition progressPosition = ProgressPosition.top,
- bool repeat = true,
- bool inline = false,
- 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'});