Reland: Update link branches to main (#146882)
Reland https://github.com/flutter/flutter/pull/146558, reverted in https://github.com/flutter/flutter/pull/146880 due to an outdated test result ## Original description - Update CS and googlesource.com link branches - Update GitHub /blob/ and /tree/ links Tested links manually and fixes a few broken or deprecated links Added a test that validates that `master` isn't used, except for specified repos. Part of https://github.com/flutter/flutter/issues/121564
This commit is contained in:
@@ -20,7 +20,7 @@ and `WidgetsLocalizations`, with appropriate name substitutions):
|
||||
String get showMenuTooltip;
|
||||
```
|
||||
to the localizations class `MaterialLocalizations`,
|
||||
in [`packages/flutter/lib/src/material/material_localizations.dart`](https://github.com/flutter/flutter/blob/master/packages/flutter/lib/src/material/material_localizations.dart);
|
||||
in [`packages/flutter/lib/src/material/material_localizations.dart`](https://github.com/flutter/flutter/blob/main/packages/flutter/lib/src/material/material_localizations.dart);
|
||||
|
||||
### For messages with parameters, add new function
|
||||
```
|
||||
@@ -41,7 +41,7 @@ and `WidgetsLocalizations`, with appropriate name substitutions):
|
||||
@override
|
||||
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/flutter/flutter/blob/master/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/main/packages/flutter_localizations/lib/src/material_localizations.dart), and add a raw getter as demonstrated below:
|
||||
|
||||
```
|
||||
/// The raw version of [aboutListTileTitle], with `$applicationName` verbatim
|
||||
|
||||
Reference in New Issue
Block a user