Add hello_fn2.dart and make Text("Hello fn2") actually render something.
R=ianh@google.com Review URL: https://codereview.chromium.org/1160843005
This commit is contained in:
15
examples/fn2/hello_fn2.dart
Normal file
15
examples/fn2/hello_fn2.dart
Normal file
@@ -0,0 +1,15 @@
|
||||
// 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/framework/fn2.dart';
|
||||
|
||||
class HelloWorldApp extends App {
|
||||
UINode build() {
|
||||
return new Text('Hello, fn2!');
|
||||
}
|
||||
}
|
||||
|
||||
void main() {
|
||||
new HelloWorldApp();
|
||||
}
|
||||
Reference in New Issue
Block a user