mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00

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.
16 lines
351 B
Dart
16 lines
351 B
Dart
// Copyright 2015 The Chromium Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
import 'package:sky/widgets/basic.dart';
|
|
|
|
class HelloWorldApp extends App {
|
|
Widget build() {
|
|
return new Text('Hello, fn2!');
|
|
}
|
|
}
|
|
|
|
void main() {
|
|
runApp(new HelloWorldApp());
|
|
}
|