CompactTweetView.fromTweetV2 constructor
CompactTweetView.fromTweetV2(
- TweetV2Response tweet, {
- TextStyle? userNameStyle = defaultCompactUserNameStyle,
- TextStyle? userScreenNameStyle = defaultCompactUserScreenNameStyle,
- TextStyle? textStyle = defaultCompactTextStyle,
- TextStyle? clickableTextStyle = defaultCompactClickableTextStyle,
- TextStyle? retweetInformationTextStyle = defaultCompactRetweetInformationNameStyle,
- TextStyle? quoteUserNameStyle = defaultQuoteUserNameStyle,
- TextStyle? quoteUserScreenNameStyle = defaultQuoteUserScreenNameStyle,
- TextStyle? quoteTextStyle = defaultQuoteTextStyle,
- TextStyle? quoteClickableTextStyle = defaultQuoteClickableTextStyle,
- Color? quoteBorderColor = Colors.grey,
- Color? quoteBackgroundColor = Colors.white,
- Color? backgroundColor = Colors.white,
- double? videoPlayerInitialVolume = 0.0,
- OnTapImage? onTapImage,
- DateFormat? createdDateDisplayFormat,
- bool videoHighQuality = true,
- bool? autoPlayVideo,
- bool? enableVideoFullscreen,
- Color? videoControlBarBgColor,
- Widget? videoPlaceholder,
Implementation
CompactTweetView.fromTweetV2(
TweetV2Response tweet, {
this.userNameStyle = defaultCompactUserNameStyle,
this.userScreenNameStyle = defaultCompactUserScreenNameStyle,
this.textStyle = defaultCompactTextStyle,
this.clickableTextStyle = defaultCompactClickableTextStyle,
this.retweetInformationTextStyle =
defaultCompactRetweetInformationNameStyle,
this.quoteUserNameStyle = defaultQuoteUserNameStyle,
this.quoteUserScreenNameStyle = defaultQuoteUserScreenNameStyle,
this.quoteTextStyle = defaultQuoteTextStyle,
this.quoteClickableTextStyle = defaultQuoteClickableTextStyle,
this.quoteBorderColor = Colors.grey,
this.quoteBackgroundColor = Colors.white,
this.backgroundColor = Colors.white,
this.videoPlayerInitialVolume = 0.0,
this.onTapImage,
this.createdDateDisplayFormat,
this.videoHighQuality = true,
this.autoPlayVideo,
this.enableVideoFullscreen,
this.videoControlBarBgColor,
this.videoPlaceholder,
}) : _tweetVM = TweetVM.fromApiV2Model(tweet, createdDateDisplayFormat);