Allow setting of initial value in the Input component.

This commit is contained in:
Misha Dynin
2015-09-08 17:35:08 -07:00
parent 05c9ca916e
commit a47520a157

View File

@@ -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;