Advertisement
Guest User

Untitled

a guest
Jul 16th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. import 'package:flutter/material.dart';
  2.  
  3. void main() {
  4. runApp(new MaterialApp(
  5. home: new MyApp(),
  6. ));
  7. }
  8.  
  9. class MyApp extends StatefulWidget {
  10. @override
  11. _State createState() => new _State();
  12. }
  13.  
  14. class _State extends State<MyApp> {
  15. @override
  16. Widget build(BuildContext context) {
  17. return new Scaffold(
  18. appBar: new AppBar(
  19. title: new Text('Name here'),
  20. ),
  21. body: new Container(
  22. padding: new EdgeInsets.all(32.0),
  23. child: new Center(
  24. child: new Column(
  25. children: <Widget>[
  26. new Text('Hello world')
  27. ],
  28. ),
  29. ),
  30. ),
  31. );
  32. }
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement