Skip to content

Instantly share code, notes, and snippets.

@collinjackson
Created September 22, 2015 16:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save collinjackson/1cc1c934ceb172ebbf1b to your computer and use it in GitHub Desktop.
Save collinjackson/1cc1c934ceb172ebbf1b to your computer and use it in GitHub Desktop.
// 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