flet-dev / flet

Flet enables developers to easily build realtime web, mobile and desktop apps in Python. No frontend experience required.
https://flet.dev
Apache License 2.0
9.43k stars 360 forks source link

Enhance Error Handling #3149

Open ndonkoHenri opened 2 weeks ago

ndonkoHenri commented 2 weeks ago
base-13 commented 2 weeks ago

I faced this weird bug, in a DataTable if the number of columns is less than the number of datacells in any row it will grey out whole table without throwing error ( refer to the image attacted )image.png flet version: 0.22.0 OS: Windows 11

while if the number of columns is less than number of datacell in rows, it will just not display that cell and display rest of the table, I think this case can be also improved by throwing a warning at terminal about number of datacells being more than columns, or it should just render those cells without a column name.

base-13 commented 1 week ago

I found another thing about DataTable, if you accidentally use any other control than DataCell inside of cells list in DataRow, it will grey out everything same as mentioned above.

ndonkoHenri commented 1 week ago

if you accidentally use any other control than DataCell inside of cells list in DataRow, it will grey out everything same as mentioned above.

What's the behavior you expected?

base-13 commented 1 week ago

if you accidentally use any other control than DataCell inside of cells list in DataRow, it will grey out everything same as mentioned above.

What's the behavior you expected?

to throw a error stating that it was supposed to be a DataCell, not just greying out the whole table without any clue