Extending Flet in Development Mode (flet run) Not Working
@FeodorFitsner is already working on this.
Since Oct 8, 2024.
- Dominant language
- Python
- Stars
- 17k
- Forks
- 694
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 33
Description
Duplicate Check
- I have searched the opened issues and there are no duplicates
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
- Attempt to create a custom control while running the application in development mode using flet run.
- Observe that the custom control does not function as expected.
- 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
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.