Why are the default values of arguments that are Optional in a component defined as None?
Duplicate Check
- [x] I have searched the opened issues and there are no duplicates
Describe the requested feature
Why are the default values of most arguments that are Optional defined as None instead of actual values in the component implementation?
For example, the default value of spacing in the Row component is 10, but when I hover over the function in VSCode, I cannot know the default value and have to check the documentation or implementation. Isn't this inconvenient?
The idea, in short, is that I would like the implementation to be able to check what is given as the default value for an argument that actually has a default value.
Suggest a solution
No response
Screenshots
No response
Additional details
No response
I think what you're asking is to hover the control and get both the type and default values.
If so. This would generally mean the development team would have to rework the whole flet modules to implement the default values in the modules description which would generally take time.
For a short time, u can set ur own custom values for better responsiveness
Next release will have the default values in the constructors.
I understand that it will take time to change this. I thought I had asked what the intent was with this and then suggested it as an improvement. Thank you for your understanding!
Fixed in Flet Alpha and future stable releases.