BrnAppraise class

/// /// /// /// /// /// /// /// / 描述: 评价组件

  1. 支持表情包和星星两种
  2. 最多支持5个表情和5颗星
  3. 支持自定义title,标签等,在BrnAppraiseConfig里配置
  4. 可以用在页面里面也可以使用在弹窗里面,使用在底部弹窗的参考BrnAppraiseBottomPicker /// /// /// /// /// /// /// /// /
Inheritance
Available Extensions

Constructors

BrnAppraise({Key? key, String title = '', BrnAppraiseHeaderType headerType = BrnAppraiseHeaderType.spaceBetween, BrnAppraiseType type = BrnAppraiseType.star, List<String>? iconDescriptions, List<String>? tags, String inputHintText = '', BrnAppraiseConfirmClick? onConfirm, BrnAppraiseConfig config = const BrnAppraiseConfig()})
create BrnAppraise

Properties

config BrnAppraiseConfig
评价组件的配置项
final
hashCode int
The hash code for this object.
no setterinherited
headerType BrnAppraiseHeaderType
标题类型,取值BrnAppraiseHeaderType center 标题居中 spaceBetween 标题和关闭居于两侧 默认值BrnAppraiseHeaderType.spaceBetween
final
iconDescriptions List<String>?
自定义文案 若评分组件为表情,则list长度为5,不足5个时请在对应位置补空字符串 若评分组件为星星,则list长度不能比count小
final
inputHintText String
输入框允许提示文案
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onConfirm BrnAppraiseConfirmClick?
提交按钮的点击回调
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tags List<String>?
标签
final
title String
标题
final
type BrnAppraiseType
评分组件类型,取值BrnAppraiseType Emoji 表示使用表情包评价 star 使用星星打分 默认值 BrnAppraiseType.Star
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → _BrnAppraiseState
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

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