Hello FlutterFlow Community,
I created the UI for my app in FlutterFlow and exported the code to build a custom back-end with API calls to OpenAI and Google using Android Studio and Visual Studio Code. I need assistance with the back-end logic, which is spread across several files, including api_services.dart
, main.dart
, http.dart
, utils.dart
, models.dart
, and google_sign_in.dart
.
The issue I'm facing is that every time I build the APK and transfer it to an emulator, the app crashes. Before implementing the back-end logic, the UI and camera functionality worked perfectly, leading me to believe the issue lies in the back-end integration.
I suspect the problem might be related to camera initialization or the handling of the .env
file. Iโve ensured that the .env
file is in UTF-8 format, located correctly, and has the necessary permissions. Iโm using the path provider package to retrieve the JSON and API key, but I havenโt had any success so far.
As someone with limited experience, Iโm hoping to connect with someone skilled in custom back-end logic who can help diagnose and resolve this issue.
Thank you for your time and consideration, and any guidance or advice on where to find more assistance would be greatly appreciated!
ChrisKirkwood/mynewproject4 (github.com)