Skip to content
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

Extending Flet in Development Mode (flet run) Not Working #3878

Open
1 task done
andersou opened this issue Aug 27, 2024 · 0 comments · May be fixed by #3883
Open
1 task done

Extending Flet in Development Mode (flet run) Not Working #3878

andersou opened this issue Aug 27, 2024 · 0 comments · May be fixed by #3883
Assignees

Comments

@andersou
Copy link
Contributor

Duplicate Check

Describe the bug

When attempting to extend Flet in development mode using flet run, the custom control development does not work properly. It seems that the custom controls only function in build mode, likely because the pubspec is extended during the bootstrap process for compilation but not in run mode.

Code sample

Code
[Paste your code here]

To reproduce

  1. Attempt to create a custom control while running the application in development mode using flet run.
  2. Observe that the custom control does not function as expected.
  3. Switch to build mode and notice that the custom control works correctly.

Expected behavior

Custom controls should work in both development (flet run) and build modes.

Screenshots / Videos

Captures ![image](https://github.com/user-attachments/assets/eda464b9-5dbe-48e1-b97c-33088c027a93)

Operating System

macOS

Operating system details

Sonoma 16.5

Flet version

23.2

Regression

No, it isn't

Suggestions

Adjust the development workflow to ensure that the pubspec is correctly extended during the flet run process, as it is during build mode. This should include compiling the client, enabling custom controls to be compiled and function properly in development mode.

Logs

Logs
[Paste your logs here]

Additional details

No response

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

Successfully merging a pull request may close this issue.

2 participants