Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Memri
Flutter App for Memri
Commits
99b3fac4
Commit
99b3fac4
authored
3 years ago
by
Azat Alimov
Browse files
Options
Download
Plain Diff
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
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/MemriApp/Controllers/SceneController.dart
+4
-0
lib/MemriApp/Controllers/SceneController.dart
lib/MemriApp/UI/Navigation/NavigationPaneView.dart
+1
-0
lib/MemriApp/UI/Navigation/NavigationPaneView.dart
with
5 additions
and
0 deletions
+5
-0
lib/MemriApp/Controllers/SceneController.dart
+
4
-
0
View file @
99b3fac4
...
...
@@ -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
();
...
...
This diff is collapsed.
Click to expand it.
lib/MemriApp/UI/Navigation/NavigationPaneView.dart
+
1
-
0
View file @
99b3fac4
...
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets