Created
September 22, 2015 16:38
-
-
Save collinjackson/1cc1c934ceb172ebbf1b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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.dart'; | |
import 'package:sky/material.dart'; | |
class BlockApp extends App { | |
Widget build() { | |
return new Block( | |
[ | |
new Container(height: 200.0, decoration: new BoxDecoration(backgroundColor: const Color(0xFF00FF00))), | |
new Container(height: 200.0, decoration: new BoxDecoration(backgroundColor: const Color(0xFFFF0000))), | |
new Container(height: 200.0, decoration: new BoxDecoration(backgroundColor: const Color(0xFF0000FF))), | |
new Container(height: 200.0, decoration: new BoxDecoration(backgroundColor: const Color(0xFF00FF00))), | |
new Container(height: 200.0, decoration: new BoxDecoration(backgroundColor: const Color(0xFFFF0000))), | |
new Container(height: 200.0, decoration: new BoxDecoration(backgroundColor: const Color(0xFF0000FF))), | |
] | |
); | |
} | |
} | |
void main() { | |
runApp(new BlockApp()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment