Created
February 19, 2020 15:52
-
-
Save azamsharp/4286415ad4f939c17fda0d7b1891a577 to your computer and use it in GitHub Desktop.
This file contains hidden or 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(App()); | |
class App extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
title: "Counter App", | |
home: Scaffold( | |
body: Center( | |
child: Column( | |
mainAxisAlignment: MainAxisAlignment.center, | |
children: <Widget>[ | |
Text("0",style: TextStyle(fontSize: 32)), | |
FlatButton( | |
child: Text("Increment", style: TextStyle(color: Colors.white)), | |
onPressed: () {}, | |
color: Colors.green | |
) | |
]), | |
), | |
) | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment