Skip to content

Commit

Permalink
bfix: save the state after every showcase
Browse files Browse the repository at this point in the history
  • Loading branch information
aman-singh7 committed Dec 22, 2021
1 parent a0dc573 commit e01e4e7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/viewmodels/ib/ib_landing_viewmodel.dart
Original file line number Diff line number Diff line change
Expand Up @@ -50,21 +50,25 @@ class IbLandingViewModel extends BaseModel {
case 'next':
if (!_showCaseState.nextButton) {
_showCaseState = _showCaseState.copyWith(nextButton: true);
saveShowcaseState();
}
break;
case 'prev':
if (!_showCaseState.prevButton) {
_showCaseState = _showCaseState.copyWith(prevButton: true);
saveShowcaseState();
}
break;
case 'toc':
if (!_showCaseState.tocButton) {
_showCaseState = _showCaseState.copyWith(tocButton: true);
saveShowcaseState();
}
break;
case 'drawer':
if (!_showCaseState.drawerButton) {
_showCaseState = _showCaseState.copyWith(drawerButton: true);
saveShowcaseState();
}
break;
}
Expand Down

0 comments on commit e01e4e7

Please sign in to comment.