]> 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)
committerCarl Worth <cworth@cworth.org>
Sat, 23 May 2020 13:49:00 +0000 (06:49 -0700)
commit584dc2906ede9ec4b39a7870b5875154b0968ed3
tree8d8c6935d47b28545bca7ad176308593bf4c6811
parent0b063c0ded2199c7a580513ce949d982e889897b
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