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

Generate settings code #319

Open
derdilla opened this issue Apr 24, 2024 · 0 comments
Open

Generate settings code #319

derdilla opened this issue Apr 24, 2024 · 0 comments
Labels
contributors-welcome Issues that ready to be implemented by contributors enhancement New feature or request

Comments

@derdilla
Copy link
Owner

What you want:

Settings, ExportSettings, ExportCsvSettings, ExportPdfSettings, and even IntervallStore are largely repetitive and all do their own serialization. It would be great if the boilerplate could be generated.

freezed could generate most of the serialization code but might not work due to immutability and missing listener notification. To improve it, settings objects could be managed in a manual provider class, or the state changes could be managed by "blocs".

Another idea would be to write a custom generator.

Why you want it:

Manually modifying the settings class is currently error-prone and requires far more thought than necessary. Additionally, these huge files artificially inflate project size and make these classes harder to maintain.

@derdilla derdilla added the enhancement New feature or request label Apr 24, 2024
@derdilla derdilla added the contributors-welcome Issues that ready to be implemented by contributors label Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributors-welcome Issues that ready to be implemented by contributors enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant