diff --git a/examples/catalog/lib/app_bar_bottom.dart b/examples/catalog/lib/app_bar_bottom.dart index fd934d7916..ebfe41a641 100644 --- a/examples/catalog/lib/app_bar_bottom.dart +++ b/examples/catalog/lib/app_bar_bottom.dart @@ -141,5 +141,5 @@ Sample: AppBarBottomSample See also: - The "Components-Tabs" section of the material design specification: - + */ diff --git a/examples/catalog/lib/tabbed_app_bar.dart b/examples/catalog/lib/tabbed_app_bar.dart index 1e0bc59934..08b78c186f 100644 --- a/examples/catalog/lib/tabbed_app_bar.dart +++ b/examples/catalog/lib/tabbed_app_bar.dart @@ -98,5 +98,5 @@ Sample: TabbedAppBarSample See also: - The "Components-Tabs" section of the material design specification: - + */ diff --git a/packages/flutter/lib/src/material/colors.dart b/packages/flutter/lib/src/material/colors.dart index 124f60e3f2..c9b3c91b16 100644 --- a/packages/flutter/lib/src/material/colors.dart +++ b/packages/flutter/lib/src/material/colors.dart @@ -66,7 +66,7 @@ class MaterialColor extends ColorSwatch { /// See also: /// /// * [Colors], which defines all of the standard material colors. -/// * +/// * class MaterialAccentColor extends ColorSwatch { /// 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 e7d0b41ff5..bf53073cbc 100644 --- a/packages/flutter/lib/src/material/material_localizations.dart +++ b/packages/flutter/lib/src/material/material_localizations.dart @@ -180,7 +180,7 @@ abstract class MaterialLocalizations { /// 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 0e5cd07533..131372e4e4 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 @@ import 'theme.dart'; /// See also: /// /// * [DataTable], which is not paginated. -/// * +/// * 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 cefbf2b8a5..c0ae600411 100644 --- a/packages/flutter/lib/src/material/theme_data.dart +++ b/packages/flutter/lib/src/material/theme_data.dart @@ -624,7 +624,7 @@ class ThemeData extends Diagnosticable { // 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 - // . + // . 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 bf98fd1bee..2f215c1b15 100644 --- a/packages/flutter/lib/src/material/typography.dart +++ b/packages/flutter/lib/src/material/typography.dart @@ -17,7 +17,7 @@ import 'colors.dart'; /// [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 @@ class Typography { /// 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 @@ class _MaterialTextColorThemes { } /// 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 40d0c48185..36030bf559 100644 --- a/packages/flutter/test/material/list_tile_test.dart +++ b/packages/flutter/test/material/list_tile_test.dart @@ -46,7 +46,7 @@ class TestTextState extends State { 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 d3a699bdac..ff3f435412 100644 --- a/packages/flutter/test/material/text_field_test.dart +++ b/packages/flutter/test/material/text_field_test.dart @@ -1168,7 +1168,7 @@ void main() { ), ); 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 e249072eeb..e421217fe8 100644 --- a/packages/flutter_localizations/lib/src/l10n/README.md +++ b/packages/flutter_localizations/lib/src/l10n/README.md @@ -135,7 +135,7 @@ a string that matches one of the formats defined by 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 fd417b1410..ca346bc5d4 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",