rodydavis / data_tables

Data Tables for Flutter

Home Page:https://rodydavis.github.io/data_tables/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Checkbox Column (showSelect: false)

xxJeevesxx opened this issue · comments

Love the package, thanks for creating it! I'm trying to remove the checkbox column.I try to disable the checkbox something I didn't expect happens. I see that showSelect maps to showCheckboxColumn in your implementation however it also removes the header along the top and the checkbox column doesn't actually disappear. Am I just missing something? I haven't played with the Flutter DataTable yet so maybe it happens there too. Any thoughts?

Before:
image

After (showSelect: false):
image

Edit: spelling

Ok that’s weird, I thought I fixed that! I’ll double check today 👍🏼

Did you check with the latest?

I was hoping I could figure it out on my own but alas I wasn't sure.

I'm using 1.3.2 in pubspec.
image

Ok I think it is a bug 👍🏼

For the DataRow you need to also remove:

  onSelectChanged: (bool value) {
                if (dessert.selected != value) {
                  setState(() {
                    dessert.selected = value;
                  });
                }
              },

Ah, I see it now, thanks. Bummer though, I was hoping to be able to have an onTap like function for the row without having the checkbox. Any thoughts on that? Maybe I’ll have to figure that out on my own :).

Thanks again for your help and quick response. :)