Skip to content

Instantly share code, notes, and snippets.

@Sfshaza
Last active April 12, 2019 00:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Sfshaza/a87b03bbb0bde68abeddc976bf95827c to your computer and use it in GitHub Desktop.
Save Sfshaza/a87b03bbb0bde68abeddc976bf95827c to your computer and use it in GitHub Desktop.
Step 1: Flutter "Getting started" codelab
// 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'),
),
),
);
}
}
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