createHeader property
createHeader is a user-definable area located above the upper column area of PlutoGrid.
Just pass a callback that returns Widget . Assuming you created a widget called Header.
createHeader: (stateManager) {
stateManager.headerHeight = 45;
return Header(
stateManager: stateManager,
);
},
If the widget returned to the callback detects the state and updates the UI,
register the callback in PlutoGridStateManager.addListener
and update the UI with StatefulWidget.setState
, etc.
The listener callback registered with PlutoGridStateManager.addListener
must remove the listener callback with PlutoGridStateManager.removeListener
when the widget returned by the callback is dispose.
Implementation
final CreateHeaderCallBack? createHeader;