Guest User

Untitled

a guest
Apr 24th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. @override
  2. Widget build(BuildContext context) {
  3. return new Scaffold(
  4. appBar: new AppBar(
  5. title: new Text("App bar"),
  6. ),
  7. body: new FutureBuilder<FirebaseUser>(
  8. future: FirebaseAuth.instance.currentUser(),
  9. builder: (BuildContext context, AsyncSnapshot<FirebaseUser> snapshot) {
  10. if (snapshot.connectionState == ConnectionState.done) {
  11. print(snapshot.data);
  12. return new Text("hi");
  13. }
  14. else {
  15. return new Text('Loading...');
  16. }
  17. },
  18. ),
  19. );
  20. }
Add Comment
Please, Sign In to add comment