auto_size_text
auto_size_text copied to clipboard
Crash with PaginatedDataTable
Steps to Reproduce
-
Create a PaginatedDataTable Widget. Insert anywhere (header, columns, rows) an AutoSizeText Widget
-
Try to render/run your App
Code sample
SingleChildScrollView(
child: PaginatedDataTable(
header: AutoSizeText(
Localizations.of(context)
.trans('TABLE_HEADER'),
maxLines: 1,
style: TextStyle(
fontSize: 22, color: Colors.black.withOpacity(.7))),
columns: _buildDataTableColumns(),
source: _buildTableSource(),
rowsPerPage: 10,
),
),
Error
════════ Exception caught by rendering library ═════════════════════════════════
The following assertion was thrown during performLayout():
LayoutBuilder does not support returning intrinsic dimensions.
Calculating the intrinsic dimensions would require running the layout callback speculatively, which might mutate the live render object tree.
Version
- Flutter version: 1.10.6.pre97
- auto_size_text version: ^1.1.2
Thanks, I'll take a look...
any news @leisim ?
@Ahmadre sorry, not yet :/