Before running this example in the simulator, create any missing Flutter files - flutter create . - and make sure the API is running: node server.js. Finally, generate Brick's code: flutter pub run build_runner build.
A progressive explanation of a similar example can be found on Flutter by Example.
While a normal installation should ignore *.g.dart files, this project has them committed. This is for illustrative purposes to accessibly showcase Brick's output.