I needed the code to learn Flutter but there was no github repo for this helpful article:
Fire away and start learning!
flutter pub get
Change line 8 in lib/service/api.dart
to your own IP address. Make sure it's your real network IP
String _baseUrl = "http://192.168.0.151:9001";
Connect to your phone or turn on the emulator. You're good to go!
Accompanying REST API repo: