Skip to content

Instantly share code, notes, and snippets.

@vijayinyoutube
Last active January 15, 2020 09:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vijayinyoutube/f1991a0bc7b88a3252357d1b2b0a0282 to your computer and use it in GitHub Desktop.
Save vijayinyoutube/f1991a0bc7b88a3252357d1b2b0a0282 to your computer and use it in GitHub Desktop.
Hello World in Flutter
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