SearchTextFieldBar class
圆角搜索框
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- SearchTextFieldBar
- Available extensions
Constructors
- SearchTextFieldBar({Key? key, bool jump = false, String hint = "搜索", required double width, required double height, double? borderRadius, EdgeInsets? margin, EdgeInsets? padding, bool? autofocus, String? heroTag, FocusNode? focusNode, Color splashColor = const Color(0xFFD6D6D6), TextEditingController? controller, dynamic onSubmitted(String text)?, dynamic onChanged(String text)?, dynamic onBackCallback()?, Function? clearCallback, int inputKeyWordsLength = 20, double? iconSize, double? fontSize, bool isShowBackButton = false, Color? color, TextInputType? keyboardType})
-
const
Properties
- autofocus → bool?
-
final
- borderRadius → double?
-
搜索框的圆角
final
- clearCallback → Function?
-
清除搜索回调
final
- color → Color?
-
搜索框底色
final
- controller → TextEditingController?
-
文本输入框控制器
final
- focusNode → FocusNode?
-
文本输入框焦点控制
final
- fontSize → double?
-
输入框文字大小
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double
-
搜索框的高度
final
- heroTag → String?
-
hero过渡动画的tag
final
- hint → String
-
搜索框上显示的文案
final
- iconSize → double?
-
搜索图标大小
final
- inputKeyWordsLength → int
-
输入文本的长度限制
final
- isShowBackButton → bool
-
是否显示左侧的返回键
final
- jump → bool
-
搜索框是否仅用来跳转
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- keyboardType → TextInputType?
-
键盘样式
final
- margin → EdgeInsets?
-
final
- onBackCallback → dynamic Function()?
-
返回键的回调
final
- onChanged → dynamic Function(String text)?
-
输入改变回掉
final
- onSubmitted → dynamic Function(String text)?
-
点击键盘上的回车键的回调
final
- padding → EdgeInsets?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- splashColor → Color
-
如果考虑不需要水波纹效果那么就可以设置颜色为透明色
final
- width → double
-
搜索框的长度
final
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
-
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