nank1ro/flutter-shadcn-ui

Table row indices not starting from 0 when using headers.

Closed this issue · 0 comments

When using the ShadTable component with headers, the row indices do not start from 0. This causes only a subset of rows to be displayed correctly. The issue occurs because the effective row count and row indices are not correctly adjusted for the presence of headers and footers.

Steps to Reproduce:

  1. Use the ShadTable component with a header.
  2. Observe that the first row starts from 1 instead of 0.

Expected Behavior:
The row indices should start from 0 even when a header is present.