From: Kevin Worth Date: Fri, 8 May 2020 15:02:30 +0000 (-0400) Subject: Make the plus button act like refresh X-Git-Url: https://git.cworth.org/git?p=lmno.games;a=commitdiff_plain;h=5dc18c0cd3f7852b9185260a2bffa7f23125f0c4 Make the plus button act like refresh Tapping on the plus button now calls fetch again and redisplays the updated list of players --- diff --git a/flutterempires/lib/main.dart b/flutterempires/lib/main.dart index ae5441f..c92508b 100644 --- a/flutterempires/lib/main.dart +++ b/flutterempires/lib/main.dart @@ -64,6 +64,7 @@ class _MyHomePageState extends State { void onPressPlusButton() { setState(() { // Probably use this to POST player name and character + allPlayers = Player.fetchAllPlayers(); }); }