nank1ro / flutter-shadcn-ui

shadcn-ui ported in Flutter. Awesome UI components for Flutter, fully customizable.

Home Page:https://mariuti.com/shadcn-ui

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Table row indices not starting from 0 when using headers.

Kyziq opened this issue · 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.