Skip to content

Instantly share code, notes, and snippets.

@anilcancakir
Created February 28, 2018 21:14
Show Gist options
  • Select an option

  • Save anilcancakir/289e7d3cb3192e3da2cebf96ad3dbdaf to your computer and use it in GitHub Desktop.

Select an option

Save anilcancakir/289e7d3cb3192e3da2cebf96ad3dbdaf to your computer and use it in GitHub Desktop.
Forms in Flutter - Code #1
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