Skip to content
Articles
Article

mock_api_assets: a fake backend from JSON fixtures for Dart and Flutter

by Abdeldjalil Chougui dev.to

5 min read

Front-end work often starts before the backend is ready. The API is still being designed, or it exists but you are on a train, or you have to demo the app and cannot depend on a server. The usual answer is a few hard-coded lists scattered through the code, which then have to be found and removed later. A fake backend is a cleaner answer: the app keeps making real HTTP calls through its real clien…

Forum

Questions about this, or something to add?

Discuss on the forum

Report this · Wrote this? Claim it

FlutterX is supported by