Skip to content

On mac desktop, the main.dart file is not getting updated in ~/Library/Application Support/io.flutterflow.prod.mac/{app name}/lib/main.dart #5641

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
1 of 2 tasks
JessicaGillan opened this issue Apr 1, 2025 · 5 comments
Assignees

Comments

@JessicaGillan
Copy link

JessicaGillan commented Apr 1, 2025

Can we access your project?

  • I give permission for members of the FlutterFlow team to access and test my project for the sole purpose of investigating this issue.

Current Behavior

When I change my RevenueCat api key value and add a custom action to main.dart in FF desktop, then hot reload, restart, or stop and restart a test run on the simulator, the main.dart file in ~/Library/Application Support/io.flutterflow.prod.mac/tidybook_mobile_app/lib/main.dart does not reflect the changes.

More detail: I noticed this issue when changing my RevenueCat api key to deploy my production environment.

  • Before the latest FF desktop update my subscriptions were working correctly in both my development and production environments, which requires changing the RevenueCat key manually when you switch environments.
  • After the update, I was developing in dev, deployed dev to Testflight, and subscriptions were working. Then I changed the environment to production, manually changed the RevenueCat key, and did a test run on the simulator. This resulted in a RevenueCat incorrect configuration error.
  • I checked the built main.dart in ~/Library/Application Support/io.flutterflow.prod.mac/tidybook_mobile_app/lib/main.dart and saw that it still had the development api key.
  • I have deleted ~/Library/Application Support/io.flutterflow.prod.mac/tidybook_mobile_app and rebuilt and it still did not get updated.

Expected Behavior

When I change my RevenueCat api key value and add a custom action to main.dart in FF desktop, then hot reload, restart, or stop and restart a test run on the simulator, the main.dart file in ~/Library/Application Support/io.flutterflow.prod.mac/tidybook_mobile_app/lib/main.dart gets updated with the changes.

Steps to Reproduce

  1. On the Mac desktop FF app, Change the Revenue cat api key
  2. Hot reload, restart, or stop and re-run on a simulator
  3. Check ~/Library/Application Support/io.flutterflow.prod.mac/tidybook_mobile_app/lib/main.dart ; it will not have the new value

Reproducible from Blank

  • The steps to reproduce above start from a blank project.

Bug Report Code (Required)

IT40l/H124Z2rsNK+Kryb8Ewvyk5JVw4aIIRjsBraCosfZT2BLMcec/RVERuZ7DiTHxDMGGjr2oW08qOueDlGPArFAWsGbV8ws1uTA//XT+QRYy1FJWgdEF9GfJYC26Oy6ujmBB5COpZdVYl7VOyf9+uTnTXJKLNOW48D6/LZO4=

Visual documentation

Image

Image

Environment

- FlutterFlow version: 5.3.5
- Platform: MacOS Desktop
- Browser name and version:
- Operating system and version affected: macOS Sonoma 14.6.1

Additional Information

This is blocking me from releasing. I can't release any new app versions until this is fixed.

@JessicaGillan JessicaGillan added the status: needs triage A potential issue that has not been confirmed as a bug. label Apr 1, 2025
@Alezanello Alezanello self-assigned this Apr 2, 2025
Copy link
Collaborator

Hi there!
We made some updates yesterday that were affecting the loading and updating of main.dart. Could you please try again and let us know if it works for you now?

@Alezanello Alezanello removed the status: needs triage A potential issue that has not been confirmed as a bug. label Apr 2, 2025
@JessicaGillan
Copy link
Author

JessicaGillan commented Apr 2, 2025

It's still broken.

I updated FF Mac desktop to version 5.3.7, ran a build, and it did not fix it. I also tried deleting the ~/Library/Application Support/io.flutterflow.prod.mac/tidybook_mobile_app folder completely and starting a new test run to rebuild - but it did not update ~/Library/Application Support/io.flutterflow.prod.mac/tidybook_mobile_app/lib/main.dart.

The main.dart files shown in the FF mac desktop app and the FF web app on Chrome both show the correct values for the revenue cat api key and the added custom action. The built main.dart file is unchanged. (Same as the original screenshots I attached).

@JessicaGillan
Copy link
Author

I messed around a lot and at one point I edited the file through the web app, then went back and did a build on the desktop app, and it got the updates. But updating main.dart is still broken on the desktop app. I just changed the revenue cat key back to my dev key on desktop, built, and now it still has the prod key.

Summary: updating the revenue cat key and main.dart file is still broken on the desktop app. There seems to be some workaround of making edits on web and then building on desktop that can get it to pick up changes but I haven't tested that repeatedly.

Copy link
Collaborator

Hi there,

Apologies for the delayed response! Just wanted to follow up and let you know that I haven't been able to reproduce the issue so far. I'm planning to run a few more tests and will keep you updated with any findings.

Copy link
Collaborator

Hello,

I apologize for the late response. Does this issue still persist, or was it fixed in the latest FlutterFlow updates?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants