flet icon indicating copy to clipboard operation
flet copied to clipboard

Adding elements to a column, rows. __contains__ method.

Open theN1C1 opened this issue 4 months ago • 0 comments

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:

  1. add an element as in `page.add()
  2. 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().

theN1C1 avatar Oct 23 '24 06:10 theN1C1