PopupTextField class
PopupTextField
텍스트 필드를 누르면 팝업창이 뜨고, 입력한 값을 받아서 텍스트 필드에 표시한다.
label 텍스트 필드의 라벨
typeHint 텍스트 필드의 타입힌트
텍스트 필드에 아무것도 입력되지 않았을 때 표시되는 텍스트. 사용자가 무언가를 입력거나, 옵션에서 initialValue
가 지정되면 사라진다.
controller PopupTextField 의 컨트롤러. 이 컨트롤러가 TextField 에 사용되지만, 기본적으로는 PopupTextField 에서 사용된다. 이 컨트롤러에 초기 값을 지정하면, 텍스트 필드에 표시되된다. 그리고 팝업창에서 기본적으로 이 값이 입력되어져 보인다. 만약, 사용자가 터치했을 때 이 값이 없어지기를 바란다면, typeHint를 사용하면 된다.
onChange 텍스트 필드의 값이 변경될 때 호출되는 콜백함수.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- PopupTextField
Constructors
- PopupTextField({Key? key, required TextEditingController controller, required String label, required String typeHint, required void onChange(String)})
-
const
Properties
- controller → TextEditingController
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- label → String
-
final
- onChange → void Function(String)
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- typeHint → String
-
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< PopupTextField> -
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