Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1846)

Unified Diff: sky/sdk/lib/editing/input.dart

Issue 1233703003: add initState, rename animated_container (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: remove print statement Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sky/sdk/lib/editing/input.dart
diff --git a/sky/sdk/lib/editing/input.dart b/sky/sdk/lib/editing/input.dart
index ddcd2e9406d1f3787dea1a00a7938c698bbca03d..639b8bff60fd6410f3358ce99e011d20b7cae9b1 100644
--- a/sky/sdk/lib/editing/input.dart
+++ b/sky/sdk/lib/editing/input.dart
@@ -20,17 +20,20 @@ class Input extends StatefulComponent {
this.placeholder,
this.onChanged,
this.focused})
- : super(key: key) {
+ : super(key: key);
+
+ String placeholder;
+ ValueChanged onChanged;
+ bool focused = false;
+
+ void initState() {
_editableValue = new EditableString(
text: _value,
onUpdated: _handleTextUpdated
);
+ super.initState();
}
- String placeholder;
- ValueChanged onChanged;
- bool focused = false;
-
void syncFields(Input source) {
placeholder = source.placeholder;
onChanged = source.onChanged;

Powered by Google App Engine
This is Rietveld 408576698