Skip to content

Crash with PaginatedDataTable #37

@Ahmadre

Description

@Ahmadre

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions