SettingBar class

Inheritance

Constructors

SettingBar({Key? key, List<SettingBarItem>? items, EdgeInsetsGeometry itemPadding = const EdgeInsets.only(left: 15, right: 8, top: 10, bottom: 10), EdgeInsetsGeometry iconMargin = const EdgeInsets.only(right: 8), EdgeInsetsGeometry? textPadding, EdgeInsets secondaryPadding = const EdgeInsets.only(left: 6, right: 6), EdgeInsetsGeometry? markPadding, EdgeInsetsGeometry? markIconMargin, Color? textColor, double? textSize, bool? textBold, Color? secondaryColor, double? secondarySize, bool? secondaryBold, Color? markColor, double? markSize, bool? markBold, Color backgroundColor = Colors.white, String backgroundImage = "", BoxFit? backgroundImageFit, EdgeInsetsGeometry? margin, BorderRadiusGeometry borderRadius = const BorderRadius.all(Radius.circular(8)), Color borderColor = const Color(0xffe5e5e5), double borderWidth = 0.8, SettingBarItemClick? itemClick, bool isVisibilityDivider = true, Color dividerColor = const Color(0xffd1d1d1), double dividerHeight = 1, EdgeInsetsGeometry dividerPadding = const EdgeInsets.only(left: 10, right: 10)})
const

Properties

backgroundColor Color
SettingBar组件背景颜色
final
backgroundImage String
SettingBar组件背景图片
final
backgroundImageFit BoxFit?
SettingBar组件背景图片填充方式
final
borderColor Color
SettingBar边框颜色
final
borderRadius BorderRadiusGeometry
SettingBar圆角半径(默认8.0)
final
borderWidth double
SettingBar边框宽度
final
dividerColor Color
分割线颜色
final
dividerHeight double
分割线高度
final
dividerPadding EdgeInsetsGeometry
分割线左右边距
final
hashCode int
The hash code for this object.
no setterinherited
iconMargin EdgeInsetsGeometry
栏目图标外边距
final
isVisibilityDivider bool
是否显示分割线(默认显示)
final
itemClick SettingBarItemClick?
栏目事件回调
final
itemPadding EdgeInsetsGeometry
栏目内边距
final
items List<SettingBarItem>?
配置项集合
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
margin EdgeInsetsGeometry?
SettingBar外边距
final
markBold bool?
栏目标注文本加粗
final
markColor Color?
栏目标注文本颜色
final
markIconMargin EdgeInsetsGeometry?
栏目标注图标外边距
final
markPadding EdgeInsetsGeometry?
栏目标注文本内边距
final
markSize double?
栏目标注文本大小
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
secondaryBold bool?
栏目二级文本加粗
final
secondaryColor Color?
栏目二级文本颜色
final
secondaryPadding EdgeInsets
栏目二级文本内边距
final
secondarySize double?
栏目二级文本大小 当secondaryDirection==SecondaryDirection.bottom时,secondarySize最大值为10
final
textBold bool?
栏目文本加粗
final
textColor Color?
栏目文本颜色
final
textPadding EdgeInsetsGeometry?
栏目文本内边距
final
textSize double?
栏目文本大小
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → _SettingBarState
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, int wrapWidth = 65}) 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