[material_ui] Rename the remaining templates (#12210)
This PR follows up the comment under https://github.com/flutter/packages/pull/12198, and renames all remaining `@template`s so that no templates conflict with the framework.
Note: The templates in `generated_cupertino_localizations.dart` and `generated_material_localizations.dart` have been left as-is for now, as these files are auto-generated. A separate migration of the generation script will be required to address those specific instances.
## Pre-Review Checklist
**Note**: The Flutter team is currently trialing the use of [Gemini Code Assist for GitHub](https://developers.google.com/gemini-code-assist/docs/review-github-code). Comments from the `gemini-code-assist` bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed.
[^1]: Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling.
diff --git a/packages/material_ui/lib/src/dropdown_menu.dart b/packages/material_ui/lib/src/dropdown_menu.dart
index a6ee9bf..fdf056b 100644
--- a/packages/material_ui/lib/src/dropdown_menu.dart
+++ b/packages/material_ui/lib/src/dropdown_menu.dart
@@ -706,7 +706,7 @@
/// the [TextField] can display.
final int? maxLines;
- /// {@macro flutter.widgets.TextField.textInputAction}
+ /// {@macro material_ui.TextField.textInputAction}
final TextInputAction? textInputAction;
/// {@macro flutter.widgets.editableText.cursorHeight}
diff --git a/packages/material_ui/lib/src/progress_indicator.dart b/packages/material_ui/lib/src/progress_indicator.dart
index 93f5223..107d9ef 100644
--- a/packages/material_ui/lib/src/progress_indicator.dart
+++ b/packages/material_ui/lib/src/progress_indicator.dart
@@ -88,7 +88,7 @@
/// for the given use case. See the subclass documentation for details.
final Color? backgroundColor;
- /// {@template flutter.progress_indicator.ProgressIndicator.color}
+ /// {@template material_ui.progress_indicator.ProgressIndicator.color}
/// The progress indicator's color.
///
/// This is only used if [ProgressIndicator.valueColor] is null.
@@ -106,7 +106,7 @@
/// is also null then it defaults to the current theme's [ColorScheme.primary].
final Animation<Color?>? valueColor;
- /// {@template flutter.progress_indicator.ProgressIndicator.semanticsLabel}
+ /// {@template material_ui.progress_indicator.ProgressIndicator.semanticsLabel}
/// The [SemanticsProperties.label] for this progress indicator.
///
/// This value indicates the purpose of the progress bar, and will be
@@ -115,7 +115,7 @@
/// {@endtemplate}
final String? semanticsLabel;
- /// {@template flutter.progress_indicator.ProgressIndicator.semanticsValue}
+ /// {@template material_ui.progress_indicator.ProgressIndicator.semanticsValue}
/// The [SemanticsProperties.value] for this progress indicator.
///
/// This will be used in conjunction with the [semanticsLabel] by
diff --git a/packages/material_ui/lib/src/refresh_indicator.dart b/packages/material_ui/lib/src/refresh_indicator.dart
index 6e55b18..16bc4f8 100644
--- a/packages/material_ui/lib/src/refresh_indicator.dart
+++ b/packages/material_ui/lib/src/refresh_indicator.dart
@@ -298,13 +298,13 @@
/// else for more complicated layouts.
final ScrollNotificationPredicate notificationPredicate;
- /// {@macro flutter.progress_indicator.ProgressIndicator.semanticsLabel}
+ /// {@macro material_ui.progress_indicator.ProgressIndicator.semanticsLabel}
///
/// This will be defaulted to [MaterialLocalizations.refreshIndicatorSemanticLabel]
/// if it is null.
final String? semanticsLabel;
- /// {@macro flutter.progress_indicator.ProgressIndicator.semanticsValue}
+ /// {@macro material_ui.progress_indicator.ProgressIndicator.semanticsValue}
final String? semanticsValue;
/// Defines [strokeWidth] for `RefreshIndicator`.
diff --git a/packages/material_ui/lib/src/search_anchor.dart b/packages/material_ui/lib/src/search_anchor.dart
index 361f3d5..c08ecca 100644
--- a/packages/material_ui/lib/src/search_anchor.dart
+++ b/packages/material_ui/lib/src/search_anchor.dart
@@ -429,7 +429,7 @@
/// To get a different layout, use [viewBuilder] to override.
final SuggestionsBuilder suggestionsBuilder;
- /// {@macro flutter.widgets.TextField.textInputAction}
+ /// {@macro material_ui.TextField.textInputAction}
final TextInputAction? textInputAction;
/// The type of action button to use for the keyboard.
@@ -1608,7 +1608,7 @@
/// {@macro flutter.widgets.editableText.autofocus}
final bool autoFocus;
- /// {@macro flutter.widgets.TextField.textInputAction}
+ /// {@macro material_ui.TextField.textInputAction}
final TextInputAction? textInputAction;
/// The type of action button to use for the keyboard.
diff --git a/packages/material_ui/lib/src/text_field.dart b/packages/material_ui/lib/src/text_field.dart
index 568cb5c..0184fb0 100644
--- a/packages/material_ui/lib/src/text_field.dart
+++ b/packages/material_ui/lib/src/text_field.dart
@@ -456,7 +456,7 @@
/// {@macro flutter.widgets.editableText.keyboardType}
final TextInputType keyboardType;
- /// {@template flutter.widgets.TextField.textInputAction}
+ /// {@template material_ui.TextField.textInputAction}
/// The type of action button to use for the keyboard.
///
/// Defaults to [TextInputAction.newline] if [keyboardType] is