AntdSearchBar class

@t 搜索框 @g 信息录入 @o 53 @d 搜索场景的输入框组件。。 @u 在信息池中缩小范围,快速而轻松地获取目标信息。

Inheritance

Constructors

AntdSearchBar.new({Key? key, AntdSearchBarStyle? style, AntdStyleBuilder<AntdSearchBarStyle, AntdSearchBar>? styleBuilder, Widget? extra, bool autoClear = true, bool autoFocus = true, bool showExtra = false, bool clearable = true, Widget? prefix, VoidCallback? onClear, ValueChanged<String?>? onChange, VoidCallback? onExtraTap, Widget? placeholder, AntdSearchBarController? controller, bool readOnly = false, bool lazy = false, Duration duration = const Duration(milliseconds: 200)})
const

Properties

autoClear bool
点击取消按钮后是否清空输入框
final
autoFocus bool
自动获取焦点
final
clearable bool
是否启用清除图标,点击清除图标后会清空输入框
final
controller AntdSearchBarController?
搜索控制器
final
duration Duration
动画时长
final
extra Widget?
取消按钮的文案
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
lazy bool
只有当激活后才出现输入框
final
onChange ValueChanged<String?>?
值变更
final
onClear VoidCallback?
点击清除按钮后触发
final
onExtraTap VoidCallback?
点击额外区域时触发
final
placeholder Widget?
提示文本
final
prefix Widget?
前缀
final
readOnly bool
只读模式
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showExtra bool
点击取消按钮后是否清空输入框
final
style AntdSearchBarStyle?
样式
finalinherited
styleBuilder AntdStyleBuilder<AntdSearchBarStyle, AntdSearchBar>?
动态样式
finalinherited

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<StatefulWidget>
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
getDefaultStyle(BuildContext context, AntdTheme theme, AntdMapToken token) AntdSearchBarStyle
override
getFinalStyle(BuildContext context, AntdSearchBarStyle style, AntdMapToken token) AntdSearchBarStyle
inherited
getInputStyle(BuildContext context) AntdSearchBarStyle?
inherited
getStyle(BuildContext context) AntdSearchBarStyle
inherited
getStyleBuilder(BuildContext context) AntdStyleBuilder<AntdSearchBarStyle, AntdSearchBar>?
inherited
getThemeStyle(BuildContext context, AntdTheme theme) AntdStyleBuilder<AntdSearchBarStyle, AntdSearchBar>?
override
getWidget(BuildContext context) AntdSearchBar
override
margeStyle(AntdSearchBarStyle defaultStyle, AntdSearchBarStyle? style) AntdSearchBarStyle
override
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