Last active
October 4, 2020 06:45
An example of container widget in Flutter
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
Container( | |
color: Colors.red, | |
padding: const EdgeInsets.all(8.0), /* Padding applies within the bounds of the container */ | |
margin: const EdgeInsets.all(8.0), /* Padding applies outside the bounds of the container */ | |
height: 300, | |
width: 300, | |
child: Text('Hello World!'), | |
), |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment