Commit 1680e55c authored by Adrian Secord's avatar Adrian Secord Committed by xster

Updated links to Material design guidelines to use short links. (#17077)

parent 68a1e2f7
...@@ -141,5 +141,5 @@ Sample: AppBarBottomSample ...@@ -141,5 +141,5 @@ Sample: AppBarBottomSample
See also: See also:
- The "Components-Tabs" section of the material design specification: - The "Components-Tabs" section of the material design specification:
<https://material.io/guidelines/components/tabs.html> <https://material.io/go/design-tabs>
*/ */
...@@ -98,5 +98,5 @@ Sample: TabbedAppBarSample ...@@ -98,5 +98,5 @@ Sample: TabbedAppBarSample
See also: See also:
- The "Components-Tabs" section of the material design specification: - The "Components-Tabs" section of the material design specification:
<https://material.io/guidelines/components/tabs.html> <https://material.io/go/design-tabs>
*/ */
...@@ -66,7 +66,7 @@ class MaterialColor extends ColorSwatch<int> { ...@@ -66,7 +66,7 @@ class MaterialColor extends ColorSwatch<int> {
/// See also: /// See also:
/// ///
/// * [Colors], which defines all of the standard material colors. /// * [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> { class MaterialAccentColor extends ColorSwatch<int> {
/// Creates a color swatch with a variety of shades appropriate for accent /// Creates a color swatch with a variety of shades appropriate for accent
/// colors. /// colors.
......
...@@ -180,7 +180,7 @@ abstract class MaterialLocalizations { ...@@ -180,7 +180,7 @@ abstract class MaterialLocalizations {
/// obtained from [Theme.of] no longer inherits text style properties and /// obtained from [Theme.of] no longer inherits text style properties and
/// contains a complete set of properties needed to style a [Text] widget. /// 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; TextTheme get localTextGeometry;
/// Formats [number] as a decimal, inserting locale-appropriate thousands /// Formats [number] as a decimal, inserting locale-appropriate thousands
......
...@@ -31,7 +31,7 @@ import 'theme.dart'; ...@@ -31,7 +31,7 @@ import 'theme.dart';
/// See also: /// See also:
/// ///
/// * [DataTable], which is not paginated. /// * [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 { class PaginatedDataTable extends StatefulWidget {
/// Creates a widget describing a paginated [DataTable] on a [Card]. /// Creates a widget describing a paginated [DataTable] on a [Card].
/// ///
......
...@@ -624,7 +624,7 @@ class ThemeData extends Diagnosticable { ...@@ -624,7 +624,7 @@ class ThemeData extends Diagnosticable {
// more towards using light text than WCAG20 recommends. Material Design spec // 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 // doesn't say what value to use, but 0.15 seemed close to what the Material
// Design spec shows for its color palette on // 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; const double kThreshold = 0.15;
if ((relativeLuminance + 0.05) * (relativeLuminance + 0.05) > kThreshold) if ((relativeLuminance + 0.05) * (relativeLuminance + 0.05) > kThreshold)
return Brightness.light; return Brightness.light;
......
...@@ -17,7 +17,7 @@ import 'colors.dart'; ...@@ -17,7 +17,7 @@ import 'colors.dart';
/// [BuildContext] and read the [ThemeData.textTheme] property. /// [BuildContext] and read the [ThemeData.textTheme] property.
/// ///
/// The following image [from the material design /// 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]. /// 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 /// This image uses the `Roboto` font, which is the font used on Android. On
/// iOS, the [San Francisco /// iOS, the [San Francisco
...@@ -435,8 +435,8 @@ class Typography { ...@@ -435,8 +435,8 @@ class Typography {
/// expected to use [Theme.of] to get [TextTheme] objects fully populated with /// expected to use [Theme.of] to get [TextTheme] objects fully populated with
/// font properties. /// font properties.
/// ///
/// See also: 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/guidelines/style/typography.html) // TODO(yjbanov): implement font fallback (see "Font stack" at https://material.io/go/design-typography)
class _MaterialTextColorThemes { class _MaterialTextColorThemes {
static const TextTheme blackMountainView = const TextTheme( static const TextTheme blackMountainView = const TextTheme(
display4: const TextStyle(debugLabel: 'blackMountainView display4', fontFamily: 'Roboto', inherit: true, color: Colors.black54, decoration: TextDecoration.none), display4: const TextStyle(debugLabel: 'blackMountainView display4', fontFamily: 'Roboto', inherit: true, color: Colors.black54, decoration: TextDecoration.none),
...@@ -496,7 +496,7 @@ class _MaterialTextColorThemes { ...@@ -496,7 +496,7 @@ class _MaterialTextColorThemes {
} }
/// Defines text geometries for the three language categories defined in /// 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 { class MaterialTextGeometry {
/// The name of the English-like script category. /// The name of the English-like script category.
static const String englishLikeCategory = 'English-like'; static const String englishLikeCategory = 'English-like';
......
...@@ -46,7 +46,7 @@ class TestTextState extends State<TestText> { ...@@ -46,7 +46,7 @@ class TestTextState extends State<TestText> {
void main() { void main() {
testWidgets('ListTile geometry (LTR)', (WidgetTester tester) async { 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 leadingKey = new GlobalKey();
final Key trailingKey = new GlobalKey(); final Key trailingKey = new GlobalKey();
......
...@@ -1168,7 +1168,7 @@ void main() { ...@@ -1168,7 +1168,7 @@ void main() {
), ),
); );
final double iconRight = tester.getTopRight(find.byType(Icon)).dx; 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 // 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 // container, and the 12dps more padding between the left edge of the container
// and the left edge of the input and label. // and the left edge of the input and label.
......
...@@ -135,7 +135,7 @@ a string that matches one of the formats defined by ...@@ -135,7 +135,7 @@ a string that matches one of the formats defined by
https://docs.flutter.io/flutter/material/TimeOfDayFormat-class.html. https://docs.flutter.io/flutter/material/TimeOfDayFormat-class.html.
The value of `scriptCategory` is based on the 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 section in the Material spec. The `scriptCategory` value is used when looking up
the `TextTheme`, see the the `TextTheme`, see the
[MaterialTextGeometry](https://docs.flutter.io/flutter/material/MaterialTextGeometry/forScriptCategory.html) [MaterialTextGeometry](https://docs.flutter.io/flutter/material/MaterialTextGeometry/forScriptCategory.html)
......
{ {
"scriptCategory": "English-like", "scriptCategory": "English-like",
"@scriptCategory": { "@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", "timeOfDayFormat": "h:mm a",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment