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
e9a91521
Unverified
Commit
e9a91521
authored
Jan 19, 2021
by
Michael Goderbauer
Committed by
GitHub
Jan 19, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add ios and hot reload/restart infos to restoration docs (#73585)
parent
2a188eec
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
restoration.dart
packages/flutter/lib/src/services/restoration.dart
+26
-0
No files found.
packages/flutter/lib/src/services/restoration.dart
View file @
e9a91521
...
...
@@ -89,6 +89,32 @@ typedef _BucketVisitor = void Function(RestorationBucket bucket);
/// is always ready to go on the platform thread when the operating system needs
/// it.
///
/// ## State Restoration on iOS
///
/// To enable state restoration on iOS, a restoration identifier has to be
/// assigned to the [FlutterViewController](https://api.flutter.dev/objcdoc/Classes/FlutterViewController.html).
/// If the standard embedding (produced by `flutter create`) is used, this can
/// be accomplished with the following steps:
///
/// 1. In the app's directory, open `ios/Runner.xcodeproj` with Xcode.
/// 2. Select `Main.storyboard` under `Runner/Runner` in the Project Navigator
/// on the left.
/// 3. Select the `Flutter View Controller` under
/// `Flutter View Controller Scene` in the view hierarchy.
/// 4. Navigate to the Identity Inspector in the panel on the right.
/// 5. Enter a unique restoration ID in the provided field.
/// 6. Save the project.
///
/// ## Development with hot restart and hot reload
///
/// Changes applied to your app with hot reload and hot restart are not
/// persisted on the device. They are lost when the app is fully terminated and
/// restarted, e.g. by the operating system. Therefore, your app may not restore
/// correctly during development if you have made changes and applied them with
/// hot restart or hot reload. To test state restoration, always make sure to
/// fully re-compile your application (e.g. by re-executing `flutter run`) after
/// making a change.
///
/// See also:
///
/// * [ServicesBinding.restorationManager], which holds the singleton instance
...
...
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