bosskmk / pluto_grid

PlutoGrid is a dataGrid for flutter that can be controlled by the keyboard on desktop and web. Of course, it works well on Android and IOS.
https://pluto.weblaze.dev
MIT License
664 stars 305 forks source link

Unexpected null value [Bug] #889

Closed adultcode closed 1 year ago

adultcode commented 1 year ago

I tried all the examples they work well but every of theme give me this error in terminal

First error

Container(constraints: BoxConstraints(w=600.0, h=500.0)):
Unexpected null value.

Second error

The following assertion was thrown during performLayout():
Each child must be laid out exactly once.

Code

Scaffold(
      appBar: AppBar(),
      body:   Container(
         constraints: BoxConstraints(
           minHeight: 500,maxHeight: 500,
           minWidth: 600,maxWidth: 600
         ),
        child: PlutoGrid(
            columns: columns,
            rows: rows
          createFooter: (stateManager) {
            stateManager.setPageSize(10, notify: false); // default 40
            return PlutoPagination(stateManager);
          },
            onChanged: (PlutoGridOnChangedEvent event) {
              print(event);
            },
          ),
      ),
    );
github-actions[bot] commented 1 year ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 1 year ago

This issue was closed because it has been inactive for 14 days since being marked as stale.