Commit a47520a1 authored by Misha Dynin's avatar Misha Dynin

Allow setting of initial value in the Input component.

parent 05c9ca91
...@@ -22,16 +22,17 @@ class Input extends StatefulComponent { ...@@ -22,16 +22,17 @@ class Input extends StatefulComponent {
Input({ Input({
GlobalKey key, GlobalKey key,
String initialValue: '',
this.placeholder, this.placeholder,
this.onChanged, this.onChanged,
this.keyboardType : KeyboardType_TEXT this.keyboardType : KeyboardType_TEXT
}): super(key: key); }): _value = initialValue, super(key: key);
int keyboardType; int keyboardType;
String placeholder; String placeholder;
StringValueChanged onChanged; StringValueChanged onChanged;
String _value = ''; String _value;
EditableString _editableValue; EditableString _editableValue;
KeyboardHandle _keyboardHandle = KeyboardHandle.unattached; KeyboardHandle _keyboardHandle = KeyboardHandle.unattached;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment