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 {
Input({
GlobalKey key,
String initialValue: '',
this.placeholder,
this.onChanged,
this.keyboardType : KeyboardType_TEXT
}): super(key: key);
}): _value = initialValue, super(key: key);
int keyboardType;
String placeholder;
StringValueChanged onChanged;
String _value = '';
String _value;
EditableString _editableValue;
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