auto_size_text icon indicating copy to clipboard operation
auto_size_text copied to clipboard

Crash with PaginatedDataTable

Open Ahmadre opened this issue 6 years ago • 3 comments

Steps to Reproduce

  1. Create a PaginatedDataTable Widget. Insert anywhere (header, columns, rows) an AutoSizeText Widget

  2. 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

Ahmadre avatar Oct 02 '19 19:10 Ahmadre

Thanks, I'll take a look...

simc avatar Oct 02 '19 21:10 simc

any news @leisim ?

Ahmadre avatar Dec 13 '19 19:12 Ahmadre

@Ahmadre sorry, not yet :/

simc avatar Dec 14 '19 22:12 simc