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

In a Flutter web app with Chrome the table do not scroll neither vertically nor horizontally #103

Closed
FeliceT57 opened this issue Dec 13, 2024 · 1 comment

Comments

@FeliceT57
Copy link

here my code:
child: SizedBox(
width: MediaQuery.of(context).size.width * 0.95,
height: MediaQuery.of(context).size.height * 0.6,
child: StickyHeadersTable(
columnsLength: numeroColonne,
rowsLength: listImpiantiPerGriglia.length,
columnsTitleBuilder: (i) {
return Container(
alignment: const Alignment(0, 0),
height: altezzaCella,
width: larghezzaCella,
child: Text(
attivita.titoliColonne[i],
),
);
},
rowsTitleBuilder: (i) {
return Padding(
padding: const EdgeInsets.all(8.0),
child: Text(
titoliRigheRagsoc[i],
),
);
},
cellDimensions: CellDimensions.fixed(
contentCellWidth: larghezzaCella,
contentCellHeight: altezzaCella,
stickyLegendWidth: larghezzaLegend,
stickyLegendHeight: altezzaCella),
contentCellBuilder: (i, j) {
return Container(
alignment: const Alignment(0, 0),
height: altezzaCella,
width: larghezzaCella,
child: Text(
matriceCelle[j][i],
),
);
},
),
),

@FeliceT57
Copy link
Author

I solved my question. My error was to calculate altezzaCella and larghezzaCella in proportion to the dimensions of the screen.

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