mirror of
https://github.com/flutter/flutter
synced 2024-10-30 01:59:05 +00:00
Clean up examples directory
1) Merge input example into widgets example 2) Move single-file, non-fn examples into a "raw" directory 3) Rename stocks-fn and widgets-fn to stocks and widgets R=ojan@chromium.org Review URL: https://codereview.chromium.org/1005393006
This commit is contained in:
parent
20a4c66ade
commit
854f083f1b
46 changed files with 7 additions and 25 deletions
|
@ -1,9 +1,7 @@
|
|||
#!mojo mojo:sky_viewer
|
||||
<div><!-- remove this element once Document can have multiple element children -->
|
||||
<style>
|
||||
.h1 { font-size: 2em; margin: 1em; }
|
||||
.p { margin: 0.5em 1em; color: #bcd8f5; font-weight: 900; }
|
||||
</style>
|
||||
<div class="h1">about:blank</div>
|
||||
<div class="p">Welcome to Sky!</div>
|
||||
</div>
|
||||
|
|
|
@ -1,10 +0,0 @@
|
|||
#!mojo mojo:sky_viewer
|
||||
<sky>
|
||||
<import src="/sky/framework/debug/shake-to-reload.sky" />
|
||||
<script>
|
||||
import 'input_app.dart';
|
||||
main() {
|
||||
new InputApp();
|
||||
}
|
||||
</script>
|
||||
</sky>
|
|
@ -1,12 +0,0 @@
|
|||
// 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/fn.dart';
|
||||
import 'package:sky/framework/components/input.dart';
|
||||
|
||||
class InputApp extends App {
|
||||
Node build() {
|
||||
return new Input();
|
||||
}
|
||||
}
|
|
@ -10,8 +10,12 @@ dot {
|
|||
border-radius: 5px;
|
||||
opacity: .75;
|
||||
}
|
||||
|
||||
log {
|
||||
margin-top: 50px;
|
||||
}
|
||||
</style>
|
||||
<log>Ready!</log>
|
||||
<log>Touch the screen!</log>
|
||||
<script>
|
||||
import "dart:sky";
|
||||
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
import 'package:sky/framework/fn.dart';
|
||||
import 'package:sky/framework/components/button.dart';
|
||||
import 'package:sky/framework/components/input.dart';
|
||||
import 'package:sky/framework/components/popup_menu.dart';
|
||||
|
||||
class WidgetsApp extends App {
|
||||
|
@ -17,6 +18,7 @@ class WidgetsApp extends App {
|
|||
children: [
|
||||
new Button(key: 'Go', content: new Text('Go'), level: 1),
|
||||
new Button(key: 'Back', content: new Text('Back'), level: 3),
|
||||
new Input(),
|
||||
new Container(
|
||||
style: _menuStyle,
|
||||
children: [
|
Loading…
Reference in a new issue