Skip to content

Instantly share code, notes, and snippets.

View vikivyas's full-sized avatar
🇮🇳
Working From Home

Viral Vyas vikivyas

🇮🇳
Working From Home
View GitHub Profile
@vikivyas
vikivyas / signup_function_in_signup.dart
Created December 11, 2020 15:12 — forked from theindianappguy/signup_function_in_signup.dart
Signup function in signup.dart Chat App with Flutter and Firebase
singUp() async {
if(formKey.currentState.validate()){
setState(() {
isLoading = true;
});
await authService.signUpWithEmailAndPassword(emailEditingController.text,
passwordEditingController.text).then((result){
@vikivyas
vikivyas / widgets.dart
Created December 11, 2020 14:48 — forked from theindianappguy/widgets.dart
InputDecoration textFieldInputDecoration for Flutter Chat App
InputDecoration textFieldInputDecoration(String hintText) {
return InputDecoration(
hintText: hintText,
hintStyle: TextStyle(color: Colors.white54),
focusedBorder:
UnderlineInputBorder(borderSide: BorderSide(color: Colors.white)),
enabledBorder:
UnderlineInputBorder(borderSide: BorderSide(color: Colors.white)));
}
@vikivyas
vikivyas / signin.dart
Created December 11, 2020 14:39 — forked from theindianappguy/signin.dart
SignIn Screen UI for ChatApp
import 'package:flutter/material.dart';
class SignIn extends StatefulWidget {
@override
_SignInState createState() => _SignInState();
}
class _SignInState extends State<SignIn> {