mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
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:
parent
10901fabad
commit
db50ce1659
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();
|
||||
}
|
Loading…
Reference in New Issue
Block a user