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

Unified Diff: sky/framework/fn.dart

Issue 1016093002: Begin work on the PopupMenu entrance animation (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 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
« no previous file with comments | « sky/framework/components/popup_menu_item.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/framework/fn.dart
diff --git a/sky/framework/fn.dart b/sky/framework/fn.dart
index e6983f78e2b0c21f060eeb12e0545a900c598150..974b7f5b277e6f76a1e8e01cb737735c7b3c8b1b 100644
--- a/sky/framework/fn.dart
+++ b/sky/framework/fn.dart
@@ -679,6 +679,10 @@ abstract class Component extends Node {
_syncInternal();
}
+ void scheduleBuild() {
+ setState(() {});
+ }
+
void setState(Function fn()) {
assert(_vdom != null || _defunct); // cannot setState before mounting.
_stateful = true;
« no previous file with comments | « sky/framework/components/popup_menu_item.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698