examples
examples copied to clipboard
[posted in wrong place; please delete]
As the title suggests, TextField's col attribute does not allow multiple options, but a single value works correctly.
Example code:
Works:
from flet import TextField, ResponsiveRow, Page, app
def main(page: Page):
field = TextField(
label="TextField",
hint_text="a text field",
col=3,
multiline=False,
expand=True,
)
rr = ResponsiveRow([
field, ]
)
page.add(rr)
app(main)
Does not work:
from flet import TextField, ResponsiveRow, Page, app
def main(page: Page):
field = TextField(
label="TextField",
hint_text="a text field",
col={'xs': 1, 'sm': 2, 'md': 3, 'lg': 4, 'xl': 5, 'xll': 6},
multiline=False,
expand=True,
)
rr = ResponsiveRow([
field, ]
)
page.add(rr)
app(main)
Not related and not an issue, but thank you for the hard work making Flet :).