From af3cdb33dab6092c47453b6cdcb790514caf8e6b Mon Sep 17 00:00:00 2001 From: MhdHejazi Date: Fri, 1 Feb 2019 21:14:48 +0300 Subject: [PATCH] #19060 Update material.google.com links to material.io (#26807) --- examples/README.md | 2 +- .../material/full_screen_dialog_demo.dart | 2 +- packages/flutter/lib/material.dart | 2 +- packages/flutter/lib/src/material/app.dart | 2 +- .../flutter/lib/src/material/app_bar.dart | 6 ++--- .../src/material/bottom_navigation_bar.dart | 4 ++-- packages/flutter/lib/src/material/card.dart | 2 +- .../flutter/lib/src/material/checkbox.dart | 4 ++-- packages/flutter/lib/src/material/chip.dart | 22 +++++++++---------- .../lib/src/material/circle_avatar.dart | 2 +- packages/flutter/lib/src/material/colors.dart | 2 +- .../flutter/lib/src/material/data_table.dart | 2 +- packages/flutter/lib/src/material/dialog.dart | 10 ++++----- .../flutter/lib/src/material/divider.dart | 4 ++-- packages/flutter/lib/src/material/drawer.dart | 4 ++-- .../lib/src/material/drawer_header.dart | 2 +- .../flutter/lib/src/material/dropdown.dart | 4 ++-- .../lib/src/material/expansion_panel.dart | 4 ++-- .../flutter/lib/src/material/flat_button.dart | 2 +- .../lib/src/material/flexible_space_bar.dart | 2 +- .../flutter/lib/src/material/grid_tile.dart | 2 +- .../lib/src/material/grid_tile_bar.dart | 2 +- .../flutter/lib/src/material/list_tile.dart | 2 +- .../flutter/lib/src/material/material.dart | 2 +- .../lib/src/material/outline_button.dart | 2 +- .../src/material/paginated_data_table.dart | 2 +- .../lib/src/material/progress_indicator.dart | 6 ++--- packages/flutter/lib/src/material/radio.dart | 2 +- .../lib/src/material/raised_button.dart | 2 +- .../lib/src/material/refresh_indicator.dart | 2 +- .../flutter/lib/src/material/shadows.dart | 4 ++-- packages/flutter/lib/src/material/slider.dart | 2 +- .../flutter/lib/src/material/stepper.dart | 6 ++--- packages/flutter/lib/src/material/switch.dart | 2 +- packages/flutter/lib/src/material/tabs.dart | 2 +- .../flutter/lib/src/material/text_field.dart | 2 +- .../lib/src/material/text_form_field.dart | 2 +- .../flutter/lib/src/material/text_theme.dart | 4 ++-- .../flutter/lib/src/material/theme_data.dart | 4 ++-- .../flutter/lib/src/material/tooltip.dart | 2 +- .../material/user_accounts_drawer_header.dart | 2 +- .../widgets/bottom_navigation_bar_item.dart | 2 +- 42 files changed, 71 insertions(+), 71 deletions(-) diff --git a/examples/README.md b/examples/README.md index 82e890e5a5..3fa7a31b90 100644 --- a/examples/README.md +++ b/examples/README.md @@ -15,7 +15,7 @@ Available examples include: - **Flutter gallery** The [flutter gallery app](flutter_gallery) showcases Flutter's widgets, including its implementation of [material - design](https://material.google.com/). + design](https://material.io/design/). - **Layers** The [layers vignettes](layers) show how to use the various layers in the Flutter framework. For details, see the [layers diff --git a/examples/flutter_gallery/lib/demo/material/full_screen_dialog_demo.dart b/examples/flutter_gallery/lib/demo/material/full_screen_dialog_demo.dart index 9c5fc2c9ed..7d715ae581 100644 --- a/examples/flutter_gallery/lib/demo/material/full_screen_dialog_demo.dart +++ b/examples/flutter_gallery/lib/demo/material/full_screen_dialog_demo.dart @@ -8,7 +8,7 @@ import 'package:flutter/material.dart'; import 'package:intl/intl.dart'; // This demo is based on -// https://material.google.com/components/dialogs.html#dialogs-full-screen-dialogs +// https://material.io/design/components/dialogs.html#full-screen-dialog enum DismissDialogAction { cancel, diff --git a/packages/flutter/lib/material.dart b/packages/flutter/lib/material.dart index 4968e194d3..8ccc9d20e1 100644 --- a/packages/flutter/lib/material.dart +++ b/packages/flutter/lib/material.dart @@ -10,7 +10,7 @@ /// /// * [flutter.io/widgets](https://flutter.io/widgets/) /// for a catalog of commonly-used Flutter widgets. -/// * [material.google.com](https://material.google.com/) +/// * [material.io/design](https://material.io/design/) /// for an introduction to Material Design. library material; diff --git a/packages/flutter/lib/src/material/app.dart b/packages/flutter/lib/src/material/app.dart index 156bcab488..954b226067 100644 --- a/packages/flutter/lib/src/material/app.dart +++ b/packages/flutter/lib/src/material/app.dart @@ -316,7 +316,7 @@ class MaterialApp extends StatefulWidget { /// /// See also: /// - /// * + /// * final bool debugShowMaterialGrid; @override diff --git a/packages/flutter/lib/src/material/app_bar.dart b/packages/flutter/lib/src/material/app_bar.dart index 50650a567c..2e6ec9fb49 100644 --- a/packages/flutter/lib/src/material/app_bar.dart +++ b/packages/flutter/lib/src/material/app_bar.dart @@ -54,7 +54,7 @@ class _ToolbarContainerLayout extends SingleChildLayoutDelegate { } // TODO(eseidel): Toolbar needs to change size based on orientation: -// http://material.google.com/layout/structure.html#structure-app-bar +// https://material.io/design/components/app-bars-top.html#specs // Mobile Landscape: 48dp // Mobile Portrait: 56dp // Tablet/Desktop: 64dp @@ -127,7 +127,7 @@ class _ToolbarContainerLayout extends SingleChildLayoutDelegate { /// * [PopupMenuButton], to show a popup menu on the app bar, via [actions]. /// * [FlexibleSpaceBar], which is used with [flexibleSpace] when the app bar /// can expand and collapse. -/// * +/// * class AppBar extends StatefulWidget implements PreferredSizeWidget { /// Creates a material design app bar. /// @@ -829,7 +829,7 @@ class _SliverAppBarDelegate extends SliverPersistentHeaderDelegate { /// * [PopupMenuButton], to show a popup menu on the app bar, via [actions]. /// * [FlexibleSpaceBar], which is used with [flexibleSpace] when the app bar /// can expand and collapse. -/// * +/// * class SliverAppBar extends StatefulWidget { /// Creates a material design app bar that can be placed in a [CustomScrollView]. /// diff --git a/packages/flutter/lib/src/material/bottom_navigation_bar.dart b/packages/flutter/lib/src/material/bottom_navigation_bar.dart index ef01cc01f8..42f4638dec 100644 --- a/packages/flutter/lib/src/material/bottom_navigation_bar.dart +++ b/packages/flutter/lib/src/material/bottom_navigation_bar.dart @@ -28,7 +28,7 @@ const double _kBottomMargin = 8.0; /// /// * [BottomNavigationBar] /// * [BottomNavigationBarItem] -/// * +/// * enum BottomNavigationBarType { /// The [BottomNavigationBar]'s [BottomNavigationBarItem]s have fixed width, always /// display their text labels, and do not shift when tapped. @@ -127,7 +127,7 @@ enum BottomNavigationBarType { /// /// * [BottomNavigationBarItem] /// * [Scaffold] -/// * +/// * class BottomNavigationBar extends StatefulWidget { /// Creates a bottom navigation bar, typically used in a [Scaffold] where it /// is provided as the [Scaffold.bottomNavigationBar] argument. diff --git a/packages/flutter/lib/src/material/card.dart b/packages/flutter/lib/src/material/card.dart index 003eebafbd..1cd291f110 100644 --- a/packages/flutter/lib/src/material/card.dart +++ b/packages/flutter/lib/src/material/card.dart @@ -62,7 +62,7 @@ import 'theme.dart'; /// * [ButtonBar], to display buttons at the bottom of a card. Typically these /// would be styled using a [ButtonTheme] created with [new ButtonTheme.bar]. /// * [showDialog], to display a modal card. -/// * +/// * class Card extends StatelessWidget { /// Creates a material design card. /// diff --git a/packages/flutter/lib/src/material/checkbox.dart b/packages/flutter/lib/src/material/checkbox.dart index 00a879ae05..27a609a8d5 100644 --- a/packages/flutter/lib/src/material/checkbox.dart +++ b/packages/flutter/lib/src/material/checkbox.dart @@ -34,8 +34,8 @@ import 'toggleable.dart'; /// * [Switch], a widget with semantics similar to [Checkbox]. /// * [Radio], for selecting among a set of explicit values. /// * [Slider], for selecting a value in a range. -/// * -/// * +/// * +/// * class Checkbox extends StatefulWidget { /// Creates a material design checkbox. /// diff --git a/packages/flutter/lib/src/material/chip.dart b/packages/flutter/lib/src/material/chip.dart index 8e0e882eec..5850473d22 100644 --- a/packages/flutter/lib/src/material/chip.dart +++ b/packages/flutter/lib/src/material/chip.dart @@ -57,7 +57,7 @@ const Icon _kDefaultDeleteIcon = Icon(Icons.cancel, size: _kDeleteIconSize); /// chips contain related descriptive text or categories. /// * [FilterChip], uses tags or descriptive words as a way to filter content. /// * [ActionChip], represents an action related to primary content. -/// * +/// * abstract class ChipAttributes { // This class is intended to be used as an interface, and should not be // extended directly. @@ -132,7 +132,7 @@ abstract class ChipAttributes { /// * [InputChip], a chip that represents a complex piece of information, such /// as an entity (person, place, or thing) or conversational text, in a /// compact form. -/// * +/// * abstract class DeletableChipAttributes { // This class is intended to be used as an interface, and should not be // extended directly. @@ -234,7 +234,7 @@ abstract class DeletableChipAttributes { /// * [ChoiceChip], allows a single selection from a set of options. Choice /// chips contain related descriptive text or categories. /// * [FilterChip], uses tags or descriptive words as a way to filter content. -/// * +/// * abstract class SelectableChipAttributes { // This class is intended to be used as an interface, and should not be // extended directly. @@ -335,7 +335,7 @@ abstract class SelectableChipAttributes { /// * [ChoiceChip], allows a single selection from a set of options. Choice /// chips contain related descriptive text or categories. /// * [FilterChip], uses tags or descriptive words as a way to filter content. -/// * +/// * abstract class DisabledChipAttributes { // This class is intended to be used as an interface, and should not be // extended directly. @@ -382,7 +382,7 @@ abstract class DisabledChipAttributes { /// chips contain related descriptive text or categories. /// * [FilterChip], uses tags or descriptive words as a way to filter content. /// * [ActionChip], represents an action related to primary content. -/// * +/// * abstract class TappableChipAttributes { // This class is intended to be used as an interface, and should not be // extended directly. @@ -463,7 +463,7 @@ abstract class TappableChipAttributes { /// * [CircleAvatar], which shows images or initials of entities. /// * [Wrap], A widget that displays its children in multiple horizontal or /// vertical runs. -/// * +/// * class Chip extends StatelessWidget implements ChipAttributes, DeletableChipAttributes { /// Creates a material design chip. /// @@ -587,7 +587,7 @@ class Chip extends StatelessWidget implements ChipAttributes, DeletableChipAttri /// * [CircleAvatar], which shows images or initials of people. /// * [Wrap], A widget that displays its children in multiple horizontal or /// vertical runs. -/// * +/// * class InputChip extends StatelessWidget implements ChipAttributes, @@ -769,7 +769,7 @@ class InputChip extends StatelessWidget /// * [CircleAvatar], which shows images or initials of people. /// * [Wrap], A widget that displays its children in multiple horizontal or /// vertical runs. -/// * +/// * class ChoiceChip extends StatelessWidget implements ChipAttributes, @@ -959,7 +959,7 @@ class ChoiceChip extends StatelessWidget /// * [CircleAvatar], which shows images or initials of people. /// * [Wrap], A widget that displays its children in multiple horizontal or /// vertical runs. -/// * +/// * class FilterChip extends StatelessWidget implements ChipAttributes, @@ -1107,7 +1107,7 @@ class FilterChip extends StatelessWidget /// * [CircleAvatar], which shows images or initials of people. /// * [Wrap], A widget that displays its children in multiple horizontal or /// vertical runs. -/// * +/// * class ActionChip extends StatelessWidget implements ChipAttributes, TappableChipAttributes { /// Create a chip that acts like a button. /// @@ -1218,7 +1218,7 @@ class ActionChip extends StatelessWidget implements ChipAttributes, TappableChip /// * [CircleAvatar], which shows images or initials of people. /// * [Wrap], A widget that displays its children in multiple horizontal or /// vertical runs. -/// * +/// * class RawChip extends StatefulWidget implements ChipAttributes, diff --git a/packages/flutter/lib/src/material/circle_avatar.dart b/packages/flutter/lib/src/material/circle_avatar.dart index 12a60c84e2..fa9929725f 100644 --- a/packages/flutter/lib/src/material/circle_avatar.dart +++ b/packages/flutter/lib/src/material/circle_avatar.dart @@ -49,7 +49,7 @@ import 'theme_data.dart'; /// * [Chip], for representing users or concepts in long form. /// * [ListTile], which can combine an icon (such as a [CircleAvatar]) with /// some text for a fixed height list entry. -/// * +/// * class CircleAvatar extends StatelessWidget { /// Creates a circle that represents a user. const CircleAvatar({ diff --git a/packages/flutter/lib/src/material/colors.dart b/packages/flutter/lib/src/material/colors.dart index 7b694ae7bb..d2414a3b77 100644 --- a/packages/flutter/lib/src/material/colors.dart +++ b/packages/flutter/lib/src/material/colors.dart @@ -89,7 +89,7 @@ class MaterialAccentColor extends ColorSwatch { } /// [Color] and [ColorSwatch] constants which represent Material design's -/// [color palette](http://material.google.com/style/color.html). +/// [color palette](https://material.io/design/color/). /// /// Instead of using an absolute color from these palettes, consider using /// [Theme.of] to obtain the local [ThemeData] structure, which exposes the diff --git a/packages/flutter/lib/src/material/data_table.dart b/packages/flutter/lib/src/material/data_table.dart index 578d01c823..a2b4992035 100644 --- a/packages/flutter/lib/src/material/data_table.dart +++ b/packages/flutter/lib/src/material/data_table.dart @@ -229,7 +229,7 @@ class DataCell { /// * [DataCell], which contains the data for a single cell in the data table. /// * [PaginatedDataTable], which shows part of the data in a data table and /// provides controls for paging through the remainder of the data. -/// * +/// * class DataTable extends StatelessWidget { /// Creates a widget describing a data table. /// diff --git a/packages/flutter/lib/src/material/dialog.dart b/packages/flutter/lib/src/material/dialog.dart index cdcc1c720b..c047e71c56 100644 --- a/packages/flutter/lib/src/material/dialog.dart +++ b/packages/flutter/lib/src/material/dialog.dart @@ -33,7 +33,7 @@ import 'theme.dart'; /// * [AlertDialog], for dialogs that have a message and some buttons. /// * [SimpleDialog], for dialogs that offer a variety of options. /// * [showDialog], which actually displays the dialog and returns its result. -/// * +/// * class Dialog extends StatelessWidget { /// Creates a dialog. /// @@ -190,7 +190,7 @@ class Dialog extends StatelessWidget { /// * [SimpleDialog], which handles the scrolling of the contents but has no [actions]. /// * [Dialog], on which [AlertDialog] and [SimpleDialog] are based. /// * [showDialog], which actually displays the dialog and returns its result. -/// * +/// * class AlertDialog extends StatelessWidget { /// Creates an alert dialog. /// @@ -402,7 +402,7 @@ class AlertDialog extends StatelessWidget { /// * [showDialog], which actually displays the dialog and returns its result. /// * [FlatButton], which are commonly used as actions in other kinds of /// dialogs, such as [AlertDialog]s. -/// * +/// * class SimpleDialogOption extends StatelessWidget { /// Creates an option for a [SimpleDialog]. const SimpleDialogOption({ @@ -502,7 +502,7 @@ class SimpleDialogOption extends StatelessWidget { /// * [AlertDialog], for dialogs that have a row of buttons below the body. /// * [Dialog], on which [SimpleDialog] and [AlertDialog] are based. /// * [showDialog], which actually displays the dialog and returns its result. -/// * +/// * class SimpleDialog extends StatelessWidget { /// Creates a simple dialog. /// @@ -686,7 +686,7 @@ Widget _buildMaterialDialogTransitions(BuildContext context, Animation a /// * [Dialog], on which [SimpleDialog] and [AlertDialog] are based. /// * [showCupertinoDialog], which displays an iOS-style dialog. /// * [showGeneralDialog], which allows for customization of the dialog popup. -/// * +/// * Future showDialog({ @required BuildContext context, bool barrierDismissible = true, diff --git a/packages/flutter/lib/src/material/divider.dart b/packages/flutter/lib/src/material/divider.dart index e1df01fef5..ba57fcdb2b 100644 --- a/packages/flutter/lib/src/material/divider.dart +++ b/packages/flutter/lib/src/material/divider.dart @@ -27,7 +27,7 @@ import 'theme.dart'; /// /// * [PopupMenuDivider], which is the equivalent but for popup menus. /// * [ListTile.divideTiles], another approach to dividing widgets in a list. -/// * +/// * class Divider extends StatelessWidget { /// Creates a material design divider. /// @@ -136,7 +136,7 @@ class Divider extends StatelessWidget { /// /// * [PopupMenuDivider], which is the equivalent but for popup menus. /// * [ListTile.divideTiles], another approach to dividing widgets in a list. -/// * +/// * class VerticalDivider extends StatelessWidget { /// Creates a material design divider. /// diff --git a/packages/flutter/lib/src/material/drawer.dart b/packages/flutter/lib/src/material/drawer.dart index 07ddff6e73..885d20827b 100644 --- a/packages/flutter/lib/src/material/drawer.dart +++ b/packages/flutter/lib/src/material/drawer.dart @@ -30,7 +30,7 @@ enum DrawerAlignment { } // TODO(eseidel): Draw width should vary based on device size: -// http://material.google.com/layout/structure.html#structure-side-nav +// https://material.io/design/components/navigation-drawer.html#specs // Mobile: // Width = Screen width − 56 dp @@ -81,7 +81,7 @@ const Duration _kBaseSettleDuration = Duration(milliseconds: 246); /// * [Scaffold.of], to obtain the current [ScaffoldState], which manages the /// display and animation of the drawer. /// * [ScaffoldState.openDrawer], which displays its [Drawer], if any. -/// * +/// * class Drawer extends StatelessWidget { /// Creates a material design drawer. /// diff --git a/packages/flutter/lib/src/material/drawer_header.dart b/packages/flutter/lib/src/material/drawer_header.dart index e2fd8eb7ba..e3d89cb57b 100644 --- a/packages/flutter/lib/src/material/drawer_header.dart +++ b/packages/flutter/lib/src/material/drawer_header.dart @@ -23,7 +23,7 @@ const double _kDrawerHeaderHeight = 160.0 + 1.0; // bottom edge /// /// * [UserAccountsDrawerHeader], a variant of [DrawerHeader] that is /// specialized for showing user accounts. -/// * +/// * class DrawerHeader extends StatelessWidget { /// Creates a material design drawer header. /// diff --git a/packages/flutter/lib/src/material/dropdown.dart b/packages/flutter/lib/src/material/dropdown.dart index f8ab5d058c..8236e9784d 100644 --- a/packages/flutter/lib/src/material/dropdown.dart +++ b/packages/flutter/lib/src/material/dropdown.dart @@ -223,7 +223,7 @@ class _DropdownMenuRouteLayout extends SingleChildLayoutDelegate { // The maximum height of a simple menu should be one or more rows less than // the view height. This ensures a tappable area outside of the simple menu // with which to dismiss the menu. - // -- https://material.google.com/components/menus.html#menus-simple-menus + // -- https://material.io/design/components/menus.html#usage final double maxHeight = math.max(0.0, constraints.maxHeight - 2 * _kMenuItemHeight); // The width of a menu should be at most the view width. This ensures that // the menu does not extend past the left and right edges of the screen. @@ -533,7 +533,7 @@ class DropdownButtonHideUnderline extends InheritedWidget { /// * [DropdownButtonHideUnderline], which prevents its descendant dropdown buttons /// from displaying their underlines. /// * [RaisedButton], [FlatButton], ordinary buttons that trigger a single action. -/// * +/// * class DropdownButton extends StatefulWidget { /// Creates a dropdown button. /// diff --git a/packages/flutter/lib/src/material/expansion_panel.dart b/packages/flutter/lib/src/material/expansion_panel.dart index f4401bf7b6..a81753619b 100644 --- a/packages/flutter/lib/src/material/expansion_panel.dart +++ b/packages/flutter/lib/src/material/expansion_panel.dart @@ -59,7 +59,7 @@ typedef ExpansionPanelHeaderBuilder = Widget Function(BuildContext context, bool /// See also: /// /// * [ExpansionPanelList] -/// * +/// * class ExpansionPanel { /// Creates an expansion panel to be used as a child for [ExpansionPanelList]. /// @@ -114,7 +114,7 @@ class ExpansionPanelRadio extends ExpansionPanel { /// See also: /// /// * [ExpansionPanel] -/// * +/// * class ExpansionPanelList extends StatefulWidget { /// Creates an expansion panel list widget. The [expansionCallback] is /// triggered when an expansion panel expand/collapse button is pushed. diff --git a/packages/flutter/lib/src/material/flat_button.dart b/packages/flutter/lib/src/material/flat_button.dart index e14f15729c..fd56a273bd 100644 --- a/packages/flutter/lib/src/material/flat_button.dart +++ b/packages/flutter/lib/src/material/flat_button.dart @@ -48,7 +48,7 @@ import 'theme_data.dart'; /// * [IconButton], to create buttons that just contain icons. /// * [InkWell], which implements the ink splash part of a flat button. /// * [RawMaterialButton], the widget this widget is based on. -/// * +/// * class FlatButton extends MaterialButton { /// Create a simple text button. const FlatButton({ diff --git a/packages/flutter/lib/src/material/flexible_space_bar.dart b/packages/flutter/lib/src/material/flexible_space_bar.dart index 8fe7f5dd7d..84ee0e1dee 100644 --- a/packages/flutter/lib/src/material/flexible_space_bar.dart +++ b/packages/flutter/lib/src/material/flexible_space_bar.dart @@ -37,7 +37,7 @@ enum CollapseMode { /// /// * [SliverAppBar], which implements the expanding and contracting. /// * [AppBar], which is used by [SliverAppBar]. -/// * +/// * class FlexibleSpaceBar extends StatefulWidget { /// Creates a flexible space bar. /// diff --git a/packages/flutter/lib/src/material/grid_tile.dart b/packages/flutter/lib/src/material/grid_tile.dart index 708ee9ec1e..7116e7c9c6 100644 --- a/packages/flutter/lib/src/material/grid_tile.dart +++ b/packages/flutter/lib/src/material/grid_tile.dart @@ -15,7 +15,7 @@ import 'package:flutter/widgets.dart'; /// * [GridView], which is a scrollable grid of tiles. /// * [GridTileBar], which is typically used in either the [header] or /// [footer]. -/// * +/// * class GridTile extends StatelessWidget { /// Creates a grid tile. /// diff --git a/packages/flutter/lib/src/material/grid_tile_bar.dart b/packages/flutter/lib/src/material/grid_tile_bar.dart index 3e26193112..2500b11832 100644 --- a/packages/flutter/lib/src/material/grid_tile_bar.dart +++ b/packages/flutter/lib/src/material/grid_tile_bar.dart @@ -17,7 +17,7 @@ import 'theme.dart'; /// See also: /// /// * [GridTile] -/// * +/// * class GridTileBar extends StatelessWidget { /// Creates a grid tile bar. /// diff --git a/packages/flutter/lib/src/material/list_tile.dart b/packages/flutter/lib/src/material/list_tile.dart index 931d2b2070..bce2c08848 100644 --- a/packages/flutter/lib/src/material/list_tile.dart +++ b/packages/flutter/lib/src/material/list_tile.dart @@ -211,7 +211,7 @@ enum ListTileControlAffinity { /// * [ListTile.divideTiles], a utility for inserting [Divider]s in between [ListTile]s. /// * [CheckboxListTile], [RadioListTile], and [SwitchListTile], widgets /// that combine [ListTile] with other controls. -/// * +/// * class ListTile extends StatelessWidget { /// Creates a list tile. /// diff --git a/packages/flutter/lib/src/material/material.dart b/packages/flutter/lib/src/material/material.dart index fb29b43013..ae3aa6bd37 100644 --- a/packages/flutter/lib/src/material/material.dart +++ b/packages/flutter/lib/src/material/material.dart @@ -151,7 +151,7 @@ abstract class MaterialInkController { /// /// * [MergeableMaterial], a piece of material that can split and remerge. /// * [Card], a wrapper for a [Material] of [type] [MaterialType.card]. -/// * +/// * class Material extends StatefulWidget { /// Creates a piece of material. /// diff --git a/packages/flutter/lib/src/material/outline_button.dart b/packages/flutter/lib/src/material/outline_button.dart index a461295567..774bcc7c9d 100644 --- a/packages/flutter/lib/src/material/outline_button.dart +++ b/packages/flutter/lib/src/material/outline_button.dart @@ -48,7 +48,7 @@ const Duration _kElevationDuration = Duration(milliseconds: 75); /// * [FloatingActionButton], the round button in material applications. /// * [IconButton], to create buttons that just contain icons. /// * [InkWell], which implements the ink splash part of a flat button. -/// * +/// * class OutlineButton extends MaterialButton { /// Create a filled button. /// diff --git a/packages/flutter/lib/src/material/paginated_data_table.dart b/packages/flutter/lib/src/material/paginated_data_table.dart index 0e2ca590e3..dcca71387d 100644 --- a/packages/flutter/lib/src/material/paginated_data_table.dart +++ b/packages/flutter/lib/src/material/paginated_data_table.dart @@ -398,7 +398,7 @@ class PaginatedDataTableState extends State { child: DefaultTextStyle( // These typographic styles aren't quite the regular ones. We pick the closest ones from the regular // list and then tweak them appropriately. - // See https://material.google.com/components/data-tables.html#data-tables-tables-within-cards + // See https://material.io/design/components/data-tables.html#tables-within-cards style: _selectedRowCount > 0 ? themeData.textTheme.subhead.copyWith(color: themeData.accentColor) : themeData.textTheme.title.copyWith(fontWeight: FontWeight.w400), child: IconTheme.merge( diff --git a/packages/flutter/lib/src/material/progress_indicator.dart b/packages/flutter/lib/src/material/progress_indicator.dart index d2454aaefb..98d1c71abf 100644 --- a/packages/flutter/lib/src/material/progress_indicator.dart +++ b/packages/flutter/lib/src/material/progress_indicator.dart @@ -24,7 +24,7 @@ const int _kIndeterminateLinearDuration = 1800; /// /// See also: /// -/// * +/// * abstract class ProgressIndicator extends StatefulWidget { /// Creates a progress indicator. /// @@ -219,7 +219,7 @@ class _LinearProgressIndicatorPainter extends CustomPainter { /// See also: /// /// * [CircularProgressIndicator] -/// * +/// * class LinearProgressIndicator extends ProgressIndicator { /// Creates a linear progress indicator. /// @@ -389,7 +389,7 @@ class _CircularProgressIndicatorPainter extends CustomPainter { /// See also: /// /// * [LinearProgressIndicator] -/// * +/// * class CircularProgressIndicator extends ProgressIndicator { /// Creates a circular progress indicator. /// diff --git a/packages/flutter/lib/src/material/radio.dart b/packages/flutter/lib/src/material/radio.dart index 33ca07cba6..90109cfa9c 100644 --- a/packages/flutter/lib/src/material/radio.dart +++ b/packages/flutter/lib/src/material/radio.dart @@ -35,7 +35,7 @@ const double _kInnerRadius = 4.5; /// you can give the radio button a label. /// * [Slider], for selecting a value in a range. /// * [Checkbox] and [Switch], for toggling a particular value on or off. -/// * +/// * class Radio extends StatefulWidget { /// Creates a material design radio button. /// diff --git a/packages/flutter/lib/src/material/raised_button.dart b/packages/flutter/lib/src/material/raised_button.dart index 03157713da..69f0a6096c 100644 --- a/packages/flutter/lib/src/material/raised_button.dart +++ b/packages/flutter/lib/src/material/raised_button.dart @@ -39,7 +39,7 @@ import 'theme_data.dart'; /// * [IconButton], to create buttons that just contain icons. /// * [InkWell], which implements the ink splash part of a flat button. /// * [RawMaterialButton], the widget this widget is based on. -/// * +/// * class RaisedButton extends MaterialButton { /// Create a filled button. /// diff --git a/packages/flutter/lib/src/material/refresh_indicator.dart b/packages/flutter/lib/src/material/refresh_indicator.dart index a9b442e687..98ddb65107 100644 --- a/packages/flutter/lib/src/material/refresh_indicator.dart +++ b/packages/flutter/lib/src/material/refresh_indicator.dart @@ -73,7 +73,7 @@ enum _RefreshIndicatorMode { /// /// See also: /// -/// * +/// * /// * [RefreshIndicatorState], can be used to programmatically show the refresh indicator. /// * [RefreshProgressIndicator], widget used by [RefreshIndicator] to show /// the inner circular progress spinner during refreshes. diff --git a/packages/flutter/lib/src/material/shadows.dart b/packages/flutter/lib/src/material/shadows.dart index 9858717492..e88fbd1f3f 100644 --- a/packages/flutter/lib/src/material/shadows.dart +++ b/packages/flutter/lib/src/material/shadows.dart @@ -6,7 +6,7 @@ import 'dart:ui' show Color, Offset; import 'package:flutter/painting.dart'; -// Based on http://material.google.com/what-is-material/elevation-shadows.html +// Based on https://material.io/design/environment/elevation.html // Currently, only the elevation values that are bound to one or more widgets are // defined here. @@ -20,7 +20,7 @@ import 'package:flutter/painting.dart'; /// See also: /// /// * [Material] -/// * +/// * const Map> kElevationToShadow = _elevationToShadow; // to hide the literal from the docs const Color _kKeyUmbraOpacity = Color(0x33000000); // alpha = 0.2 diff --git a/packages/flutter/lib/src/material/slider.dart b/packages/flutter/lib/src/material/slider.dart index 33eb21c338..c3890b8566 100644 --- a/packages/flutter/lib/src/material/slider.dart +++ b/packages/flutter/lib/src/material/slider.dart @@ -86,7 +86,7 @@ typedef SemanticFormatterCallback = String Function(double value); /// the visual appearance of the slider. /// * [Radio], for selecting among a set of explicit values. /// * [Checkbox] and [Switch], for toggling a particular value on or off. -/// * +/// * /// * [MediaQuery], from which the text scale factor is obtained. class Slider extends StatefulWidget { /// Creates a material design slider. diff --git a/packages/flutter/lib/src/material/stepper.dart b/packages/flutter/lib/src/material/stepper.dart index f9586c6bfb..b0aab18929 100644 --- a/packages/flutter/lib/src/material/stepper.dart +++ b/packages/flutter/lib/src/material/stepper.dart @@ -73,7 +73,7 @@ const double _kTriangleHeight = _kStepSize * 0.866025; // Triangle height. sqrt( /// See also: /// /// * [Stepper] -/// * +/// * @immutable class Step { /// Creates a step for a [Stepper]. @@ -123,7 +123,7 @@ class Step { /// See also: /// /// * [Step] -/// * +/// * class Stepper extends StatefulWidget { /// Creates a stepper from a list of steps. /// @@ -676,7 +676,7 @@ class _StepperState extends State with TickerProviderStateMixin { throw FlutterError( 'Steppers must not be nested. The material specification advises ' 'that one should avoid embedding steppers within steppers. ' - 'https://material.google.com/components/steppers.html#steppers-usage\n' + 'https://material.io/archive/guidelines/components/steppers.html#steppers-usage\n' ); return true; }()); diff --git a/packages/flutter/lib/src/material/switch.dart b/packages/flutter/lib/src/material/switch.dart index 70f10dc38f..5a55e06aef 100644 --- a/packages/flutter/lib/src/material/switch.dart +++ b/packages/flutter/lib/src/material/switch.dart @@ -49,7 +49,7 @@ enum _SwitchType { material, adaptive } /// * [Checkbox], another widget with similar semantics. /// * [Radio], for selecting among a set of explicit values. /// * [Slider], for selecting a value in a range. -/// * +/// * class Switch extends StatefulWidget { /// Creates a material design switch. /// diff --git a/packages/flutter/lib/src/material/tabs.dart b/packages/flutter/lib/src/material/tabs.dart index 5c132ee831..abd89c9e4a 100644 --- a/packages/flutter/lib/src/material/tabs.dart +++ b/packages/flutter/lib/src/material/tabs.dart @@ -53,7 +53,7 @@ enum TabBarIndicatorSize { /// * [TabBar], which displays a row of tabs. /// * [TabBarView], which displays a widget for the currently selected tab. /// * [TabController], which coordinates tab selection between a [TabBar] and a [TabBarView]. -/// * +/// * class Tab extends StatelessWidget { /// Creates a material design [TabBar] tab. At least one of [text], [icon], /// and [child] must be non-null. The [text] and [child] arguments must not be diff --git a/packages/flutter/lib/src/material/text_field.dart b/packages/flutter/lib/src/material/text_field.dart index a8a7b8c264..438225bea0 100644 --- a/packages/flutter/lib/src/material/text_field.dart +++ b/packages/flutter/lib/src/material/text_field.dart @@ -77,7 +77,7 @@ const int _iOSHorizontalCursorOffsetPixels = 2; /// /// See also: /// -/// * +/// * /// * [TextFormField], which integrates with the [Form] widget. /// * [InputDecorator], which shows the labels and other visual elements that /// surround the actual text editing widget. diff --git a/packages/flutter/lib/src/material/text_form_field.dart b/packages/flutter/lib/src/material/text_form_field.dart index 9670e39b09..ebc246e8ae 100644 --- a/packages/flutter/lib/src/material/text_form_field.dart +++ b/packages/flutter/lib/src/material/text_form_field.dart @@ -55,7 +55,7 @@ import 'theme.dart'; /// /// See also: /// -/// * +/// * /// * [TextField], which is the underlying text field without the [Form] /// integration. /// * [InputDecorator], which shows the labels and other visual elements that diff --git a/packages/flutter/lib/src/material/text_theme.dart b/packages/flutter/lib/src/material/text_theme.dart index 467c945787..d844ac8916 100644 --- a/packages/flutter/lib/src/material/text_theme.dart +++ b/packages/flutter/lib/src/material/text_theme.dart @@ -93,7 +93,7 @@ import 'typography.dart'; /// * [Typography], the class that generates [TextTheme]s appropriate for a platform. /// * [Theme], for other aspects of a material design application that can be /// globally adjusted, such as the color scheme. -/// * +/// * @immutable class TextTheme extends Diagnosticable { /// Creates a text theme that uses the given values. @@ -102,7 +102,7 @@ class TextTheme extends Diagnosticable { /// or [Typography.white], which implement the typography styles in the /// material design specification: /// - /// + /// /// /// If you do decide to create your own text theme, consider using one of /// those predefined themes as a starting point for [copyWith] or [apply]. diff --git a/packages/flutter/lib/src/material/theme_data.dart b/packages/flutter/lib/src/material/theme_data.dart index 0a09e24d1f..4abb7ed949 100644 --- a/packages/flutter/lib/src/material/theme_data.dart +++ b/packages/flutter/lib/src/material/theme_data.dart @@ -106,7 +106,7 @@ class ThemeData extends Diagnosticable { /// ([accentColorBrightness]), so that the right contrasting text /// color will be used over the accent color. /// - /// See for + /// See for /// more discussion on how to pick the right colors. factory ThemeData({ Brightness brightness, @@ -544,7 +544,7 @@ class ThemeData extends Diagnosticable { /// The color of the header of a [PaginatedDataTable] when there are selected rows. // According to the spec for data tables: - // https://material.google.com/components/data-tables.html#data-tables-tables-within-cards + // https://material.io/archive/guidelines/components/data-tables.html#data-tables-tables-within-cards // ...this should be the "50-value of secondary app color". final Color secondaryHeaderColor; diff --git a/packages/flutter/lib/src/material/tooltip.dart b/packages/flutter/lib/src/material/tooltip.dart index e80fa8e27f..3953586a8b 100644 --- a/packages/flutter/lib/src/material/tooltip.dart +++ b/packages/flutter/lib/src/material/tooltip.dart @@ -32,7 +32,7 @@ const Duration _kShowDuration = Duration(milliseconds: 1500); /// /// See also: /// -/// * +/// * class Tooltip extends StatefulWidget { /// Creates a tooltip. /// diff --git a/packages/flutter/lib/src/material/user_accounts_drawer_header.dart b/packages/flutter/lib/src/material/user_accounts_drawer_header.dart index df79b984a8..f9a608b6d8 100644 --- a/packages/flutter/lib/src/material/user_accounts_drawer_header.dart +++ b/packages/flutter/lib/src/material/user_accounts_drawer_header.dart @@ -296,7 +296,7 @@ class _AccountDetailsLayout extends MultiChildLayoutDelegate { /// See also: /// /// * [DrawerHeader], for a drawer header that doesn't show user accounts. -/// * +/// * class UserAccountsDrawerHeader extends StatefulWidget { /// Creates a material design drawer header. /// diff --git a/packages/flutter/lib/src/widgets/bottom_navigation_bar_item.dart b/packages/flutter/lib/src/widgets/bottom_navigation_bar_item.dart index 93e6f34a22..6a266d6d6d 100644 --- a/packages/flutter/lib/src/widgets/bottom_navigation_bar_item.dart +++ b/packages/flutter/lib/src/widgets/bottom_navigation_bar_item.dart @@ -15,7 +15,7 @@ import 'framework.dart'; /// See also: /// /// * [BottomNavigationBar] -/// * +/// * /// * [CupertinoTabBar] /// * class BottomNavigationBarItem {