Created
August 26, 2015 19:57
-
-
Save collinjackson/935be7f8f664609a2baf to your computer and use it in GitHub Desktop.
Reduced test case for Column height issue
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 'dart:async'; | |
import 'package:sky/rendering/sky_binding.dart'; | |
import 'package:sky/widgets.dart'; | |
import 'package:sky/theme/colors.dart' as colors; | |
void main() { | |
runApp(new ColumnReducedTestCase()); | |
new Timer(new Duration(seconds: 2), () { | |
SkyBinding.instance.debugDumpRenderTree(); | |
}); | |
} | |
class ColumnReducedTestCase extends App { | |
Widget build() { | |
return new Center( | |
child: new Container( | |
decoration: new BoxDecoration(backgroundColor: colors.white), | |
child: new Block([ | |
new Column([ | |
new Container( | |
margin: const EdgeDims.symmetric(vertical: 40.0), | |
height: 100.0, | |
width: 100.0, | |
decoration: new BoxDecoration( | |
backgroundColor: const Color(0x7FFF0000), | |
shape: Shape.circle | |
) | |
) | |
]) | |
]) | |
) | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment