]> git.cworth.org Git - lmno.games/commit
Add a FutureBuilder widget to hold a fetched player
authorKevin Worth <kworth082@gmail.com>
Sun, 3 May 2020 19:31:41 +0000 (15:31 -0400)
committerKevin Worth <kworth082@gmail.com>
Fri, 8 May 2020 13:36:39 +0000 (09:36 -0400)
commit37462cae6ede4e22f8d1a1e9dbb22ec42794bba7
tree8d8c6935d47b28545bca7ad176308593bf4c6811
parent48fe30d49300202b6cfb733e93c45a4e2ca06722
Add a FutureBuilder widget to hold a fetched player

Rather than doing a fetch within this build method (which gets called repeatedly),
we use a FutureBuilder to show a spinner until the player has finished being
fetched asynchronously.
flutterempires/lib/main.dart