Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cab4a0f

Browse files
authored
Replace dead links (#144827)
I have found that some Apple-related links are no longer accessible, and they have been replaced
1 parent c000648 commit cab4a0f

File tree

9 files changed

+10
-10
lines changed

9 files changed

+10
-10
lines changed

packages/flutter/lib/src/cupertino/activity_indicator.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const Color _kActiveTickColor = CupertinoDynamicColor.withBrightness(
2828
///
2929
/// See also:
3030
///
31-
/// * <https://developer.apple.com/ios/human-interface-guidelines/controls/progress-indicators/#activity-indicators>
31+
/// * <https://developer.apple.com/design/human-interface-guidelines/progress-indicators/>
3232
class CupertinoActivityIndicator extends StatefulWidget {
3333
/// Creates an iOS-style activity indicator that spins clockwise.
3434
const CupertinoActivityIndicator({

packages/flutter/lib/src/cupertino/button.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const EdgeInsets _kBackgroundButtonPadding = EdgeInsets.symmetric(
3535
///
3636
/// See also:
3737
///
38-
/// * <https://developer.apple.com/ios/human-interface-guidelines/controls/buttons/>
38+
/// * <https://developer.apple.com/design/human-interface-guidelines/buttons/>
3939
class CupertinoButton extends StatefulWidget {
4040
/// Creates an iOS-style button.
4141
const CupertinoButton({

packages/flutter/lib/src/cupertino/dialog.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ bool _isInAccessibilityMode(BuildContext context) {
188188
/// holds arbitrary content to create custom popups.
189189
/// * [CupertinoDialogAction], which is an iOS-style dialog button.
190190
/// * [AlertDialog], a Material Design alert dialog.
191-
/// * <https://developer.apple.com/ios/human-interface-guidelines/views/alerts/>
191+
/// * <https://developer.apple.com/design/human-interface-guidelines/alerts/>
192192
class CupertinoAlertDialog extends StatefulWidget {
193193
/// Creates an iOS-style alert dialog.
194194
const CupertinoAlertDialog({
@@ -400,7 +400,7 @@ class _CupertinoAlertDialogState extends State<CupertinoAlertDialog> {
400400
///
401401
/// * [CupertinoAlertDialog], which is a dialog with a title, content, and
402402
/// actions.
403-
/// * <https://developer.apple.com/ios/human-interface-guidelines/views/alerts/>
403+
/// * <https://developer.apple.com/design/human-interface-guidelines/alerts/>
404404
class CupertinoPopupSurface extends StatelessWidget {
405405
/// Creates an iOS-style rounded rectangle popup surface.
406406
const CupertinoPopupSurface({

packages/flutter/lib/src/cupertino/route.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1288,7 +1288,7 @@ Widget _buildCupertinoDialogTransitions(BuildContext context, Animation<double>
12881288
/// * [showGeneralDialog], which allows for customization of the dialog popup.
12891289
/// * [DisplayFeatureSubScreen], which documents the specifics of how
12901290
/// [DisplayFeature]s can split the screen into sub-screens.
1291-
/// * <https://developer.apple.com/ios/human-interface-guidelines/views/alerts/>
1291+
/// * <https://developer.apple.com/design/human-interface-guidelines/alerts/>
12921292
Future<T?> showCupertinoDialog<T>({
12931293
required BuildContext context,
12941294
required WidgetBuilder builder,

packages/flutter/lib/src/cupertino/slider.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ import 'thumb_painter.dart';
4545
///
4646
/// See also:
4747
///
48-
/// * <https://developer.apple.com/ios/human-interface-guidelines/controls/sliders/>
48+
/// * <https://developer.apple.com/design/human-interface-guidelines/sliders/>
4949
class CupertinoSlider extends StatefulWidget {
5050
/// Creates an iOS-style slider.
5151
///

packages/flutter/lib/src/cupertino/switch.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ import 'thumb_painter.dart';
6060
/// See also:
6161
///
6262
/// * [Switch], the Material Design equivalent.
63-
/// * <https://developer.apple.com/ios/human-interface-guidelines/controls/switches/>
63+
/// * <https://developer.apple.com/design/human-interface-guidelines/toggles/>
6464
class CupertinoSwitch extends StatefulWidget {
6565
/// Creates an iOS-style switch.
6666
///

packages/flutter/lib/src/material/typography.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ enum ScriptCategory {
6060
/// [blackCupertino], and [whiteCupertino]. The Mountain View theme [TextStyle]s
6161
/// are based on the Roboto fonts as used on Android. The Cupertino themes are
6262
/// based on the [San Francisco
63-
/// font](https://developer.apple.com/ios/human-interface-guidelines/visual-design/typography/)
63+
/// font](https://developer.apple.com/design/human-interface-guidelines/typography/)
6464
/// fonts as used by Apple on iOS.
6565
///
6666
/// Two sets of geometry themes are provided: 2014 and 2018. The 2014 themes

packages/flutter/lib/src/widgets/bottom_navigation_bar_item.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import 'framework.dart';
1717
/// * [BottomNavigationBar]
1818
/// * <https://material.io/design/components/bottom-navigation.html>
1919
/// * [CupertinoTabBar]
20-
/// * <https://developer.apple.com/ios/human-interface-guidelines/bars/tab-bars>
20+
/// * <https://developer.apple.com/design/human-interface-guidelines/tab-bars/>
2121
class BottomNavigationBarItem {
2222
/// Creates an item that is used with [BottomNavigationBar.items].
2323
///

packages/flutter/test/material/typography_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ void main() {
3434
expect(Typography.material2018(platform: TargetPlatform.windows).white.titleLarge!.fontFamily, 'Segoe UI');
3535
});
3636

37-
// Ref: https://developer.apple.com/ios/human-interface-guidelines/visual-design/typography/
37+
// Ref: https://developer.apple.com/design/human-interface-guidelines/typography/
3838
final Matcher isSanFranciscoDisplayFont = predicate((TextStyle s) {
3939
return s.fontFamily == 'CupertinoSystemDisplay';
4040
}, 'Uses SF Display font');

0 commit comments

Comments
 (0)