Last active
March 12, 2019 17:54
-
-
Save ScottS2017/8a5ee331c81e8bc990c18044435bcd5c 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
Widget brokenCodeRenderFlexError = | |
Column( | |
/// A Column's default is "mainAxisSize: MainAxisSize.max," | |
/// This means it will try to take all the height it's allowed to. | |
children: <Widget>[ | |
Container( | |
height: 300, | |
width: double.infinity, | |
color: Colors.red, | |
), | |
/// The next container is trying to be infinitely large | |
Container( | |
height: double.infinity, | |
color: Colors.green, | |
), | |
], | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment