Unverified Commit a513d4e7 authored by Taha Tesser's avatar Taha Tesser Committed by GitHub

Fix `flutter_localizations` README references (#120800)

parent ab1390e0
...@@ -20,7 +20,7 @@ and `WidgetsLocalizations`, with appropriate name substitutions): ...@@ -20,7 +20,7 @@ and `WidgetsLocalizations`, with appropriate name substitutions):
String get showMenuTooltip; String get showMenuTooltip;
``` ```
to the localizations class `MaterialLocalizations`, to the localizations class `MaterialLocalizations`,
in [`packages/flutter/lib/src/material/material_localizations.dart`](https://github.com/harperl-lgtm/flutter/blob/bottomSheetScrimFocus/packages/flutter/lib/src/material/material_localizations.dart); in [`packages/flutter/lib/src/material/material_localizations.dart`](https://github.com/flutter/flutter/blob/master/packages/flutter/lib/src/material/material_localizations.dart);
### For messages with parameters, add new function ### For messages with parameters, add new function
``` ```
...@@ -41,7 +41,7 @@ and `WidgetsLocalizations`, with appropriate name substitutions): ...@@ -41,7 +41,7 @@ and `WidgetsLocalizations`, with appropriate name substitutions):
@override @override
String aboutListTileTitle(String applicationName) => 'About $applicationName'; String aboutListTileTitle(String applicationName) => 'About $applicationName';
``` ```
For messages with parameters, do also add the function to `GlobalMaterialLocalizations` in [`packages/flutter_localizations/lib/src/material_localizations.dart`](https://github.com/harperl-lgtm/flutter/blob/bottomSheetScrimFocus/packages/flutter_localizations/lib/src/material_localizations.dart), and add a raw getter as demonstrated below: For messages with parameters, do also add the function to `GlobalMaterialLocalizations` in [`packages/flutter_localizations/lib/src/material_localizations.dart`](https://github.com/flutter/flutter/blob/master/packages/flutter_localizations/lib/src/material_localizations.dart), and add a raw getter as demonstrated below:
``` ```
/// The raw version of [aboutListTileTitle], with `$applicationName` verbatim /// The raw version of [aboutListTileTitle], with `$applicationName` verbatim
......
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