Skip to content

Instantly share code, notes, and snippets.

View deepak-gehlot's full-sized avatar

deepak-gehlot

View GitHub Profile
@deepak-gehlot
deepak-gehlot / Authenticatoin
Created July 19, 2018 07:33
Firebase Authentication : Register user, Login user, Login with google
import 'package:firebase_auth/firebase_auth.dart';
import 'package:google_sign_in/google_sign_in.dart';
import 'dart:async';
class PersonData {
String name = '';
String phoneNumber = '';
String email = '';
String password = '';
}
import 'package:flutter/material.dart';
class SimpleTab extends StatelessWidget {
@override
Widget build(BuildContext context) {
textStyle() {
return new TextStyle(color: Colors.white, fontSize: 30.0);
}
return new DefaultTabController(
class MyHomePage extends StatelessWidget {
@override
Widget build(BuildContext context) {
return new Scaffold(
floatingActionButtonLocation: FloatingActionButtonLocation.centerDocked,
floatingActionButton: FloatingActionButton(
backgroundColor: Colors.black,
child: const Icon(Icons.add),
onPressed: () {},
),