/flutter_xckd_app

The "XKCD" app exercise from the book Programming Flutter

Primary LanguageDart

xckd_app

The "XKCD" app exercise from the book Programming Flutter (with a fun typo in the app name!)

There have been several significant updates in the Flutter ecosystem since the book was published:

  • Introduction of null safety
  • Update to mocking approach to handle null safety

Requirements

Recommended Flutter development environment:

Running

Run main.dart from within VS Code.

Testing

Unit Tests

  • Run flutter test
  • Or, from within test/unit_test.dart, run an individual test in VS Code

Integration Tests

Note that integration tests make real network requests instead of mocking.

Run flutter drive --target=test_driver/selectionpage.dart

License

MIT