Unverified Commit 5d1306e7 authored by Michael Goderbauer's avatar Michael Goderbauer Committed by GitHub

Update outdated links (#73514)

parent f461f1c9
...@@ -63,42 +63,42 @@ class _ButtonsDemoState extends State<ButtonsDemo> { ...@@ -63,42 +63,42 @@ class _ButtonsDemoState extends State<ButtonsDemo> {
description: _elevatedText, description: _elevatedText,
demoWidget: buildElevatedButton(_buttonShape), demoWidget: buildElevatedButton(_buttonShape),
exampleCodeTag: _elevatedCode, exampleCodeTag: _elevatedCode,
documentationUrl: 'https://docs.flutter.io/flutter/material/ElevatedButton-class.html', documentationUrl: 'https://api.flutter.dev/flutter/material/ElevatedButton-class.html',
), ),
ComponentDemoTabData( ComponentDemoTabData(
tabName: 'TEXT', tabName: 'TEXT',
description: _textText, description: _textText,
demoWidget: buildTextButton(_buttonShape), demoWidget: buildTextButton(_buttonShape),
exampleCodeTag: _textCode, exampleCodeTag: _textCode,
documentationUrl: 'https://docs.flutter.io/flutter/material/TextButton-class.html', documentationUrl: 'https://api.flutter.dev/flutter/material/TextButton-class.html',
), ),
ComponentDemoTabData( ComponentDemoTabData(
tabName: 'OUTLINED', tabName: 'OUTLINED',
description: _outlinedText, description: _outlinedText,
demoWidget: buildOutlinedButton(_buttonShape), demoWidget: buildOutlinedButton(_buttonShape),
exampleCodeTag: _outlinedCode, exampleCodeTag: _outlinedCode,
documentationUrl: 'https://docs.flutter.io/flutter/material/OutlinedButton-class.html', documentationUrl: 'https://api.flutter.dev/flutter/material/OutlinedButton-class.html',
), ),
ComponentDemoTabData( ComponentDemoTabData(
tabName: 'DROPDOWN', tabName: 'DROPDOWN',
description: _dropdownText, description: _dropdownText,
demoWidget: buildDropdownButton(), demoWidget: buildDropdownButton(),
exampleCodeTag: _dropdownCode, exampleCodeTag: _dropdownCode,
documentationUrl: 'https://docs.flutter.io/flutter/material/DropdownButton-class.html', documentationUrl: 'https://api.flutter.dev/flutter/material/DropdownButton-class.html',
), ),
ComponentDemoTabData( ComponentDemoTabData(
tabName: 'ICON', tabName: 'ICON',
description: _iconText, description: _iconText,
demoWidget: buildIconButton(), demoWidget: buildIconButton(),
exampleCodeTag: _iconCode, exampleCodeTag: _iconCode,
documentationUrl: 'https://docs.flutter.io/flutter/material/IconButton-class.html', documentationUrl: 'https://api.flutter.dev/flutter/material/IconButton-class.html',
), ),
ComponentDemoTabData( ComponentDemoTabData(
tabName: 'ACTION', tabName: 'ACTION',
description: _actionText, description: _actionText,
demoWidget: buildActionButton(), demoWidget: buildActionButton(),
exampleCodeTag: _actionCode, exampleCodeTag: _actionCode,
documentationUrl: 'https://docs.flutter.io/flutter/material/FloatingActionButton-class.html', documentationUrl: 'https://api.flutter.dev/flutter/material/FloatingActionButton-class.html',
), ),
]; ];
......
...@@ -43,21 +43,21 @@ class _SelectionControlsDemoState extends State<SelectionControlsDemo> { ...@@ -43,21 +43,21 @@ class _SelectionControlsDemoState extends State<SelectionControlsDemo> {
description: _checkboxText, description: _checkboxText,
demoWidget: buildCheckbox(), demoWidget: buildCheckbox(),
exampleCodeTag: _checkboxCode, exampleCodeTag: _checkboxCode,
documentationUrl: 'https://docs.flutter.io/flutter/material/Checkbox-class.html', documentationUrl: 'https://api.flutter.dev/flutter/material/Checkbox-class.html',
), ),
ComponentDemoTabData( ComponentDemoTabData(
tabName: 'RADIO', tabName: 'RADIO',
description: _radioText, description: _radioText,
demoWidget: buildRadio(), demoWidget: buildRadio(),
exampleCodeTag: _radioCode, exampleCodeTag: _radioCode,
documentationUrl: 'https://docs.flutter.io/flutter/material/Radio-class.html', documentationUrl: 'https://api.flutter.dev/flutter/material/Radio-class.html',
), ),
ComponentDemoTabData( ComponentDemoTabData(
tabName: 'SWITCH', tabName: 'SWITCH',
description: _switchText, description: _switchText,
demoWidget: buildSwitch(), demoWidget: buildSwitch(),
exampleCodeTag: _switchCode, exampleCodeTag: _switchCode,
documentationUrl: 'https://docs.flutter.io/flutter/material/Switch-class.html', documentationUrl: 'https://api.flutter.dev/flutter/material/Switch-class.html',
), ),
]; ];
......
...@@ -217,13 +217,13 @@ class _SliderDemoState extends State<SliderDemo> { ...@@ -217,13 +217,13 @@ class _SliderDemoState extends State<SliderDemo> {
tabName: 'SINGLE', tabName: 'SINGLE',
description: 'Sliders containing 1 thumb', description: 'Sliders containing 1 thumb',
demoWidget: _Sliders(), demoWidget: _Sliders(),
documentationUrl: 'https://docs.flutter.io/flutter/material/Slider-class.html', documentationUrl: 'https://api.flutter.dev/flutter/material/Slider-class.html',
), ),
ComponentDemoTabData( ComponentDemoTabData(
tabName: 'RANGE', tabName: 'RANGE',
description: 'Sliders containing 2 thumbs', description: 'Sliders containing 2 thumbs',
demoWidget: _RangeSliders(), demoWidget: _RangeSliders(),
documentationUrl: 'https://docs.flutter.io/flutter/material/RangeSlider-class.html', documentationUrl: 'https://api.flutter.dev/flutter/material/RangeSlider-class.html',
), ),
]; ];
......
...@@ -50,7 +50,7 @@ class _GalleryAppState extends State<GalleryApp> { ...@@ -50,7 +50,7 @@ class _GalleryAppState extends State<GalleryApp> {
Map<String, WidgetBuilder> _buildRoutes() { Map<String, WidgetBuilder> _buildRoutes() {
// For a different example of how to set up an application routing table // For a different example of how to set up an application routing table
// using named routes, consider the example in the Navigator class documentation: // using named routes, consider the example in the Navigator class documentation:
// https://docs.flutter.io/flutter/widgets/Navigator-class.html // https://api.flutter.dev/flutter/widgets/Navigator-class.html
return <String, WidgetBuilder>{ return <String, WidgetBuilder>{
for (final GalleryDemo demo in kAllGalleryDemos) demo.routeName: demo.buildRoute, for (final GalleryDemo demo in kAllGalleryDemos) demo.routeName: demo.buildRoute,
}; };
......
...@@ -181,7 +181,7 @@ List<GalleryDemo> _buildGalleryDemos() { ...@@ -181,7 +181,7 @@ List<GalleryDemo> _buildGalleryDemos() {
icon: GalleryIcons.bottom_app_bar, icon: GalleryIcons.bottom_app_bar,
category: _kMaterialComponents, category: _kMaterialComponents,
routeName: BottomAppBarDemo.routeName, routeName: BottomAppBarDemo.routeName,
documentationUrl: 'https://docs.flutter.io/flutter/material/BottomAppBar-class.html', documentationUrl: 'https://api.flutter.dev/flutter/material/BottomAppBar-class.html',
buildRoute: (BuildContext context) => BottomAppBarDemo(), buildRoute: (BuildContext context) => BottomAppBarDemo(),
), ),
GalleryDemo( GalleryDemo(
...@@ -190,7 +190,7 @@ List<GalleryDemo> _buildGalleryDemos() { ...@@ -190,7 +190,7 @@ List<GalleryDemo> _buildGalleryDemos() {
icon: GalleryIcons.bottom_navigation, icon: GalleryIcons.bottom_navigation,
category: _kMaterialComponents, category: _kMaterialComponents,
routeName: BottomNavigationDemo.routeName, routeName: BottomNavigationDemo.routeName,
documentationUrl: 'https://docs.flutter.io/flutter/material/BottomNavigationBar-class.html', documentationUrl: 'https://api.flutter.dev/flutter/material/BottomNavigationBar-class.html',
buildRoute: (BuildContext context) => BottomNavigationDemo(), buildRoute: (BuildContext context) => BottomNavigationDemo(),
), ),
GalleryDemo( GalleryDemo(
...@@ -199,7 +199,7 @@ List<GalleryDemo> _buildGalleryDemos() { ...@@ -199,7 +199,7 @@ List<GalleryDemo> _buildGalleryDemos() {
icon: GalleryIcons.bottom_sheets, icon: GalleryIcons.bottom_sheets,
category: _kMaterialComponents, category: _kMaterialComponents,
routeName: ModalBottomSheetDemo.routeName, routeName: ModalBottomSheetDemo.routeName,
documentationUrl: 'https://docs.flutter.io/flutter/material/showModalBottomSheet.html', documentationUrl: 'https://api.flutter.dev/flutter/material/showModalBottomSheet.html',
buildRoute: (BuildContext context) => ModalBottomSheetDemo(), buildRoute: (BuildContext context) => ModalBottomSheetDemo(),
), ),
GalleryDemo( GalleryDemo(
...@@ -208,7 +208,7 @@ List<GalleryDemo> _buildGalleryDemos() { ...@@ -208,7 +208,7 @@ List<GalleryDemo> _buildGalleryDemos() {
icon: GalleryIcons.bottom_sheet_persistent, icon: GalleryIcons.bottom_sheet_persistent,
category: _kMaterialComponents, category: _kMaterialComponents,
routeName: PersistentBottomSheetDemo.routeName, routeName: PersistentBottomSheetDemo.routeName,
documentationUrl: 'https://docs.flutter.io/flutter/material/ScaffoldState/showBottomSheet.html', documentationUrl: 'https://api.flutter.dev/flutter/material/ScaffoldState/showBottomSheet.html',
buildRoute: (BuildContext context) => PersistentBottomSheetDemo(), buildRoute: (BuildContext context) => PersistentBottomSheetDemo(),
), ),
GalleryDemo( GalleryDemo(
...@@ -225,7 +225,7 @@ List<GalleryDemo> _buildGalleryDemos() { ...@@ -225,7 +225,7 @@ List<GalleryDemo> _buildGalleryDemos() {
icon: GalleryIcons.buttons, icon: GalleryIcons.buttons,
category: _kMaterialComponents, category: _kMaterialComponents,
routeName: TabsFabDemo.routeName, routeName: TabsFabDemo.routeName,
documentationUrl: 'https://docs.flutter.io/flutter/material/FloatingActionButton-class.html', documentationUrl: 'https://api.flutter.dev/flutter/material/FloatingActionButton-class.html',
buildRoute: (BuildContext context) => TabsFabDemo(), buildRoute: (BuildContext context) => TabsFabDemo(),
), ),
GalleryDemo( GalleryDemo(
...@@ -234,7 +234,7 @@ List<GalleryDemo> _buildGalleryDemos() { ...@@ -234,7 +234,7 @@ List<GalleryDemo> _buildGalleryDemos() {
icon: GalleryIcons.cards, icon: GalleryIcons.cards,
category: _kMaterialComponents, category: _kMaterialComponents,
routeName: CardsDemo.routeName, routeName: CardsDemo.routeName,
documentationUrl: 'https://docs.flutter.io/flutter/material/Card-class.html', documentationUrl: 'https://api.flutter.dev/flutter/material/Card-class.html',
buildRoute: (BuildContext context) => CardsDemo(), buildRoute: (BuildContext context) => CardsDemo(),
), ),
GalleryDemo( GalleryDemo(
...@@ -243,7 +243,7 @@ List<GalleryDemo> _buildGalleryDemos() { ...@@ -243,7 +243,7 @@ List<GalleryDemo> _buildGalleryDemos() {
icon: GalleryIcons.chips, icon: GalleryIcons.chips,
category: _kMaterialComponents, category: _kMaterialComponents,
routeName: ChipDemo.routeName, routeName: ChipDemo.routeName,
documentationUrl: 'https://docs.flutter.io/flutter/material/Chip-class.html', documentationUrl: 'https://api.flutter.dev/flutter/material/Chip-class.html',
buildRoute: (BuildContext context) => ChipDemo(), buildRoute: (BuildContext context) => ChipDemo(),
), ),
GalleryDemo( GalleryDemo(
...@@ -252,7 +252,7 @@ List<GalleryDemo> _buildGalleryDemos() { ...@@ -252,7 +252,7 @@ List<GalleryDemo> _buildGalleryDemos() {
icon: GalleryIcons.data_table, icon: GalleryIcons.data_table,
category: _kMaterialComponents, category: _kMaterialComponents,
routeName: DataTableDemo.routeName, routeName: DataTableDemo.routeName,
documentationUrl: 'https://docs.flutter.io/flutter/material/PaginatedDataTable-class.html', documentationUrl: 'https://api.flutter.dev/flutter/material/PaginatedDataTable-class.html',
buildRoute: (BuildContext context) => DataTableDemo(), buildRoute: (BuildContext context) => DataTableDemo(),
), ),
GalleryDemo( GalleryDemo(
...@@ -261,7 +261,7 @@ List<GalleryDemo> _buildGalleryDemos() { ...@@ -261,7 +261,7 @@ List<GalleryDemo> _buildGalleryDemos() {
icon: GalleryIcons.dialogs, icon: GalleryIcons.dialogs,
category: _kMaterialComponents, category: _kMaterialComponents,
routeName: DialogDemo.routeName, routeName: DialogDemo.routeName,
documentationUrl: 'https://docs.flutter.io/flutter/material/showDialog.html', documentationUrl: 'https://api.flutter.dev/flutter/material/showDialog.html',
buildRoute: (BuildContext context) => DialogDemo(), buildRoute: (BuildContext context) => DialogDemo(),
), ),
GalleryDemo( GalleryDemo(
...@@ -271,7 +271,7 @@ List<GalleryDemo> _buildGalleryDemos() { ...@@ -271,7 +271,7 @@ List<GalleryDemo> _buildGalleryDemos() {
icon: GalleryIcons.cupertino_progress, icon: GalleryIcons.cupertino_progress,
category: _kMaterialComponents, category: _kMaterialComponents,
routeName: ElevationDemo.routeName, routeName: ElevationDemo.routeName,
documentationUrl: 'https://docs.flutter.io/flutter/material/Material/elevation.html', documentationUrl: 'https://api.flutter.dev/flutter/material/Material/elevation.html',
buildRoute: (BuildContext context) => ElevationDemo(), buildRoute: (BuildContext context) => ElevationDemo(),
), ),
GalleryDemo( GalleryDemo(
...@@ -280,7 +280,7 @@ List<GalleryDemo> _buildGalleryDemos() { ...@@ -280,7 +280,7 @@ List<GalleryDemo> _buildGalleryDemos() {
icon: GalleryIcons.expand_all, icon: GalleryIcons.expand_all,
category: _kMaterialComponents, category: _kMaterialComponents,
routeName: ExpansionTileListDemo.routeName, routeName: ExpansionTileListDemo.routeName,
documentationUrl: 'https://docs.flutter.io/flutter/material/ExpansionTile-class.html', documentationUrl: 'https://api.flutter.dev/flutter/material/ExpansionTile-class.html',
buildRoute: (BuildContext context) => ExpansionTileListDemo(), buildRoute: (BuildContext context) => ExpansionTileListDemo(),
), ),
GalleryDemo( GalleryDemo(
...@@ -289,7 +289,7 @@ List<GalleryDemo> _buildGalleryDemos() { ...@@ -289,7 +289,7 @@ List<GalleryDemo> _buildGalleryDemos() {
icon: GalleryIcons.expand_all, icon: GalleryIcons.expand_all,
category: _kMaterialComponents, category: _kMaterialComponents,
routeName: ExpansionPanelsDemo.routeName, routeName: ExpansionPanelsDemo.routeName,
documentationUrl: 'https://docs.flutter.io/flutter/material/ExpansionPanel-class.html', documentationUrl: 'https://api.flutter.dev/flutter/material/ExpansionPanel-class.html',
buildRoute: (BuildContext context) => ExpansionPanelsDemo(), buildRoute: (BuildContext context) => ExpansionPanelsDemo(),
), ),
GalleryDemo( GalleryDemo(
...@@ -298,7 +298,7 @@ List<GalleryDemo> _buildGalleryDemos() { ...@@ -298,7 +298,7 @@ List<GalleryDemo> _buildGalleryDemos() {
icon: GalleryIcons.grid_on, icon: GalleryIcons.grid_on,
category: _kMaterialComponents, category: _kMaterialComponents,
routeName: GridListDemo.routeName, routeName: GridListDemo.routeName,
documentationUrl: 'https://docs.flutter.io/flutter/widgets/GridView-class.html', documentationUrl: 'https://api.flutter.dev/flutter/widgets/GridView-class.html',
buildRoute: (BuildContext context) => const GridListDemo(), buildRoute: (BuildContext context) => const GridListDemo(),
), ),
GalleryDemo( GalleryDemo(
...@@ -307,7 +307,7 @@ List<GalleryDemo> _buildGalleryDemos() { ...@@ -307,7 +307,7 @@ List<GalleryDemo> _buildGalleryDemos() {
icon: GalleryIcons.sentiment_very_satisfied, icon: GalleryIcons.sentiment_very_satisfied,
category: _kMaterialComponents, category: _kMaterialComponents,
routeName: IconsDemo.routeName, routeName: IconsDemo.routeName,
documentationUrl: 'https://docs.flutter.io/flutter/material/IconButton-class.html', documentationUrl: 'https://api.flutter.dev/flutter/material/IconButton-class.html',
buildRoute: (BuildContext context) => IconsDemo(), buildRoute: (BuildContext context) => IconsDemo(),
), ),
GalleryDemo( GalleryDemo(
...@@ -316,7 +316,7 @@ List<GalleryDemo> _buildGalleryDemos() { ...@@ -316,7 +316,7 @@ List<GalleryDemo> _buildGalleryDemos() {
icon: GalleryIcons.list_alt, icon: GalleryIcons.list_alt,
category: _kMaterialComponents, category: _kMaterialComponents,
routeName: ListDemo.routeName, routeName: ListDemo.routeName,
documentationUrl: 'https://docs.flutter.io/flutter/material/ListTile-class.html', documentationUrl: 'https://api.flutter.dev/flutter/material/ListTile-class.html',
buildRoute: (BuildContext context) => const ListDemo(), buildRoute: (BuildContext context) => const ListDemo(),
), ),
GalleryDemo( GalleryDemo(
...@@ -325,7 +325,7 @@ List<GalleryDemo> _buildGalleryDemos() { ...@@ -325,7 +325,7 @@ List<GalleryDemo> _buildGalleryDemos() {
icon: GalleryIcons.lists_leave_behind, icon: GalleryIcons.lists_leave_behind,
category: _kMaterialComponents, category: _kMaterialComponents,
routeName: LeaveBehindDemo.routeName, routeName: LeaveBehindDemo.routeName,
documentationUrl: 'https://docs.flutter.io/flutter/widgets/Dismissible-class.html', documentationUrl: 'https://api.flutter.dev/flutter/widgets/Dismissible-class.html',
buildRoute: (BuildContext context) => const LeaveBehindDemo(), buildRoute: (BuildContext context) => const LeaveBehindDemo(),
), ),
GalleryDemo( GalleryDemo(
...@@ -334,7 +334,7 @@ List<GalleryDemo> _buildGalleryDemos() { ...@@ -334,7 +334,7 @@ List<GalleryDemo> _buildGalleryDemos() {
icon: GalleryIcons.list_alt, icon: GalleryIcons.list_alt,
category: _kMaterialComponents, category: _kMaterialComponents,
routeName: ReorderableListDemo.routeName, routeName: ReorderableListDemo.routeName,
documentationUrl: 'https://docs.flutter.io/flutter/material/ReorderableListView-class.html', documentationUrl: 'https://api.flutter.dev/flutter/material/ReorderableListView-class.html',
buildRoute: (BuildContext context) => const ReorderableListDemo(), buildRoute: (BuildContext context) => const ReorderableListDemo(),
), ),
GalleryDemo( GalleryDemo(
...@@ -343,7 +343,7 @@ List<GalleryDemo> _buildGalleryDemos() { ...@@ -343,7 +343,7 @@ List<GalleryDemo> _buildGalleryDemos() {
icon: GalleryIcons.more_vert, icon: GalleryIcons.more_vert,
category: _kMaterialComponents, category: _kMaterialComponents,
routeName: MenuDemo.routeName, routeName: MenuDemo.routeName,
documentationUrl: 'https://docs.flutter.io/flutter/material/PopupMenuButton-class.html', documentationUrl: 'https://api.flutter.dev/flutter/material/PopupMenuButton-class.html',
buildRoute: (BuildContext context) => const MenuDemo(), buildRoute: (BuildContext context) => const MenuDemo(),
), ),
GalleryDemo( GalleryDemo(
...@@ -352,7 +352,7 @@ List<GalleryDemo> _buildGalleryDemos() { ...@@ -352,7 +352,7 @@ List<GalleryDemo> _buildGalleryDemos() {
icon: GalleryIcons.menu, icon: GalleryIcons.menu,
category: _kMaterialComponents, category: _kMaterialComponents,
routeName: DrawerDemo.routeName, routeName: DrawerDemo.routeName,
documentationUrl: 'https://docs.flutter.io/flutter/material/Drawer-class.html', documentationUrl: 'https://api.flutter.dev/flutter/material/Drawer-class.html',
buildRoute: (BuildContext context) => DrawerDemo(), buildRoute: (BuildContext context) => DrawerDemo(),
), ),
GalleryDemo( GalleryDemo(
...@@ -361,7 +361,7 @@ List<GalleryDemo> _buildGalleryDemos() { ...@@ -361,7 +361,7 @@ List<GalleryDemo> _buildGalleryDemos() {
icon: GalleryIcons.page_control, icon: GalleryIcons.page_control,
category: _kMaterialComponents, category: _kMaterialComponents,
routeName: PageSelectorDemo.routeName, routeName: PageSelectorDemo.routeName,
documentationUrl: 'https://docs.flutter.io/flutter/material/TabBarView-class.html', documentationUrl: 'https://api.flutter.dev/flutter/material/TabBarView-class.html',
buildRoute: (BuildContext context) => PageSelectorDemo(), buildRoute: (BuildContext context) => PageSelectorDemo(),
), ),
GalleryDemo( GalleryDemo(
...@@ -370,7 +370,7 @@ List<GalleryDemo> _buildGalleryDemos() { ...@@ -370,7 +370,7 @@ List<GalleryDemo> _buildGalleryDemos() {
icon: GalleryIcons.event, icon: GalleryIcons.event,
category: _kMaterialComponents, category: _kMaterialComponents,
routeName: DateAndTimePickerDemo.routeName, routeName: DateAndTimePickerDemo.routeName,
documentationUrl: 'https://docs.flutter.io/flutter/material/showDatePicker.html', documentationUrl: 'https://api.flutter.dev/flutter/material/showDatePicker.html',
buildRoute: (BuildContext context) => DateAndTimePickerDemo(), buildRoute: (BuildContext context) => DateAndTimePickerDemo(),
), ),
GalleryDemo( GalleryDemo(
...@@ -379,7 +379,7 @@ List<GalleryDemo> _buildGalleryDemos() { ...@@ -379,7 +379,7 @@ List<GalleryDemo> _buildGalleryDemos() {
icon: GalleryIcons.progress_activity, icon: GalleryIcons.progress_activity,
category: _kMaterialComponents, category: _kMaterialComponents,
routeName: ProgressIndicatorDemo.routeName, routeName: ProgressIndicatorDemo.routeName,
documentationUrl: 'https://docs.flutter.io/flutter/material/LinearProgressIndicator-class.html', documentationUrl: 'https://api.flutter.dev/flutter/material/LinearProgressIndicator-class.html',
buildRoute: (BuildContext context) => ProgressIndicatorDemo(), buildRoute: (BuildContext context) => ProgressIndicatorDemo(),
), ),
GalleryDemo( GalleryDemo(
...@@ -388,7 +388,7 @@ List<GalleryDemo> _buildGalleryDemos() { ...@@ -388,7 +388,7 @@ List<GalleryDemo> _buildGalleryDemos() {
icon: GalleryIcons.refresh, icon: GalleryIcons.refresh,
category: _kMaterialComponents, category: _kMaterialComponents,
routeName: OverscrollDemo.routeName, routeName: OverscrollDemo.routeName,
documentationUrl: 'https://docs.flutter.io/flutter/material/RefreshIndicator-class.html', documentationUrl: 'https://api.flutter.dev/flutter/material/RefreshIndicator-class.html',
buildRoute: (BuildContext context) => const OverscrollDemo(), buildRoute: (BuildContext context) => const OverscrollDemo(),
), ),
GalleryDemo( GalleryDemo(
...@@ -397,7 +397,7 @@ List<GalleryDemo> _buildGalleryDemos() { ...@@ -397,7 +397,7 @@ List<GalleryDemo> _buildGalleryDemos() {
icon: Icons.search, icon: Icons.search,
category: _kMaterialComponents, category: _kMaterialComponents,
routeName: SearchDemo.routeName, routeName: SearchDemo.routeName,
documentationUrl: 'https://docs.flutter.io/flutter/material/showSearch.html', documentationUrl: 'https://api.flutter.dev/flutter/material/showSearch.html',
buildRoute: (BuildContext context) => SearchDemo(), buildRoute: (BuildContext context) => SearchDemo(),
), ),
GalleryDemo( GalleryDemo(
...@@ -414,7 +414,7 @@ List<GalleryDemo> _buildGalleryDemos() { ...@@ -414,7 +414,7 @@ List<GalleryDemo> _buildGalleryDemos() {
icon: GalleryIcons.sliders, icon: GalleryIcons.sliders,
category: _kMaterialComponents, category: _kMaterialComponents,
routeName: SliderDemo.routeName, routeName: SliderDemo.routeName,
documentationUrl: 'https://docs.flutter.io/flutter/material/Slider-class.html', documentationUrl: 'https://api.flutter.dev/flutter/material/Slider-class.html',
buildRoute: (BuildContext context) => SliderDemo(), buildRoute: (BuildContext context) => SliderDemo(),
), ),
GalleryDemo( GalleryDemo(
...@@ -423,7 +423,7 @@ List<GalleryDemo> _buildGalleryDemos() { ...@@ -423,7 +423,7 @@ List<GalleryDemo> _buildGalleryDemos() {
icon: GalleryIcons.snackbar, icon: GalleryIcons.snackbar,
category: _kMaterialComponents, category: _kMaterialComponents,
routeName: SnackBarDemo.routeName, routeName: SnackBarDemo.routeName,
documentationUrl: 'https://docs.flutter.io/flutter/material/ScaffoldState/showSnackBar.html', documentationUrl: 'https://api.flutter.dev/flutter/material/ScaffoldState/showSnackBar.html',
buildRoute: (BuildContext context) => const SnackBarDemo(), buildRoute: (BuildContext context) => const SnackBarDemo(),
), ),
GalleryDemo( GalleryDemo(
...@@ -432,7 +432,7 @@ List<GalleryDemo> _buildGalleryDemos() { ...@@ -432,7 +432,7 @@ List<GalleryDemo> _buildGalleryDemos() {
icon: GalleryIcons.tabs, icon: GalleryIcons.tabs,
category: _kMaterialComponents, category: _kMaterialComponents,
routeName: TabsDemo.routeName, routeName: TabsDemo.routeName,
documentationUrl: 'https://docs.flutter.io/flutter/material/TabBarView-class.html', documentationUrl: 'https://api.flutter.dev/flutter/material/TabBarView-class.html',
buildRoute: (BuildContext context) => TabsDemo(), buildRoute: (BuildContext context) => TabsDemo(),
), ),
GalleryDemo( GalleryDemo(
...@@ -441,7 +441,7 @@ List<GalleryDemo> _buildGalleryDemos() { ...@@ -441,7 +441,7 @@ List<GalleryDemo> _buildGalleryDemos() {
category: _kMaterialComponents, category: _kMaterialComponents,
icon: GalleryIcons.tabs, icon: GalleryIcons.tabs,
routeName: ScrollableTabsDemo.routeName, routeName: ScrollableTabsDemo.routeName,
documentationUrl: 'https://docs.flutter.io/flutter/material/TabBar-class.html', documentationUrl: 'https://api.flutter.dev/flutter/material/TabBar-class.html',
buildRoute: (BuildContext context) => ScrollableTabsDemo(), buildRoute: (BuildContext context) => ScrollableTabsDemo(),
), ),
GalleryDemo( GalleryDemo(
...@@ -450,7 +450,7 @@ List<GalleryDemo> _buildGalleryDemos() { ...@@ -450,7 +450,7 @@ List<GalleryDemo> _buildGalleryDemos() {
icon: GalleryIcons.text_fields_alt, icon: GalleryIcons.text_fields_alt,
category: _kMaterialComponents, category: _kMaterialComponents,
routeName: TextFormFieldDemo.routeName, routeName: TextFormFieldDemo.routeName,
documentationUrl: 'https://docs.flutter.io/flutter/material/TextFormField-class.html', documentationUrl: 'https://api.flutter.dev/flutter/material/TextFormField-class.html',
buildRoute: (BuildContext context) => const TextFormFieldDemo(), buildRoute: (BuildContext context) => const TextFormFieldDemo(),
), ),
GalleryDemo( GalleryDemo(
...@@ -459,7 +459,7 @@ List<GalleryDemo> _buildGalleryDemos() { ...@@ -459,7 +459,7 @@ List<GalleryDemo> _buildGalleryDemos() {
icon: GalleryIcons.tooltip, icon: GalleryIcons.tooltip,
category: _kMaterialComponents, category: _kMaterialComponents,
routeName: TooltipDemo.routeName, routeName: TooltipDemo.routeName,
documentationUrl: 'https://docs.flutter.io/flutter/material/Tooltip-class.html', documentationUrl: 'https://api.flutter.dev/flutter/material/Tooltip-class.html',
buildRoute: (BuildContext context) => TooltipDemo(), buildRoute: (BuildContext context) => TooltipDemo(),
), ),
...@@ -469,7 +469,7 @@ List<GalleryDemo> _buildGalleryDemos() { ...@@ -469,7 +469,7 @@ List<GalleryDemo> _buildGalleryDemos() {
icon: GalleryIcons.cupertino_progress, icon: GalleryIcons.cupertino_progress,
category: _kCupertinoComponents, category: _kCupertinoComponents,
routeName: CupertinoProgressIndicatorDemo.routeName, routeName: CupertinoProgressIndicatorDemo.routeName,
documentationUrl: 'https://docs.flutter.io/flutter/cupertino/CupertinoActivityIndicator-class.html', documentationUrl: 'https://api.flutter.dev/flutter/cupertino/CupertinoActivityIndicator-class.html',
buildRoute: (BuildContext context) => CupertinoProgressIndicatorDemo(), buildRoute: (BuildContext context) => CupertinoProgressIndicatorDemo(),
), ),
GalleryDemo( GalleryDemo(
...@@ -477,7 +477,7 @@ List<GalleryDemo> _buildGalleryDemos() { ...@@ -477,7 +477,7 @@ List<GalleryDemo> _buildGalleryDemos() {
icon: GalleryIcons.dialogs, icon: GalleryIcons.dialogs,
category: _kCupertinoComponents, category: _kCupertinoComponents,
routeName: CupertinoAlertDemo.routeName, routeName: CupertinoAlertDemo.routeName,
documentationUrl: 'https://docs.flutter.io/flutter/cupertino/showCupertinoDialog.html', documentationUrl: 'https://api.flutter.dev/flutter/cupertino/showCupertinoDialog.html',
buildRoute: (BuildContext context) => CupertinoAlertDemo(), buildRoute: (BuildContext context) => CupertinoAlertDemo(),
), ),
GalleryDemo( GalleryDemo(
...@@ -485,7 +485,7 @@ List<GalleryDemo> _buildGalleryDemos() { ...@@ -485,7 +485,7 @@ List<GalleryDemo> _buildGalleryDemos() {
icon: GalleryIcons.generic_buttons, icon: GalleryIcons.generic_buttons,
category: _kCupertinoComponents, category: _kCupertinoComponents,
routeName: CupertinoButtonsDemo.routeName, routeName: CupertinoButtonsDemo.routeName,
documentationUrl: 'https://docs.flutter.io/flutter/cupertino/CupertinoButton-class.html', documentationUrl: 'https://api.flutter.dev/flutter/cupertino/CupertinoButton-class.html',
buildRoute: (BuildContext context) => CupertinoButtonsDemo(), buildRoute: (BuildContext context) => CupertinoButtonsDemo(),
), ),
GalleryDemo( GalleryDemo(
...@@ -493,7 +493,7 @@ List<GalleryDemo> _buildGalleryDemos() { ...@@ -493,7 +493,7 @@ List<GalleryDemo> _buildGalleryDemos() {
icon: GalleryIcons.bottom_navigation, icon: GalleryIcons.bottom_navigation,
category: _kCupertinoComponents, category: _kCupertinoComponents,
routeName: CupertinoNavigationDemo.routeName, routeName: CupertinoNavigationDemo.routeName,
documentationUrl: 'https://docs.flutter.io/flutter/cupertino/CupertinoTabScaffold-class.html', documentationUrl: 'https://api.flutter.dev/flutter/cupertino/CupertinoTabScaffold-class.html',
buildRoute: (BuildContext context) => CupertinoNavigationDemo(), buildRoute: (BuildContext context) => CupertinoNavigationDemo(),
), ),
GalleryDemo( GalleryDemo(
...@@ -501,7 +501,7 @@ List<GalleryDemo> _buildGalleryDemos() { ...@@ -501,7 +501,7 @@ List<GalleryDemo> _buildGalleryDemos() {
icon: GalleryIcons.event, icon: GalleryIcons.event,
category: _kCupertinoComponents, category: _kCupertinoComponents,
routeName: CupertinoPickerDemo.routeName, routeName: CupertinoPickerDemo.routeName,
documentationUrl: 'https://docs.flutter.io/flutter/cupertino/CupertinoPicker-class.html', documentationUrl: 'https://api.flutter.dev/flutter/cupertino/CupertinoPicker-class.html',
buildRoute: (BuildContext context) => CupertinoPickerDemo(), buildRoute: (BuildContext context) => CupertinoPickerDemo(),
), ),
GalleryDemo( GalleryDemo(
...@@ -509,7 +509,7 @@ List<GalleryDemo> _buildGalleryDemos() { ...@@ -509,7 +509,7 @@ List<GalleryDemo> _buildGalleryDemos() {
icon: GalleryIcons.cupertino_pull_to_refresh, icon: GalleryIcons.cupertino_pull_to_refresh,
category: _kCupertinoComponents, category: _kCupertinoComponents,
routeName: CupertinoRefreshControlDemo.routeName, routeName: CupertinoRefreshControlDemo.routeName,
documentationUrl: 'https://docs.flutter.io/flutter/cupertino/CupertinoSliverRefreshControl-class.html', documentationUrl: 'https://api.flutter.dev/flutter/cupertino/CupertinoSliverRefreshControl-class.html',
buildRoute: (BuildContext context) => CupertinoRefreshControlDemo(), buildRoute: (BuildContext context) => CupertinoRefreshControlDemo(),
), ),
GalleryDemo( GalleryDemo(
...@@ -517,7 +517,7 @@ List<GalleryDemo> _buildGalleryDemos() { ...@@ -517,7 +517,7 @@ List<GalleryDemo> _buildGalleryDemos() {
icon: GalleryIcons.tabs, icon: GalleryIcons.tabs,
category: _kCupertinoComponents, category: _kCupertinoComponents,
routeName: CupertinoSegmentedControlDemo.routeName, routeName: CupertinoSegmentedControlDemo.routeName,
documentationUrl: 'https://docs.flutter.io/flutter/cupertino/CupertinoSegmentedControl-class.html', documentationUrl: 'https://api.flutter.dev/flutter/cupertino/CupertinoSegmentedControl-class.html',
buildRoute: (BuildContext context) => CupertinoSegmentedControlDemo(), buildRoute: (BuildContext context) => CupertinoSegmentedControlDemo(),
), ),
GalleryDemo( GalleryDemo(
...@@ -525,7 +525,7 @@ List<GalleryDemo> _buildGalleryDemos() { ...@@ -525,7 +525,7 @@ List<GalleryDemo> _buildGalleryDemos() {
icon: GalleryIcons.sliders, icon: GalleryIcons.sliders,
category: _kCupertinoComponents, category: _kCupertinoComponents,
routeName: CupertinoSliderDemo.routeName, routeName: CupertinoSliderDemo.routeName,
documentationUrl: 'https://docs.flutter.io/flutter/cupertino/CupertinoSlider-class.html', documentationUrl: 'https://api.flutter.dev/flutter/cupertino/CupertinoSlider-class.html',
buildRoute: (BuildContext context) => CupertinoSliderDemo(), buildRoute: (BuildContext context) => CupertinoSliderDemo(),
), ),
GalleryDemo( GalleryDemo(
...@@ -533,7 +533,7 @@ List<GalleryDemo> _buildGalleryDemos() { ...@@ -533,7 +533,7 @@ List<GalleryDemo> _buildGalleryDemos() {
icon: GalleryIcons.cupertino_switch, icon: GalleryIcons.cupertino_switch,
category: _kCupertinoComponents, category: _kCupertinoComponents,
routeName: CupertinoSwitchDemo.routeName, routeName: CupertinoSwitchDemo.routeName,
documentationUrl: 'https://docs.flutter.io/flutter/cupertino/CupertinoSwitch-class.html', documentationUrl: 'https://api.flutter.dev/flutter/cupertino/CupertinoSwitch-class.html',
buildRoute: (BuildContext context) => CupertinoSwitchDemo(), buildRoute: (BuildContext context) => CupertinoSwitchDemo(),
), ),
GalleryDemo( GalleryDemo(
......
...@@ -24,8 +24,8 @@ const String kPlatformIntegrationPackageName = 'platform_integration'; ...@@ -24,8 +24,8 @@ const String kPlatformIntegrationPackageName = 'platform_integration';
/// documentation to `//dev/docs/doc/api/`. /// documentation to `//dev/docs/doc/api/`.
/// ///
/// This script also updates the index.html file so that it can be placed /// This script also updates the index.html file so that it can be placed
/// at the root of docs.flutter.io. We are keeping the files inside of /// at the root of api.flutter.dev. We are keeping the files inside of
/// docs.flutter.io/flutter for now, so we need to manipulate paths /// api.flutter.dev/flutter for now, so we need to manipulate paths
/// a bit. See https://github.com/flutter/flutter/issues/3900 for more info. /// a bit. See https://github.com/flutter/flutter/issues/3900 for more info.
/// ///
/// This will only work on UNIX systems, not Windows. It requires that 'git' be /// This will only work on UNIX systems, not Windows. It requires that 'git' be
...@@ -303,7 +303,7 @@ void createSearchMetadata(String templatePath, String metadataPath) { ...@@ -303,7 +303,7 @@ void createSearchMetadata(String templatePath, String metadataPath) {
final String branch = getBranchName(); final String branch = getBranchName();
final String metadata = template.replaceAll( final String metadata = template.replaceAll(
'{SITE_URL}', '{SITE_URL}',
branch == 'stable' ? 'https://docs.flutter.io/' : 'https://master-docs.flutter.io/', branch == 'stable' ? 'https://api.flutter.dev/' : 'https://master-api.flutter.dev/',
); );
Directory(path.dirname(metadataPath)).create(recursive: true); Directory(path.dirname(metadataPath)).create(recursive: true);
File(metadataPath).writeAsStringSync(metadata); File(metadataPath).writeAsStringSync(metadata);
......
...@@ -809,7 +809,7 @@ class SliverAnimatedList extends StatefulWidget { ...@@ -809,7 +809,7 @@ class SliverAnimatedList extends StatefulWidget {
'happen when the context provided is from the same StatefulWidget that ' 'happen when the context provided is from the same StatefulWidget that '
'built the AnimatedList. Please see the SliverAnimatedList documentation ' 'built the AnimatedList. Please see the SliverAnimatedList documentation '
'for examples of how to refer to an AnimatedListState object: ' 'for examples of how to refer to an AnimatedListState object: '
'https://docs.flutter.io/flutter/widgets/SliverAnimatedListState-class.html\n' 'https://api.flutter.dev/flutter/widgets/SliverAnimatedListState-class.html\n'
'The context used was:\n' 'The context used was:\n'
' $context'); ' $context');
} }
......
...@@ -140,10 +140,10 @@ translations, they're keywords that help define an app's text theme ...@@ -140,10 +140,10 @@ translations, they're keywords that help define an app's text theme
and time picker layout respectively. and time picker layout respectively.
The value of `timeOfDayFormat` defines how a time picker displayed by The value of `timeOfDayFormat` defines how a time picker displayed by
[showTimePicker()](https://docs.flutter.io/flutter/material/showTimePicker.html) [showTimePicker()](https://api.flutter.dev/flutter/material/showTimePicker.html)
formats and lays out its time controls. The value of `timeOfDayFormat` formats and lays out its time controls. The value of `timeOfDayFormat`
must be a string that matches one of the formats defined by must be a string that matches one of the formats defined by
<https://docs.flutter.io/flutter/material/TimeOfDayFormat-class.html>. <https://api.flutter.dev/flutter/material/TimeOfDayFormat-class.html>.
It is converted to an enum value because the `material_en.arb` file It is converted to an enum value because the `material_en.arb` file
has this value labeled as `"x-flutter-type": "icuShortTimePattern"`. has this value labeled as `"x-flutter-type": "icuShortTimePattern"`.
...@@ -152,7 +152,7 @@ The value of `scriptCategory` is based on the ...@@ -152,7 +152,7 @@ The value of `scriptCategory` is based on the
section in the Material spec. The Material theme uses the section in the Material spec. The Material theme uses the
`scriptCategory` value to lookup a localized version of the default `scriptCategory` value to lookup a localized version of the default
`TextTheme`, see `TextTheme`, see
[Typography.geometryThemeFor](https://docs.flutter.io/flutter/material/Typography/geometryThemeFor.html). [Typography.geometryThemeFor](https://api.flutter.dev/flutter/material/Typography/geometryThemeFor.html).
### 'generated_*_localizations.dart': all of the localizations as a Map ### 'generated_*_localizations.dart': all of the localizations as a Map
......
...@@ -92,8 +92,8 @@ class CreateCommand extends CreateBase { ...@@ -92,8 +92,8 @@ class CreateCommand extends CreateBase {
/// The hostname for the Flutter docs for the current channel. /// The hostname for the Flutter docs for the current channel.
String get _snippetsHost => globals.flutterVersion.channel == 'stable' String get _snippetsHost => globals.flutterVersion.channel == 'stable'
? 'docs.flutter.io' ? 'api.flutter.dev'
: 'master-docs.flutter.io'; : 'master-api.flutter.dev';
Future<String> _fetchSampleFromServer(String sampleId) async { Future<String> _fetchSampleFromServer(String sampleId) async {
// Sanity check the sampleId // Sanity check the sampleId
......
...@@ -244,7 +244,7 @@ void main() { ...@@ -244,7 +244,7 @@ void main() {
testWithoutContext('flattenNameSubdirs', () { testWithoutContext('flattenNameSubdirs', () {
expect(flattenNameSubdirs(Uri.parse('http://flutter.dev/foo/bar'), MemoryFileSystem.test()), 'flutter.dev/foo/bar'); expect(flattenNameSubdirs(Uri.parse('http://flutter.dev/foo/bar'), MemoryFileSystem.test()), 'flutter.dev/foo/bar');
expect(flattenNameSubdirs(Uri.parse('http://docs.flutter.io/foo/bar'), MemoryFileSystem.test()), 'docs.flutter.io/foo/bar'); expect(flattenNameSubdirs(Uri.parse('http://api.flutter.dev/foo/bar'), MemoryFileSystem.test()), 'api.flutter.dev/foo/bar');
expect(flattenNameSubdirs(Uri.parse('https://www.flutter.dev'), MemoryFileSystem.test()), 'www.flutter.dev'); expect(flattenNameSubdirs(Uri.parse('https://www.flutter.dev'), MemoryFileSystem.test()), 'www.flutter.dev');
}); });
......
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