toggleLeftBarInWideScreen method
void
toggleLeftBarInWideScreen()
Implementation
void toggleLeftBarInWideScreen() {
switch (_lbsState) {
case LeftBarState.lbsHidden:
_leftPanelWidth = _leftPanelWidthLast;
_lbsState = LeftBarState.lbsNormal;
notifyListeners();
break;
case LeftBarState.lbsMinimized:
_leftPanelWidth = _leftPanelWidthLast;
_lbsState = LeftBarState.lbsNormal;
notifyListeners();
break;
case LeftBarState.lbsNormal:
_leftPanelWidthLast = _leftPanelWidth;
_leftPanelWidth = LEFT_BAR_CLOSED_WIDTH;
_lbsState = LeftBarState.lbsMinimized;
notifyListeners();
break;
default:
_leftPanelWidth = _leftPanelWidthLast;
_lbsState = LeftBarState.lbsNormal;
notifyListeners();
}
// if (kDebugMode) {
// print("$_lbsState, $_leftPanelWidth");
// }
}