InquiryStyle constructor
const
InquiryStyle({
- double optionsHeight = 36,
- double? optionsWidth,
- BorderRadius? optionsBorderRadius = BorderRadius.zero,
- Radius? votedInquiryPercentRadius = Radius.zero,
- BoxBorder? optionsBorder = const Border(),
- BoxBorder? rightAnswerBorder = const Border(),
- Color? optionsBackgroundColor,
- Color? wrongBackgroundColor,
- Color? rightBackgroundColor,
- Color? optionsSplashColor,
- Color? votedWrongProgressColor,
- Color? votedRightProgressColor,
- Color? voteInProgressColor,
- TextStyle? votedPercentageTextStyle = const TextStyle(fontSize: 14),
- int votedAnimationDuration = 0,
- double heightBetweenTitleAndOptions = 12,
- double heightBetweenOptions = 8,
- double heightBetweenOptionsAndMeta = 8,
- TextStyle? votesTextStyle = const TextStyle(fontSize: 14, fontWeight: FontWeight.w500),
- CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center,
- MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start,
- ButtonStyle? voteButtonStyle,
- bool totalAsPercent = false,
Implementation
const InquiryStyle({
this.optionsHeight = 36,
this.optionsWidth,
this.optionsBorderRadius = BorderRadius.zero,
this.votedInquiryPercentRadius = Radius.zero,
this.optionsBorder = const Border(),
this.rightAnswerBorder = const Border(),
this.optionsBackgroundColor,
this.wrongBackgroundColor,
this.rightBackgroundColor,
this.optionsSplashColor,
this.votedWrongProgressColor,
this.votedRightProgressColor,
this.voteInProgressColor,
this.votedPercentageTextStyle = const TextStyle(
fontSize: 14,
),
this.votedAnimationDuration = 0,
this.heightBetweenTitleAndOptions = 12,
this.heightBetweenOptions = 8,
this.heightBetweenOptionsAndMeta = 8,
this.votesTextStyle = const TextStyle(
fontSize: 14,
fontWeight: FontWeight.w500,
),
this.crossAxisAlignment = CrossAxisAlignment.center,
this.mainAxisAlignment = MainAxisAlignment.start,
this.voteButtonStyle,
this.totalAsPercent = false,
});