Last active
January 15, 2020 09:47
-
-
Save vijayinyoutube/f1991a0bc7b88a3252357d1b2b0a0282 to your computer and use it in GitHub Desktop.
Hello World 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
import "package:flutter/material.dart"; | |
void main() { | |
runApp(MaterialApp(home: MyApp(), debugShowCheckedModeBanner: false)); | |
} | |
class MyApp extends StatefulWidget { | |
@override | |
_MyAppState createState() => _MyAppState(); | |
} | |
class _MyAppState extends State<MyApp> { | |
@override | |
@override | |
Widget build(BuildContext context) { | |
return Scaffold( | |
backgroundColor: Colors.white, | |
body: Container( | |
alignment: Alignment.center, | |
child: Text( | |
"Hello World", | |
style: TextStyle( | |
color: Colors.red, fontSize: 30, fontWeight: FontWeight.bold), | |
), | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment