Unverified Commit 6334da01 authored by Hans Muller's avatar Hans Muller Committed by GitHub

Assert that required dialog context args are non-null (#16890)

parent 396298fb
...@@ -151,6 +151,7 @@ void showAboutDialog({ ...@@ -151,6 +151,7 @@ void showAboutDialog({
String applicationLegalese, String applicationLegalese,
List<Widget> children, List<Widget> children,
}) { }) {
assert(context != null);
showDialog<void>( showDialog<void>(
context: context, context: context,
builder: (BuildContext context) { builder: (BuildContext context) {
...@@ -185,6 +186,7 @@ void showLicensePage({ ...@@ -185,6 +186,7 @@ void showLicensePage({
Widget applicationIcon, Widget applicationIcon,
String applicationLegalese String applicationLegalese
}) { }) {
assert(context != null);
Navigator.push(context, new MaterialPageRoute<void>( Navigator.push(context, new MaterialPageRoute<void>(
builder: (BuildContext context) => new LicensePage( builder: (BuildContext context) => new LicensePage(
applicationName: applicationName, applicationName: applicationName,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment