Advertisement
Guest User

Untitled

a guest
Jan 20th, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. import 'package:flutter/material.dart';
  2.  
  3. class MyHomePage extends StatelessWidget {
  4. @override
  5. Widget build(BuildContext context) {
  6. return new Scaffold(
  7. appBar: new AppBar(
  8. title: const Text("Welcome to flutter"),
  9. ),
  10. body: new Center(
  11. child: const Text("Hello world!"),
  12. ),
  13. );
  14. }
  15.  
  16. }
  17.  
  18. void main() => runApp(MyApp());
  19.  
  20. class MyApp extends StatelessWidget {
  21. @override
  22. Widget build(BuildContext context) {
  23. return MaterialApp(
  24. title: 'Flutter Demo',
  25. theme: ThemeData(
  26. primarySwatch: Colors.red,
  27. ),
  28. home: new Scaffold(
  29. appBar: new AppBar(
  30. title: const Text("Welcome to flutter"),
  31. ),
  32. body: new Center(
  33. child: const Text("Hello world!"),
  34. ),
  35. );,
  36. );
  37. }
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement