Advertisement
Guest User

Untitled

a guest
Mar 20th, 2019
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. import 'package:flutter/material.dart';
  2.  
  3. //runApp calls MyApp
  4. void main() => runApp(MyApp());
  5.  
  6. //Stateless Widget since this class has no state, once created will be immutable
  7. class MyApp extends StatelessWidget {
  8. @override
  9. Widget build(BuildContext context) {
  10. //A convenience widget that wraps a number of widgets that are commonly
  11. //required for applications implementing Material Design.
  12. return MaterialApp(
  13. title: 'Crypto Price List',
  14. theme: new ThemeData(primaryColor: Colors.white), //will be used later
  15. home: new Center(child: new Text('my crypto app'),)); //centralize the text
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement