Google Summer of Code 2020 proposal: "Adapt schema editors to operate from model states instead of fake rendered models."
- Abstract
- The New Migrations Framework
- Timeline and Milestones
- About Me
import 'package:flutter/material.dart'; | |
void main(){ | |
runApp( | |
MaterialApp( | |
title: 'Login Page', | |
home: LoginPage(), | |
debugShowCheckedModeBanner: false, | |
) | |
); |
enum FormType{ | |
login, | |
register | |
} | |
String _email; | |
String _username; | |
String _password; |
class _LoginPageState extends State<LoginPage>{ | |
final formKey = new GlobalKey<FormState>(); | |
FormType _formType = FormType.login; | |
TextEditingController _usernameController = new TextEditingController(); | |
TextEditingController _passwordController = new TextEditingController(); | |
TextEditingController _emailController = new TextEditingController(); | |
void moveToRegister(){ |
@override | |
Widget build (BuildContext context){ | |
return Scaffold( | |
body: SafeArea( | |
child: ListView( | |
padding: const EdgeInsets.symmetric(horizontal: 24.0, vertical: 24.0), | |
children: <Widget>[ | |
SizedBox(height: 30.0), | |
Image.asset('download.png', height: 100.0, width: 100.0,), | |
SizedBox(height: 65.0), |
List<Widget> usernamePassword(){ | |
if (_formType == FormType.register) { return[ | |
TextFormField( | |
decoration: InputDecoration( | |
filled: true, | |
fillColor: Colors.white, | |
border: OutlineInputBorder(), | |
labelText: "Username", | |
//errorText: 'Username already exists.', | |
labelStyle: TextStyle(fontSize: 13.0) |
List<Widget> submitButtons(){ | |
if(_formType == FormType.login){ | |
return[ | |
SizedBox(height: 20.0), | |
ButtonTheme( | |
minWidth: 88.0, | |
height: 40.0, | |
child: | |
FlatButton( | |
child: Text('Login', style: TextStyle(color: Colors.white)), |
import 'package:flutter/material.dart'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
title: 'TechLoop Flutter', | |
debugShowCheckedModeBanner: false, |
This document contains certain rules and guidelines that developers are expected to follow, while contributing to any repository.
-m
flag only for minor changes. The message following the -m
flag must be of the below format :
<Verb in present tense> <Action>
short one-two liner description about the repo .
Support open source software by participating in Hacktoberfest and get goodies and a free t-shirt! 💛
Please check all issues labelled as
hacktoberfest
to start contributing!
Kindly consider leaving a ⭐ if you like the repository and our organisation.