Created
September 17, 2019 12:11
-
-
Save rightturn/272436b66353d84211dd2e60f7645fc7 to your computer and use it in GitHub Desktop.
simple flutter demo
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
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