Created
April 4, 2019 14:31
-
-
Save MarcioQuimbundo/49772d18ef77e762b69be0c33466a1fa 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: Center( | |
child: WidgetSemEstado(), | |
), | |
), | |
); | |
class WidgetSemEstado extends StatelessWidget { | |
//a notação @override é preciso para otimização, utilizando-a | |
//dizemos que não precisamos do mesmo método da classe pai | |
//então o compilador pode soltá-lo | |
@override | |
Widget build(BuildContext context) { | |
return Text( | |
'Olá, Mundo!!!', | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment