daily pastebin goal
56%
SHARE
TWEET

Untitled

a guest Mar 24th, 2019 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.   Future<Null> signUp() async {
  2.     prefs = await SharedPreferences.getInstance();
  3.  
  4.     this.setState(() {
  5.       isLoading = true;
  6.     });
  7.     FirebaseUser firebaseUser = await FirebaseAuth.instance.signInWithEmailAndPassword(
  8.       email: _emailController.text,
  9.       password: _passwordController.text,
  10.     );
  11.     ScopedModel.of<User>(context).changeId(firebaseUser.uid);
  12.     ScopedModel.of<User>(context).changeName(firebaseUser.displayName);
  13.   }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top