Add state restoration to LicensePage
#145886
Labels
a: state restoration
RestorationManager and related APIs
c: proposal
A detailed proposal for a change to Flutter
f: material design
flutter/packages/flutter/material repository.
framework
flutter/packages/flutter repository. See also f: labels.
P2
Important issues not at the top of the work list
team-design
Owned by Design Languages team
triaged-design
Triaged by Design Languages team
Use case
I'm setting up state restoration for my app, but
LicensePage
doesn't have support for it. For instance, if I scroll down in theLicensePage
and then leave the app while "Don't keep activities" is enabled, the scroll position is lost. And if I press on one of the list tiles, opening a new page with the licenses of a specific package, then I leave the app and open it again, I'm thrown back to the mainLicensePage
.To be clear, I'm not using
showLicensePage
here, because I'm aware that it usesNavigator.push
to push theLicensePage
route, whereNavigator.push
doesn't support state restoration. So I usedNavigator.restorablePush
manually to push the page route:Which is why the main
LicensePage
route itself is still restored.Proposal
Add state restoration support in
LicensePage
and its subpages.The text was updated successfully, but these errors were encountered: