Skip to content

Connect the apps to your server

Each app reads your server’s address from one file: lib/app_config.dart. Set it once per app before you run or build it.

AppFile
Customerapps/customer/lib/app_config.dart
Sellerapps/seller/lib/app_config.dart
Riderapps/delivery/lib/app_config.dart
  1. Open the app’s lib/app_config.dart in any editor (Android Studio, VS Code …).
  2. Put your address between the quotes on the baseUrl line:
    apps/customer/lib/app_config.dart
    static const String baseUrl = 'https://yourdomain.com';
    Use the same address as your website and admin — the Site URL you entered in the installer — with https:// and no trailing slash.
  3. Save, then do the same in the other two apps.
  1. Run the customer app (flutter run in apps/customer).
  2. The home screen should show your store name and brand colour (Settings → Brand & business) — the app downloads them from your server when it starts.
  3. If it shows a connection error, open https://yourdomain.com/api/bootstrap in the phone’s browser: it should show text starting with {. If it doesn’t, the server or HTTPS isn’t reachable from the phone.

Release builds only talk to https:// servers. Plain http:// works in debug builds, for testing against a server on your own computer — leave baseUrl empty and the app uses 127.0.0.1:8001 (or 10.0.2.2:8001 from the Android emulator).

Edit baseUrl, then build and publish a new version of each app. Phones keep using the address their installed version was built with.