InquiryStyle class

Constructors

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})
const

Properties

crossAxisAlignment CrossAxisAlignment
The Inquiry's Column alignment on horizontal axis default CrossAxisAlignment.center
final
hashCode int
The hash code for this object.
no setterinherited
heightBetweenOptions double
The height between the options. The default value is 8.
final
heightBetweenOptionsAndMeta double
The height between the options and the Metadata. The default value is 8.
final
heightBetweenTitleAndOptions double
The height between the title and the options. The default value is 12.
final
mainAxisAlignment MainAxisAlignment
The Inquiry's Column alignment on vertical axis default CrossAxisAlignment.start
final
optionsBackgroundColor Color?
Color of a InquiryOption. The color is the same for all options. Defaults to Theme.of(context).canvasColor.
final
optionsBorder BoxBorder?
Border of a InquiryOption. The border is the same for all options. You can define the border for the rightAnswer with rightAnswerBorder Defaults to null.
final
optionsBorderRadius BorderRadius?
Border radius of an InquiryOption. Defaults to 0.
final
optionsHeight double
Height of an InquiryOption. Defaults to 36.
final
optionsSplashColor Color?
Splashes a InquiryOption when the user taps it. Defaults to Theme.of(context).primaryColorLight.
final
optionsWidth double?
Width of an InquiryOption. The width is the same for all options. If not specified, the width is the width of the inquiry.
final
rightAnswerBorder BoxBorder?
Border of the inquiry's right answer. Defaults to null.
final
rightBackgroundColor Color?
Color of the background of a InquiryOption when the user has voted. Defaults to Theme.of(context).canvasColor.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
totalAsPercent bool
Use if you want to display the total for each row as percent.
final
voteButtonStyle ButtonStyle?
The style for the ElevatedButton that triggers the vote action preferentially to be an ElevatedButton.style default:
final
votedAnimationDuration int
Animation duration of the progress bar of the InquiryOption's when the user has voted. Defaults to 1000 milliseconds. If the animation duration is too short, the progress bar will not animate. If you don't want the progress bar to animate, set this to 0.
final
votedInquiryPercentRadius Radius?
Radius of the border of a InquiryOption when the user has voted. Defaults to Radius.circular(8).
final
votedPercentageTextStyle TextStyle?
TextStyle of the percentage of a InquiryOption when the user has voted.
final
votedRightProgressColor Color?
Color of the progress bar of a InquiryOption when the user has voted and is right answer. Defaults to Theme.of(context).primaryColor.
final
votedWrongProgressColor Color?
Color of the progress bar of a InquiryOption when the user has voted and is not right answer. Defaults to Theme.of(context).colorScheme.error.
final
voteInProgressColor Color?
Color of the background of a InquiryOption when the user clicks to vote and its still in progress. Defaults to Theme.of(context).colorScheme.primaryColorLight.
final
votesTextStyle TextStyle?
votesTextStyle is the text style of the votesText text and totalVotes. If not specified, the default text style is used.
final
wrongBackgroundColor Color?
Color of the background of a InquiryOption when the user has voted. Defaults to Theme.of(context).canvasColor.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited