Created
April 4, 2019 15:57
-
-
Save horgag1/ec7ddbd209f9988ae62efdc27555d46f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class _ListPageState extends State<ListPage> { | |
Future<DocumentReference> getPosts() async { | |
final FirebaseAuth _auth = FirebaseAuth.instance; | |
final Firestore _firestore = Firestore.instance; | |
FirebaseUser user = await _auth.currentUser(); | |
DocumentReference ref = _firestore.collection('users').document(user.uid); | |
return ref; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment