Created
February 28, 2018 21:14
-
-
Save anilcancakir/289e7d3cb3192e3da2cebf96ad3dbdaf to your computer and use it in GitHub Desktop.
Forms in Flutter - Code #1
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(new MaterialApp( | |
| title: 'Forms in Flutter', | |
| home: new LoginPage(), | |
| )); | |
| class LoginPage extends StatefulWidget { | |
| @override | |
| State<StatefulWidget> createState() => new _LoginPageState(); | |
| } | |
| class _LoginPageState extends State<LoginPage> { | |
| @override | |
| Widget build(BuildContext context) { | |
| return new Scaffold( | |
| appBar: new AppBar( | |
| title: new Text('Login'), | |
| ), | |
| body: new Container( | |
| child: new Center( | |
| child: new Text('Hello world!') | |
| ), | |
| ), | |
| ); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment