forked from firka/flutter
Settings menu item in stock2 doesn't work
The underlying problem is that we lacked a RenderObjectWrapper for the RenderView, which meant we couldn't handle changing the RenderObject that was the root of the RenderView. This CL introduces a RenderViewWrapper and uses it in a new AppContainer widget root. This change allows us to make App a non-magical Component that is inserted into the AppContainer in the newly introduced runApp function. R=ianh@google.com Review URL: https://codereview.chromium.org/1184823006.
This commit is contained in:
@@ -51,5 +51,5 @@ class ContainerApp extends App {
|
||||
}
|
||||
|
||||
void main() {
|
||||
new ContainerApp();
|
||||
runApp(new ContainerApp());
|
||||
}
|
||||
|
||||
@@ -11,5 +11,5 @@ class HelloWorldApp extends App {
|
||||
}
|
||||
|
||||
void main() {
|
||||
new HelloWorldApp();
|
||||
runApp(new HelloWorldApp());
|
||||
}
|
||||
|
||||
@@ -73,5 +73,5 @@ class NavigationExampleApp extends App {
|
||||
}
|
||||
|
||||
void main() {
|
||||
App app = new NavigationExampleApp();
|
||||
runApp(new NavigationExampleApp());
|
||||
}
|
||||
|
||||
@@ -137,7 +137,7 @@ class SectorApp extends App {
|
||||
}
|
||||
|
||||
void main() {
|
||||
App app = new SectorApp();
|
||||
runApp(new SectorApp());
|
||||
WidgetAppView.appView.onFrame = () {
|
||||
// uncomment this for debugging:
|
||||
// WidgetAppView.appView.debugDumpRenderTree();
|
||||
|
||||
Reference in New Issue
Block a user