Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import 'package:flutter/material.dart';
- //runApp calls MyApp
- void main() => runApp(MyApp());
- //Stateless Widget since this class has no state, once created will be immutable
- class MyApp extends StatelessWidget {
- @override
- Widget build(BuildContext context) {
- //A convenience widget that wraps a number of widgets that are commonly
- //required for applications implementing Material Design.
- return MaterialApp(
- title: 'Crypto Price List',
- theme: new ThemeData(primaryColor: Colors.white), //will be used later
- home: new Center(child: new Text('my crypto app'),)); //centralize the text
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement