diff --git a/packages/flutter/lib/src/material/about.dart b/packages/flutter/lib/src/material/about.dart index c14dcd6ca0..8fa76cbd72 100644 --- a/packages/flutter/lib/src/material/about.dart +++ b/packages/flutter/lib/src/material/about.dart @@ -151,6 +151,7 @@ void showAboutDialog({ String applicationLegalese, List children, }) { + assert(context != null); showDialog( context: context, builder: (BuildContext context) { @@ -185,6 +186,7 @@ void showLicensePage({ Widget applicationIcon, String applicationLegalese }) { + assert(context != null); Navigator.push(context, new MaterialPageRoute( builder: (BuildContext context) => new LicensePage( applicationName: applicationName,