summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Kevin Worth [Fri, 8 May 2020 13:07:17 +0000 (09:07 -0400)]
Clean up some leftover hello flutter code
The hello flutter code has button which increments a number on the
screen and this has just been cluttering things up. This will likely be
a good place to put the logic we'll need for submitting the user's
name and character, so we won't get rid of it completely.
Kevin Worth [Fri, 8 May 2020 12:59:50 +0000 (08:59 -0400)]
Make space for showing the full list of players
Up to now, the widgets were centered on the screen. With them now moved
up to the top, there is room to show the list of players at the bottom.
Kevin Worth [Fri, 8 May 2020 12:58:03 +0000 (08:58 -0400)]
Display total number of players
Setting up a new widget to display the list of players, but for the
time being (for simplicity's sake) it's just displaying the size of the
returned list of players.
Kevin Worth [Fri, 8 May 2020 12:53:45 +0000 (08:53 -0400)]
Add fetchAllPlayers method
This method is really the one we've needed all along and so now we
can display the list of players instead of just the first player.
Kevin Worth [Fri, 8 May 2020 12:52:02 +0000 (08:52 -0400)]
Stop using dart:js in player.dart
This "web only" package was preventing the app from being built on
Android and iOS, so now that we have a method for parsing the player
list, we no longer need to use the (albeit simpler) JsArray type.
See: https://dart-lang.github.io/linter/lints/avoid_web_libraries_in_flutter.html
Kevin Worth [Fri, 8 May 2020 12:48:10 +0000 (08:48 -0400)]
Add method parsePlayers to player.dart
This gives us a convenience method to parse the
json returned from the server into a List<Player> object
Kevin Worth [Mon, 4 May 2020 02:39:44 +0000 (22:39 -0400)]
Change fetchPlayer to fetchFirstPlayer
Initially I was going to fix the logic in this method to fit the name,
but instead - for the time being - I'll simply make the name more
accurately describe what the method is doing.
Kevin Worth [Mon, 4 May 2020 00:21:31 +0000 (20:21 -0400)]
Add initState to start the async call to fetch player
initState is a good place to do asynchronous calls that we just
need to happen one time at the beginning.
So, in initStart we fetch the player and put it in a Future, and then
when (each and every time) build gets called, it uses what has
been fetched or shows the spinner if the fetch hasn't completed
successfully yet.
Kevin Worth [Sun, 3 May 2020 19:31:41 +0000 (15:31 -0400)]
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.
Kevin Worth [Sun, 3 May 2020 02:40:48 +0000 (22:40 -0400)]
Add class RegisteredUser with name and character attributes
This data model will be used when POSTing to /register
See:
git://git.cworth.org/git/empires-api/api.text
at commit
0411bdc
Kevin Worth [Sun, 3 May 2020 02:36:42 +0000 (22:36 -0400)]
Add class Player with id and name attributes
This data model will be used when hitting the /players endpoint
See:
git://git.cworth.org/git/empires-api/api.text
at commit
0411bdc
Kevin Worth [Sun, 3 May 2020 02:44:46 +0000 (22:44 -0400)]
Add http library version 0.12.1 to pubspec.yaml
Kevin Worth [Fri, 8 May 2020 13:32:51 +0000 (09:32 -0400)]
Change name of Android app to Empires
The generated code lazily made the app name match the package
name, so now Empires is much better than flutterempires.
Kevin Worth [Mon, 4 May 2020 12:02:01 +0000 (08:02 -0400)]
Merge branch 'families-to-empires'
Rename everything that was initially created with `flutter create flutterfamilies`
so that it is now called "flutterempires" instead
Kevin Worth [Mon, 4 May 2020 11:53:03 +0000 (07:53 -0400)]
Rename directory flutterfamilies to flutterempires
Originally the flutter app was created in a directory called flutterfamilies
and this should take care of the final references still pointing to that old
directory now that it's renamed to flutterempires
Kevin Worth [Mon, 4 May 2020 03:13:17 +0000 (23:13 -0400)]
Rename "Families" to "Empires"
Because the name is better
Kevin Worth [Mon, 4 May 2020 03:06:08 +0000 (23:06 -0400)]
Rename application id to com.appsiom.empires
Because com.example was no good and so was flutterfamilies
Kevin Worth [Sat, 2 May 2020 11:23:47 +0000 (07:23 -0400)]
Clean up by removing some tutorial text
Removes comments only - no functional code changes
Kevin Worth [Sat, 2 May 2020 11:20:42 +0000 (07:20 -0400)]
Fix indentation after adding Container
Changes whitespace only
Kevin Worth [Sat, 2 May 2020 11:13:08 +0000 (07:13 -0400)]
Add new Container to allow for margin
The Center widget can't have margin, apparently, so we'll put it in
a Container which can.
Kevin Worth [Mon, 27 Apr 2020 13:29:08 +0000 (13:29 +0000)]
Add README.md
Kevin Worth [Mon, 27 Apr 2020 12:51:02 +0000 (08:51 -0400)]
Add screenshot to root for current progress
Kevin Worth [Mon, 27 Apr 2020 12:47:01 +0000 (08:47 -0400)]
Add some space in between TextFields for aesthetics
Kevin Worth [Mon, 27 Apr 2020 12:38:57 +0000 (08:38 -0400)]
Add label and TextField for entering the player's game name
Kevin Worth [Mon, 27 Apr 2020 12:37:36 +0000 (08:37 -0400)]
Add TextField for entering (real) name
Kevin Worth [Mon, 27 Apr 2020 12:33:37 +0000 (08:33 -0400)]
Fix up into previous
Kevin Worth [Mon, 27 Apr 2020 03:10:21 +0000 (23:10 -0400)]
Add 'Empires' to homepage title
Kevin Worth [Mon, 27 Apr 2020 02:06:01 +0000 (22:06 -0400)]
Change app name to 'Families Game'
Kevin Worth [Mon, 27 Apr 2020 01:56:32 +0000 (21:56 -0400)]
Add all from `flutter create <name>`
Kevin Worth [Mon, 27 Apr 2020 01:55:04 +0000 (21:55 -0400)]
Initial (empty) commit