Last active
April 12, 2019 00:29
-
-
Save Sfshaza/a87b03bbb0bde68abeddc976bf95827c to your computer and use it in GitHub Desktop.
Step 1: Flutter "Getting started" codelab
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Starting "Hello World" app for the | |
// Getting Started with Flutter codelab. | |
import 'package:flutter/material.dart'; | |
void main() => runApp(new MyApp()); | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return new MaterialApp( | |
title: 'Welcome to Flutter', | |
home: new Scaffold( | |
appBar: new AppBar( | |
title: const Text('Welcome to Flutter'), | |
), | |
body: const Center( | |
child: const Text('Hello World'), | |
), | |
), | |
); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: step1_hello_world | |
description: A new Flutter application. | |
dependencies: | |
flutter: | |
sdk: flutter | |
cupertino_icons: ^0.1.0 | |
dev_dependencies: | |
flutter_test: | |
sdk: flutter | |
flutter: | |
uses-material-design: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment