DecoratorBoxState class

Widget 装饰器 动态焦点样式

Inheritance
Available Extensions

Constructors

DecoratorBoxState({Key? key, List<DecoratorEntry> suffixes = const [], List<DecoratorEntry> prefixes = const [], BorderType borderType = BorderType.outline, BorderRadius? borderRadius, BorderSide borderSide = const BorderSide(color: Colors.black), BorderSide? focusBorderSide = const BorderSide(color: Colors.red), Widget? header, Widget? footer, EdgeInsetsGeometry? margin, EdgeInsetsGeometry? padding, Color? fillColor, List<BoxShadow>? boxShadow, Gradient? gradient, BoxConstraints? constraints, bool hasFocusChangeBorder = true, required FocusNode? focusNode, required Widget? child})
const
DecoratorBoxState.builder({Key? key, List<DecoratorEntry> suffixes = const [], List<DecoratorEntry> prefixes = const [], BorderType borderType = BorderType.outline, BorderRadius? borderRadius, BorderSide borderSide = const BorderSide(color: Colors.black), BorderSide? focusBorderSide, Widget? header, Widget? footer, EdgeInsetsGeometry? margin, EdgeInsetsGeometry? padding, Color? fillColor, List<BoxShadow>? boxShadow, Gradient? gradient, BoxConstraints? constraints, required DecoratorBoxStateBuilder? builder, bool hasFocusChangeBorder = true})
const

Properties

borderRadius BorderRadius?
边框圆角
final
borderSide BorderSide
边框样式
final
borderType BorderType
边框类型
final
boxShadow List<BoxShadow>?
TextField 阴影
final
builder DecoratorBoxStateBuilder?
final
child Widget?
final
constraints BoxConstraints?
作用于整个组件
final
fillColor Color?
TextField 填充色
final
focusBorderSide BorderSide?
获得焦点时的边框样式
final
focusNode FocusNode?
final
final
gradient Gradient?
TextField 渐变色
final
hasFocusChangeBorder bool
获取焦点修改 border 样式
final
hashCode int
The hash code for this object.
no setterinherited
TextField 头部和尾部挂件
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
margin EdgeInsetsGeometry?
仅作用于 TextField
final
padding EdgeInsetsGeometry?
final
prefixes List<DecoratorEntry>
后缀
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
suffixes List<DecoratorEntry>
前缀
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<DecoratorBoxState>
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