Skip to content

[State Restoration] Code sample templates, migrate existing code samples - #78757

Merged
shihaohong merged 10 commits into
flutter:masterfrom
shihaohong:state-restoration-sample-template
Mar 23, 2021
Merged

shihaohong merged 10 commits into
flutter:masterfrom
shihaohong:state-restoration-sample-template

Conversation

@shihaohong

@shihaohong shihaohong commented Mar 22, 2021 •

Copy link
Copy Markdown
Contributor

Fixes #78756.

  • Adds stateful and stateless widget API sample templates for state restoration.
  • Migrates existing state restoration samples to make use of the new template.

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read and followed the Flutter Style Guide, including Features we expect every widget to implement.
  • I signed the CLA.
  • I listed at least one issue that this PR fixes in the description above.
  • I updated/added relevant documentation (doc comments with ///).
  • I added new tests to check the change I am making or feature I am adding, or Hixie said the PR is test-exempt.
  • All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@flutter-dashboard

Copy link
Copy Markdown

It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat.

If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix?

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

@flutter-dashboard flutter-dashboard Bot added p: cupertino_ui cupertino_ui package in flutter/packages p: material_ui material_ui package in flutter/packages framework flutter/packages/flutter repository. See also f: labels. c: contributor-productivity Team-specific productivity, code health, technical debt. labels Mar 22, 2021
@google-cla google-cla Bot added the cla: yes label Mar 22, 2021
@shihaohong shihaohong added a: state restoration RestorationManager and related APIs d: api docs Issues with https://api.flutter.dev/ labels Mar 22, 2021
@shihaohong shihaohong changed the title [WIP] [State Restoration] Code sample templates, migrate existing code samples [State Restoration] Code sample templates, migrate existing code samples Mar 22, 2021

@goderbauer goderbauer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jmagman jmagman mentioned this pull request Mar 23, 2021
8 tasks done
@shihaohong

Copy link
Copy Markdown
Contributor Author

Merging as only Cirrus tests are failing due to known issue (#78758), but all the equivalent LUCI tests are passing

@shihaohong
shihaohong merged commit 49adef6 into flutter:master Mar 23, 2021
@shihaohong
shihaohong deleted the state-restoration-sample-template branch March 23, 2021 01:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

a: state restoration RestorationManager and related APIs c: contributor-productivity Team-specific productivity, code health, technical debt. d: api docs Issues with https://api.flutter.dev/ framework flutter/packages/flutter repository. See also f: labels. p: cupertino_ui cupertino_ui package in flutter/packages p: material_ui material_ui package in flutter/packages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[State Restoration] Create a state restoration template to reduce the boilerplate of sample code

2 participants