InquiryStyle constructor

const InquiryStyle({
  1. double optionsHeight = 36,
  2. double? optionsWidth,
  3. BorderRadius? optionsBorderRadius = BorderRadius.zero,
  4. Radius? votedInquiryPercentRadius = Radius.zero,
  5. BoxBorder? optionsBorder = const Border(),
  6. BoxBorder? rightAnswerBorder = const Border(),
  7. Color? optionsBackgroundColor,
  8. Color? wrongBackgroundColor,
  9. Color? rightBackgroundColor,
  10. Color? optionsSplashColor,
  11. Color? votedWrongProgressColor,
  12. Color? votedRightProgressColor,
  13. Color? voteInProgressColor,
  14. TextStyle? votedPercentageTextStyle = const TextStyle(fontSize: 14),
  15. int votedAnimationDuration = 0,
  16. double heightBetweenTitleAndOptions = 12,
  17. double heightBetweenOptions = 8,
  18. double heightBetweenOptionsAndMeta = 8,
  19. TextStyle? votesTextStyle = const TextStyle(fontSize: 14, fontWeight: FontWeight.w500),
  20. CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center,
  21. MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start,
  22. ButtonStyle? voteButtonStyle,
  23. 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,
});