bosskmk / pluto_grid

PlutoGrid is a dataGrid for flutter that can be controlled by the keyboard on desktop and web. Of course, it works well on Android and IOS.
https://pluto.weblaze.dev
MIT License
637 stars 291 forks source link

[Help] How an i delete a single column? #941

Closed jesussmile closed 9 months ago

jesussmile commented 9 months ago

In the documentation i have

// Add `columns` in place of `columnIdx`.
void insertColumns(int columnIdx, List<PlutoColumn> columns);

// Remove all `columns`.
void removeColumns(List<PlutoColumn> columns);

basically insert a column or remove all columns, is there a way to delete just one particular column? for example i have a calender app where the rows are filled from server, now when i get data for another month i can't find a method to delete or add just one column to fit the days in a month, as per your other answers you have suggested to set column outside the build method but i can't set it dynamically, also when i rebuild the plutogrid there are a lot of issue with duplicated keys and column rendering with empty rows etc, how to solve this issue. ?

vipw commented 9 months ago

Doesn't removeColumns([columnToRemove]); work?