Updated links to Material design guidelines to use short links. (#17077)
diff --git a/examples/catalog/lib/app_bar_bottom.dart b/examples/catalog/lib/app_bar_bottom.dart
index fd934d7..ebfe41a 100644
--- a/examples/catalog/lib/app_bar_bottom.dart
+++ b/examples/catalog/lib/app_bar_bottom.dart
@@ -141,5 +141,5 @@
See also:
- The "Components-Tabs" section of the material design specification:
- <https://material.io/guidelines/components/tabs.html>
+ <https://material.io/go/design-tabs>
*/
diff --git a/examples/catalog/lib/tabbed_app_bar.dart b/examples/catalog/lib/tabbed_app_bar.dart
index 1e0bc59..08b78c1 100644
--- a/examples/catalog/lib/tabbed_app_bar.dart
+++ b/examples/catalog/lib/tabbed_app_bar.dart
@@ -98,5 +98,5 @@
See also:
- The "Components-Tabs" section of the material design specification:
- <https://material.io/guidelines/components/tabs.html>
+ <https://material.io/go/design-tabs>
*/
diff --git a/packages/flutter/lib/src/material/colors.dart b/packages/flutter/lib/src/material/colors.dart
index 124f60e..c9b3c91 100644
--- a/packages/flutter/lib/src/material/colors.dart
+++ b/packages/flutter/lib/src/material/colors.dart
@@ -66,7 +66,7 @@
/// See also:
///
/// * [Colors], which defines all of the standard material colors.
-/// * <https://material.io/guidelines/style/color.html#color-color-schemes>
+/// * <https://material.io/go/design-theming#color-color-schemes>
class MaterialAccentColor extends ColorSwatch<int> {
/// Creates a color swatch with a variety of shades appropriate for accent
/// colors.
diff --git a/packages/flutter/lib/src/material/material_localizations.dart b/packages/flutter/lib/src/material/material_localizations.dart
index e7d0b41..bf53073 100644
--- a/packages/flutter/lib/src/material/material_localizations.dart
+++ b/packages/flutter/lib/src/material/material_localizations.dart
@@ -180,7 +180,7 @@
/// obtained from [Theme.of] no longer inherits text style properties and
/// contains a complete set of properties needed to style a [Text] widget.
///
- /// See also: https://material.io/guidelines/style/typography.html
+ /// See also: https://material.io/go/design-typography
TextTheme get localTextGeometry;
/// Formats [number] as a decimal, inserting locale-appropriate thousands
diff --git a/packages/flutter/lib/src/material/paginated_data_table.dart b/packages/flutter/lib/src/material/paginated_data_table.dart
index 0e5cd07..131372e 100644
--- a/packages/flutter/lib/src/material/paginated_data_table.dart
+++ b/packages/flutter/lib/src/material/paginated_data_table.dart
@@ -31,7 +31,7 @@
/// See also:
///
/// * [DataTable], which is not paginated.
-/// * <https://material.io/guidelines/components/data-tables.html#data-tables-tables-within-cards>
+/// * <https://material.io/go/design-data-tables#data-tables-tables-within-cards>
class PaginatedDataTable extends StatefulWidget {
/// Creates a widget describing a paginated [DataTable] on a [Card].
///
diff --git a/packages/flutter/lib/src/material/theme_data.dart b/packages/flutter/lib/src/material/theme_data.dart
index cefbf2b..c0ae600 100644
--- a/packages/flutter/lib/src/material/theme_data.dart
+++ b/packages/flutter/lib/src/material/theme_data.dart
@@ -624,7 +624,7 @@
// more towards using light text than WCAG20 recommends. Material Design spec
// doesn't say what value to use, but 0.15 seemed close to what the Material
// Design spec shows for its color palette on
- // <https://material.io/guidelines/style/color.html#color-color-palette>.
+ // <https://material.io/go/design-theming#color-color-palette>.
const double kThreshold = 0.15;
if ((relativeLuminance + 0.05) * (relativeLuminance + 0.05) > kThreshold)
return Brightness.light;
diff --git a/packages/flutter/lib/src/material/typography.dart b/packages/flutter/lib/src/material/typography.dart
index bf98fd1..2f215c1 100644
--- a/packages/flutter/lib/src/material/typography.dart
+++ b/packages/flutter/lib/src/material/typography.dart
@@ -17,7 +17,7 @@
/// [BuildContext] and read the [ThemeData.textTheme] property.
///
/// The following image [from the material design
-/// specification](https://material.io/guidelines/style/typography.html#typography-styles)
+/// specification](https://material.io/go/design-typography#typography-styles)
/// shows the recommended styles for each of the properties of a [TextTheme].
/// This image uses the `Roboto` font, which is the font used on Android. On
/// iOS, the [San Francisco
@@ -435,8 +435,8 @@
/// expected to use [Theme.of] to get [TextTheme] objects fully populated with
/// font properties.
///
-/// See also: https://material.io/guidelines/style/typography.html
-// TODO(yjbanov): implement font fallback (see "Font stack" at https://material.io/guidelines/style/typography.html)
+/// See also: https://material.io/go/design-typography
+// TODO(yjbanov): implement font fallback (see "Font stack" at https://material.io/go/design-typography)
class _MaterialTextColorThemes {
static const TextTheme blackMountainView = const TextTheme(
display4: const TextStyle(debugLabel: 'blackMountainView display4', fontFamily: 'Roboto', inherit: true, color: Colors.black54, decoration: TextDecoration.none),
@@ -496,7 +496,7 @@
}
/// Defines text geometries for the three language categories defined in
-/// https://material.io/guidelines/style/typography.html.
+/// https://material.io/go/design-typography.
class MaterialTextGeometry {
/// The name of the English-like script category.
static const String englishLikeCategory = 'English-like';
diff --git a/packages/flutter/test/material/list_tile_test.dart b/packages/flutter/test/material/list_tile_test.dart
index 40d0c48..36030bf 100644
--- a/packages/flutter/test/material/list_tile_test.dart
+++ b/packages/flutter/test/material/list_tile_test.dart
@@ -46,7 +46,7 @@
void main() {
testWidgets('ListTile geometry (LTR)', (WidgetTester tester) async {
- // See https://material.io/guidelines/components/lists.html
+ // See https://material.io/go/design-lists
final Key leadingKey = new GlobalKey();
final Key trailingKey = new GlobalKey();
diff --git a/packages/flutter/test/material/text_field_test.dart b/packages/flutter/test/material/text_field_test.dart
index d3a699b..ff3f435 100644
--- a/packages/flutter/test/material/text_field_test.dart
+++ b/packages/flutter/test/material/text_field_test.dart
@@ -1168,7 +1168,7 @@
),
);
final double iconRight = tester.getTopRight(find.byType(Icon)).dx;
- // Per https://material.io/guidelines/components/text-fields.html#text-fields-layout
+ // Per https://material.io/go/design-text-fields#text-fields-layout
// There's a 16 dps gap between the right edge of the icon and the text field's
// container, and the 12dps more padding between the left edge of the container
// and the left edge of the input and label.
diff --git a/packages/flutter_localizations/lib/src/l10n/README.md b/packages/flutter_localizations/lib/src/l10n/README.md
index e249072..e421217 100644
--- a/packages/flutter_localizations/lib/src/l10n/README.md
+++ b/packages/flutter_localizations/lib/src/l10n/README.md
@@ -135,7 +135,7 @@
https://docs.flutter.io/flutter/material/TimeOfDayFormat-class.html.
The value of `scriptCategory` is based on the
-[Language categories reference](https://material.io/guidelines/style/typography.html#typography-language-categories-reference)
+[Language categories reference](https://material.io/go/design-typography#typography-language-categories-reference)
section in the Material spec. The `scriptCategory` value is used when looking up
the `TextTheme`, see the
[MaterialTextGeometry](https://docs.flutter.io/flutter/material/MaterialTextGeometry/forScriptCategory.html)
diff --git a/packages/flutter_localizations/lib/src/l10n/material_en.arb b/packages/flutter_localizations/lib/src/l10n/material_en.arb
index fd417b1..ca346bc 100644
--- a/packages/flutter_localizations/lib/src/l10n/material_en.arb
+++ b/packages/flutter_localizations/lib/src/l10n/material_en.arb
@@ -1,7 +1,7 @@
{
"scriptCategory": "English-like",
"@scriptCategory": {
- "description": "The name of the language's script category (see https://material.io/guidelines/style/typography.html#typography-language-categories-reference)."
+ "description": "The name of the language's script category (see https://material.io/go/design-typography#typography-language-categories-reference)."
},
"timeOfDayFormat": "h:mm a",