Skip to content

Instantly share code, notes, and snippets.

View aryan9600's full-sized avatar
debugging

Sanskar Jaiswal aryan9600

debugging
View GitHub Profile
@aryan9600
aryan9600 / main.dart
Last active September 29, 2019 17:46
Login UI Flutter
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),
@aryan9600
aryan9600 / main.dart
Last active September 29, 2019 17:50
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,
@aryan9600
aryan9600 / GSoC Proposal.md
Last active March 30, 2020 16:51
This is my proposal for Google Summer of Code 2020, under Django.

Google Summer of Code 2020 proposal: "Adapt schema editors to operate from model states instead of fake rendered models."

Table of Contents

  1. Abstract
  2. The New Migrations Framework
  3. Timeline and Milestones
  4. About Me

@aryan9600
aryan9600 / CONTRIBUTING.md
Last active May 9, 2021 06:24
This gist contains the guidelines for contributing to any IEEE-VIT repository.

Contributing Guidelines

This document contains certain rules and guidelines that developers are expected to follow, while contributing to any repository.


1. Commit Messages

  • Use the -m flag only for minor changes. The message following the -m flag must be of the below format :

    <Verb in present tense> <Action>

@aryan9600
aryan9600 / README.md
Last active October 1, 2020 11:46
README Template for all IEEE-VIT repositories under Hacktoberfest 2020.

Hacktoberfest 2020 with IEEE-VIT ❤️

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.