Building a Flutter app with AI and InstantBackend
Flutter + InstantBackend prompt and setup.
You can have an AI generate your Flutter app and use InstantBackend for auth and data—no custom backend, no Firebase required.
Setup
- API key. Sign up and copy your API key. Store it in your Flutter config (e.g.
.envwithflutter_dotenv, or a config file). Never hardcode it. - Prompt. Use the Flutter prompt: it tells the AI to use only the InstantBackend REST API for login, signup, and CRUD.
- Auth.
POST https://api.instantbackend.dev/loginwithX-API-Keyand{"username","password"}; store the JWT and sendAuthorization: Bearer <token>on later requests. - Data.
POST /{collection}to create,GET /{collection}?limit=20to list (response:items+nextToken),GET /{collection}/{id}for one item.
What the AI generates
Screens, navigation, and a small API client that reads the key from config and uses the JWT for authenticated calls. You run flutter run and set the API key in your environment or config.