]> git.cworth.org Git - lmno.games/commitdiff
Make the plus button act like refresh
authorKevin Worth <kworth082@gmail.com>
Fri, 8 May 2020 15:02:30 +0000 (11:02 -0400)
committerCarl Worth <cworth@cworth.org>
Sat, 23 May 2020 13:49:00 +0000 (06:49 -0700)
Tapping on the plus button now calls fetch again and redisplays the
updated list of players

flutterempires/lib/main.dart

index ae5441fc947d4fcbffe9008a0ae71f018c8cf0b1..c92508bebecda377b6791f2f163cb0fad09d7f57 100644 (file)
@@ -64,6 +64,7 @@ class _MyHomePageState extends State<MyHomePage> {
   void onPressPlusButton() {
     setState(() {
       // Probably use this to POST player name and character
+      allPlayers = Player.fetchAllPlayers();
     });
   }