nank1ro / flutter-shadcn-ui

shadcn-ui ported in Flutter. Awesome UI components for Flutter, fully customizable.
https://mariuti.com/shadcn-ui
MIT License
657 stars 42 forks source link

Table row indices not starting from 0 when using headers. #66

Closed Kyziq closed 1 month ago

Kyziq commented 1 month ago

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.