@@ -201,7 +201,7 @@ class AboutListTile extends StatelessWidget {
201201 assert (debugCheckHasMaterialLocalizations (context));
202202 return ListTile (
203203 leading: icon,
204- title: child ?? Text (MaterialLocalizations .of (context)! .aboutListTileTitle (
204+ title: child ?? Text (MaterialLocalizations .of (context).aboutListTileTitle (
205205 applicationName ?? _defaultApplicationName (context),
206206 )),
207207 dense: dense,
@@ -405,7 +405,7 @@ class AboutDialog extends StatelessWidget {
405405 ),
406406 actions: < Widget > [
407407 TextButton (
408- child: Text (MaterialLocalizations .of (context)! .viewLicensesButtonLabel),
408+ child: Text (MaterialLocalizations .of (context).viewLicensesButtonLabel),
409409 onPressed: () {
410410 showLicensePage (
411411 context: context,
@@ -417,7 +417,7 @@ class AboutDialog extends StatelessWidget {
417417 },
418418 ),
419419 TextButton (
420- child: Text (MaterialLocalizations .of (context)! .closeButtonLabel),
420+ child: Text (MaterialLocalizations .of (context).closeButtonLabel),
421421 onPressed: () {
422422 Navigator .pop (context);
423423 },
@@ -493,7 +493,7 @@ class _LicensePageState extends State<LicensePage> {
493493 Widget build (BuildContext context) {
494494 return _MasterDetailFlow (
495495 detailPageFABlessGutterWidth: _getGutterSize (context),
496- title: Text (MaterialLocalizations .of (context)! .licensesPageTitle),
496+ title: Text (MaterialLocalizations .of (context).licensesPageTitle),
497497 detailPageBuilder: _packageLicensePage,
498498 masterViewBuilder: _packagesView,
499499 );
@@ -720,7 +720,7 @@ class _PackageListTile extends StatelessWidget {
720720 color: isSelected ? Theme .of (context)! .highlightColor : Theme .of (context)! .cardColor,
721721 child: ListTile (
722722 title: Text (packageName),
723- subtitle: Text (MaterialLocalizations .of (context)! .licensesPackageDetailText (numberLicenses)),
723+ subtitle: Text (MaterialLocalizations .of (context).licensesPackageDetailText (numberLicenses)),
724724 selected: isSelected,
725725 onTap: onTap,
726726 ),
@@ -890,7 +890,7 @@ class _PackageLicensePageState extends State<_PackageLicensePage> {
890890 @override
891891 Widget build (BuildContext context) {
892892 assert (debugCheckHasMaterialLocalizations (context));
893- final MaterialLocalizations localizations = MaterialLocalizations .of (context)! ;
893+ final MaterialLocalizations localizations = MaterialLocalizations .of (context);
894894 final ThemeData ? theme = Theme .of (context);
895895 final String title = widget.packageName;
896896 final String subtitle = localizations.licensesPackageDetailText (widget.licenseEntries.length);
0 commit comments