Created
April 4, 2019 14:02
-
-
Save MarcioQuimbundo/c8bc779bd6a59e1d2aa110c4fb34a8cd to your computer and use it in GitHub Desktop.
This file contains hidden or 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
import 'package:flutter/widgets.dart'; | |
main() => runApp( | |
Directionality( | |
textDirection: TextDirection.ltr, | |
child: Container( // o novo widget! é o <div> no mundo do Flutter | |
//para o [Container], a propriedade[color] significa a cor do fundo(background-color) | |
color: Color(0xFF444444), | |
child: Center( | |
child: Text( | |
'Olá, Mundo!!!', | |
style: TextStyle( //utilizamos o widget[TextStyle] para customizar o widget | |
color: Color(0xFFFD620A),//configura a cor do texto | |
fontSize: 32.0, //configura o tamanho do texto | |
), | |
), | |
), | |
), | |
), | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment