init method
Implementation
@override
void init() {
registerListener(
cellLayoutChangedStream,
(event) {
// assume that all layout changes occur from the root,
// and that we don't have to update the parent's constraints
api.workspace.workspaceConfigs.panesLayout
..width = (api.workspace.workspaceConfigs.isPrimaryBarExpanded
? api.workspace.workspaceConfigs.stylingConfigs.windowWidth -
(utils.AffogatoConstants.primaryBarExpandedWidth +
utils.AffogatoConstants.primaryBarClosedWidth)
: api.workspace.workspaceConfigs.stylingConfigs.windowWidth -
utils.AffogatoConstants.primaryBarClosedWidth) -
3
..height =
api.workspace.workspaceConfigs.stylingConfigs.windowHeight -
utils.AffogatoConstants.statusBarHeight;
_recomputeChildConstraints(api.workspace.workspaceConfigs.panesLayout);
AffogatoEvents.windowPaneCellRequestReloadEventsController
.add(WindowPaneCellRequestReloadEvent(event.cellId));
},
);
}