Skip to content

Commit

Permalink
Resolves AppLocalizations return-type issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Akshatji800 committed Sep 16, 2023
1 parent 7641a97 commit 054f984
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/l10n/l10n.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ import 'package:flutter_gen/gen_l10n/app_localizations.dart';
export 'package:flutter_gen/gen_l10n/app_localizations.dart';

extension AppLocalizationsX on BuildContext {
AppLocalizations get l10n => AppLocalizations.of(this);
AppLocalizations get l10n => AppLocalizations.of(this)!;
}

0 comments on commit 054f984

Please sign in to comment.