Need help with back-end code

Troubleshooting

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)

What have you tried so far?

I've listed a lot in the description on what i have tried so far. Apologize this is my first time reaching out on flutter flow. i am new to coding so i have tried looking on stack overflow and also discord to try and seek some help but to no avail. if anyone has any recommendations on what i can do or where i can go to get the help i need i would greatly appreciate it. thank you in advance.

Did you check FlutterFlow's Documentation for this topic?
No
1
3 replies