Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
75c07ef1
Unverified
Commit
75c07ef1
authored
Oct 02, 2019
by
gaaclarke
Committed by
GitHub
Oct 02, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated the docstring for SystemNavigator.pop.
It had an Android bias and was incorrect for iOS.
parent
8b9e144e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
7 deletions
+12
-7
system_navigator.dart
packages/flutter/lib/src/services/system_navigator.dart
+12
-7
No files found.
packages/flutter/lib/src/services/system_navigator.dart
View file @
75c07ef1
...
...
@@ -10,15 +10,20 @@ import 'system_channels.dart';
class
SystemNavigator
{
SystemNavigator
.
_
();
///
Instructs the system navigator to remove this activity from the stack and
///
return to the previous activity
.
///
Removes the topmost Flutter instance, presenting what was before
///
it
.
///
/// On
iOS, calls to this method are ignored because Apple's human interface
///
guidelines state that applications should not exit themselves
.
/// On
Android, removes this activity from the stack and returns to
///
the previous activity
.
///
/// This method should be preferred over calling `dart:io`'s [exit] method, as
/// the latter may cause the underlying platform to act as if the application
/// had crashed.
/// On iOS, calls `popViewControllerAnimated:` if the root view
/// controller is a `UINavigationController`, or
/// `dismissViewControllerAnimated:completion:` if the top view
/// controller is a `FlutterViewController`.
///
/// This method should be preferred over calling `dart:io`'s [exit]
/// method, as the latter may cause the underlying platform to act
/// as if the application had crashed.
static
Future
<
void
>
pop
()
async
{
await
SystemChannels
.
platform
.
invokeMethod
<
void
>(
'SystemNavigator.pop'
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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