Skip to content

Instantly share code, notes, and snippets.

@rightturn
Created September 17, 2019 12:11
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 rightturn/272436b66353d84211dd2e60f7645fc7 to your computer and use it in GitHub Desktop.
Save rightturn/272436b66353d84211dd2e60f7645fc7 to your computer and use it in GitHub Desktop.
simple flutter demo
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
backgroundColor: Colors.red,
title: Text("Demo"),
),
body: Center(
child: Text("Hello world app"),
),
floatingActionButton: FloatingActionButton(
backgroundColor: Colors.red,
child: Icon(Icons.add),
),
),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment