Comments (14)
You can actually help with that, if you want :)
Here's an example: https://flet.dev/docs/controls/image#fit
from website.
(Almost) all properties are actually optional, so let's just mention the main type: bool
If you are hopping on this, please make sure to follow the style used "Value is of type ... [and defaults to ...]" :)
from website.
A quick question @ndonkoHenri
Should it look like this
### PaddingValue
Union of int
, float
, Padding
and None
.
I have sent a pull request in exactly this format.
from website.
For now, the laptop on which I write this code is not in working condition, and I don't know how much I would have to wait for that. As this issue is related to all controls, I think it should be kept opened. What is your opinion?
from website.
Thank you!
from website.
Should the changes be like bool
or Optional[bool]
where it is optional?
from website.
Bruh, I have a question. Can I just "copy/paste" the values from function (property) definitions and see the def_value from there or is there something more to do, like with the action_button_padding
with type of PaddingValue
which is of course a union.
from website.
def_value
is the default value of a property.
Not all props have one though. But if the property you are willing to document has one, then you can mention it.
Concerning stuffs like PaddingValue
, I think you can just write it like that in the docs too. We could then add a section/page in the docs (still thinking of how it could be named) for all of these types, with more information on the possible values.
from website.
Got it!
As many of the PaddingValue
things are also in the docs, I suggest the name of the section as "Type Aliases". This is also a name of a new feature in python.
from website.
Now there are conflicting types, there is a PaddingValue
and a padding.Padding
. I think I should leave those properties in the docs as they are in which type is given padding.Padding
. They accept PaddingValue
. What do you think?
from website.
I suggest the name of the section as "Type Aliases". This is also a name of a new feature in python.
Nice suggestion, thanks. So, we could have "Aliases" page under "References/Types" section of the docs. Will you like to create the file for this? (aliases.md
under docs/references/types
)
Now there are conflicting types, there is a PaddingValue and a padding.Padding.
If we have this aliases page, we could then set the value-type of all padding-related props to PaddingValue
, which has link to the aliases page (it will look like /docs/references/types/aliases#paddingvalue
).
This will fix the conflict, right?
from website.
Will you like to create the file for this?
Sure!
from website.
Can we close this issue as completed @taaaf11 ?
from website.
Alright, no prob, let's keep it opened.
from website.
Related Issues (20)
- Controls Tab, and the 'disabled' property HOT 1
- Onboarding Docs are seriously anti-"Production Ready" HOT 3
- Comment out multilang from docs if it's far far distant plan HOT 1
- Document Page props !
- Broken link on `page.on_scroll`
- fix typo: "Countinuos" of `CountinuosRectangleBorder` and similar to "Continuous"
- Can you add a formatting configuration to this project, such as prettier? HOT 13
- Document `ExpansionTile`, `SegmentedButton`, and `BottomAppBar`
- Incomplete Markdown documentation HOT 2
- Document `SearchBar`
- Pagelet control docs
- Typo in the Audio docs?
- Add a list of supported file formats in `Audio` control docs HOT 2
- `e.data` vs. `e.control.data` HOT 2
- Control docs fixes
- Document `v0.21.0` controls and properties
- Flet accessibility's bug
- CupertinoPicker properties docs
- Update tutorials
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from website.