Created
July 25, 2020 07:45
-
-
Save ebubekirsezer/5c0e2d1ec41c53a5d73b6919eeb02ce4 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
Column buildColumnWithAspectRatios() { | |
return Column( | |
children: [ | |
AspectRatio( | |
aspectRatio: 10 / 5, | |
child: Container( | |
color: Colors.purple, | |
), | |
), | |
AspectRatio( | |
aspectRatio: 15 / 5, | |
child: Container( | |
color: Colors.yellow, | |
), | |
), | |
AspectRatio( | |
aspectRatio: 20 / 5, | |
child: Container( | |
color: Colors.red, | |
), | |
), | |
AspectRatio( | |
aspectRatio: 9 / 4, | |
child: Container( | |
color: Colors.blue, | |
), | |
), | |
], | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment