Fixed the LicensePage to close the page before loading the License causes an error (#34907)

This commit is contained in:
hizzd
2019-06-28 23:50:01 +08:00
committed by Dan Field
parent fdcb57b69e
commit d780c2cff6

View File

@@ -401,6 +401,9 @@ class _LicensePageState extends State<LicensePage> {
Priority.animation,
debugLabel: 'License',
);
if (!mounted) {
return;
}
setState(() {
_licenses.add(const Padding(
padding: EdgeInsets.symmetric(vertical: 18.0),