flet
flet copied to clipboard
Adding elements to a column, rows. __contains__ method.
Duplicate Check
- [x] I have searched the opened issues and there are no duplicates
Describe the requested feature
I would like that in such elements as row, columns and so on it would be possible:
- add an element as in `page.add()
- use
__contains__
method
column = ft.Column()
column.add(
text
)
print(text in column)
Suggest a solution
# add element in column
def add(self, control):
self.controls.append(control)
self.update()
Screenshots
No response
Additional details
This is a good way to bring the library to the same syntax, instead of using page.add()
or column.controls.append()
.