Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot dynamically update table contents #34

Open
laterdayi opened this issue May 29, 2024 · 0 comments
Open

Cannot dynamically update table contents #34

laterdayi opened this issue May 29, 2024 · 0 comments

Comments

@laterdayi
Copy link

Cannot dynamically update table contents

ExpandableTableCell _buildCell(String content, {CellBuilder? builder}) {
    return ExpandableTableCell(
      child: builder != null
          ? null
          : GestureDetector(
              onTap: () {
                print('Cell $content tapped');
                // update cell content
                setState(() {
                  data['rows'][0]['columns'][0]['value'] = 'Updated';
                });
              },
              child: DefaultCellCard(
                child: Center(
                  child: Text(
                    content,
                    style: textStyle,
                  ),
                ),
              ),
            ),
      builder: builder,
    );
  }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant