mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
Fix flutter_localizations
README references (#120800)
This commit is contained in:
parent
ab1390e0af
commit
a513d4e7b4
@ -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):
|
|||||||
@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
|
||||||
|
Loading…
Reference in New Issue
Block a user