Commit 99b3fac4 authored by Azat Alimov's avatar Azat Alimov
Browse files

Merge branch 'exit_editing_mode' into 'dev'

exit editing mode on navigation

See merge request !176
parents 985efbdc 06327e0c
Pipeline #5750 passed with stages
in 5 minutes and 58 seconds
Showing with 5 additions and 0 deletions
+5 -0
......@@ -279,6 +279,10 @@ class SceneController extends ChangeNotifier {
return pageControllers.firstWhereOrNull((pageController) => pageController.label == label);
}
exitEditMode() {
pageControllers.forEach((pageController) => pageController.isInEditMode.value = false);
}
scheduleUIUpdate() {
pageControllers.forEach((pageController) {
pageController.scheduleUIUpdate();
......
......@@ -78,6 +78,7 @@ class NavigationItemView extends StatelessWidget {
return TextButton(
onPressed: item.targetViewName != null
? () {
sceneController.exitEditMode();
sceneController.navigateToNewContext(
clearStack: true, animated: false, viewName: item.targetViewName);
sceneController.navigationIsVisible.value = false;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment