Unverified Commit cab4a0fb authored by Percival's avatar Percival Committed by GitHub

Replace dead links (#144827)

I have found that some Apple-related links are no longer accessible, and they have been replaced
parent c0006488
...@@ -28,7 +28,7 @@ const Color _kActiveTickColor = CupertinoDynamicColor.withBrightness( ...@@ -28,7 +28,7 @@ const Color _kActiveTickColor = CupertinoDynamicColor.withBrightness(
/// ///
/// See also: /// See also:
/// ///
/// * <https://developer.apple.com/ios/human-interface-guidelines/controls/progress-indicators/#activity-indicators> /// * <https://developer.apple.com/design/human-interface-guidelines/progress-indicators/>
class CupertinoActivityIndicator extends StatefulWidget { class CupertinoActivityIndicator extends StatefulWidget {
/// Creates an iOS-style activity indicator that spins clockwise. /// Creates an iOS-style activity indicator that spins clockwise.
const CupertinoActivityIndicator({ const CupertinoActivityIndicator({
......
...@@ -35,7 +35,7 @@ const EdgeInsets _kBackgroundButtonPadding = EdgeInsets.symmetric( ...@@ -35,7 +35,7 @@ const EdgeInsets _kBackgroundButtonPadding = EdgeInsets.symmetric(
/// ///
/// See also: /// See also:
/// ///
/// * <https://developer.apple.com/ios/human-interface-guidelines/controls/buttons/> /// * <https://developer.apple.com/design/human-interface-guidelines/buttons/>
class CupertinoButton extends StatefulWidget { class CupertinoButton extends StatefulWidget {
/// Creates an iOS-style button. /// Creates an iOS-style button.
const CupertinoButton({ const CupertinoButton({
......
...@@ -188,7 +188,7 @@ bool _isInAccessibilityMode(BuildContext context) { ...@@ -188,7 +188,7 @@ bool _isInAccessibilityMode(BuildContext context) {
/// holds arbitrary content to create custom popups. /// holds arbitrary content to create custom popups.
/// * [CupertinoDialogAction], which is an iOS-style dialog button. /// * [CupertinoDialogAction], which is an iOS-style dialog button.
/// * [AlertDialog], a Material Design alert dialog. /// * [AlertDialog], a Material Design alert dialog.
/// * <https://developer.apple.com/ios/human-interface-guidelines/views/alerts/> /// * <https://developer.apple.com/design/human-interface-guidelines/alerts/>
class CupertinoAlertDialog extends StatefulWidget { class CupertinoAlertDialog extends StatefulWidget {
/// Creates an iOS-style alert dialog. /// Creates an iOS-style alert dialog.
const CupertinoAlertDialog({ const CupertinoAlertDialog({
...@@ -400,7 +400,7 @@ class _CupertinoAlertDialogState extends State<CupertinoAlertDialog> { ...@@ -400,7 +400,7 @@ class _CupertinoAlertDialogState extends State<CupertinoAlertDialog> {
/// ///
/// * [CupertinoAlertDialog], which is a dialog with a title, content, and /// * [CupertinoAlertDialog], which is a dialog with a title, content, and
/// actions. /// actions.
/// * <https://developer.apple.com/ios/human-interface-guidelines/views/alerts/> /// * <https://developer.apple.com/design/human-interface-guidelines/alerts/>
class CupertinoPopupSurface extends StatelessWidget { class CupertinoPopupSurface extends StatelessWidget {
/// Creates an iOS-style rounded rectangle popup surface. /// Creates an iOS-style rounded rectangle popup surface.
const CupertinoPopupSurface({ const CupertinoPopupSurface({
......
...@@ -1288,7 +1288,7 @@ Widget _buildCupertinoDialogTransitions(BuildContext context, Animation<double> ...@@ -1288,7 +1288,7 @@ Widget _buildCupertinoDialogTransitions(BuildContext context, Animation<double>
/// * [showGeneralDialog], which allows for customization of the dialog popup. /// * [showGeneralDialog], which allows for customization of the dialog popup.
/// * [DisplayFeatureSubScreen], which documents the specifics of how /// * [DisplayFeatureSubScreen], which documents the specifics of how
/// [DisplayFeature]s can split the screen into sub-screens. /// [DisplayFeature]s can split the screen into sub-screens.
/// * <https://developer.apple.com/ios/human-interface-guidelines/views/alerts/> /// * <https://developer.apple.com/design/human-interface-guidelines/alerts/>
Future<T?> showCupertinoDialog<T>({ Future<T?> showCupertinoDialog<T>({
required BuildContext context, required BuildContext context,
required WidgetBuilder builder, required WidgetBuilder builder,
......
...@@ -45,7 +45,7 @@ import 'thumb_painter.dart'; ...@@ -45,7 +45,7 @@ import 'thumb_painter.dart';
/// ///
/// See also: /// See also:
/// ///
/// * <https://developer.apple.com/ios/human-interface-guidelines/controls/sliders/> /// * <https://developer.apple.com/design/human-interface-guidelines/sliders/>
class CupertinoSlider extends StatefulWidget { class CupertinoSlider extends StatefulWidget {
/// Creates an iOS-style slider. /// Creates an iOS-style slider.
/// ///
......
...@@ -60,7 +60,7 @@ import 'thumb_painter.dart'; ...@@ -60,7 +60,7 @@ import 'thumb_painter.dart';
/// See also: /// See also:
/// ///
/// * [Switch], the Material Design equivalent. /// * [Switch], the Material Design equivalent.
/// * <https://developer.apple.com/ios/human-interface-guidelines/controls/switches/> /// * <https://developer.apple.com/design/human-interface-guidelines/toggles/>
class CupertinoSwitch extends StatefulWidget { class CupertinoSwitch extends StatefulWidget {
/// Creates an iOS-style switch. /// Creates an iOS-style switch.
/// ///
......
...@@ -60,7 +60,7 @@ enum ScriptCategory { ...@@ -60,7 +60,7 @@ enum ScriptCategory {
/// [blackCupertino], and [whiteCupertino]. The Mountain View theme [TextStyle]s /// [blackCupertino], and [whiteCupertino]. The Mountain View theme [TextStyle]s
/// are based on the Roboto fonts as used on Android. The Cupertino themes are /// are based on the Roboto fonts as used on Android. The Cupertino themes are
/// based on the [San Francisco /// based on the [San Francisco
/// font](https://developer.apple.com/ios/human-interface-guidelines/visual-design/typography/) /// font](https://developer.apple.com/design/human-interface-guidelines/typography/)
/// fonts as used by Apple on iOS. /// fonts as used by Apple on iOS.
/// ///
/// Two sets of geometry themes are provided: 2014 and 2018. The 2014 themes /// Two sets of geometry themes are provided: 2014 and 2018. The 2014 themes
......
...@@ -17,7 +17,7 @@ import 'framework.dart'; ...@@ -17,7 +17,7 @@ import 'framework.dart';
/// * [BottomNavigationBar] /// * [BottomNavigationBar]
/// * <https://material.io/design/components/bottom-navigation.html> /// * <https://material.io/design/components/bottom-navigation.html>
/// * [CupertinoTabBar] /// * [CupertinoTabBar]
/// * <https://developer.apple.com/ios/human-interface-guidelines/bars/tab-bars> /// * <https://developer.apple.com/design/human-interface-guidelines/tab-bars/>
class BottomNavigationBarItem { class BottomNavigationBarItem {
/// Creates an item that is used with [BottomNavigationBar.items]. /// Creates an item that is used with [BottomNavigationBar.items].
/// ///
......
...@@ -34,7 +34,7 @@ void main() { ...@@ -34,7 +34,7 @@ void main() {
expect(Typography.material2018(platform: TargetPlatform.windows).white.titleLarge!.fontFamily, 'Segoe UI'); expect(Typography.material2018(platform: TargetPlatform.windows).white.titleLarge!.fontFamily, 'Segoe UI');
}); });
// Ref: https://developer.apple.com/ios/human-interface-guidelines/visual-design/typography/ // Ref: https://developer.apple.com/design/human-interface-guidelines/typography/
final Matcher isSanFranciscoDisplayFont = predicate((TextStyle s) { final Matcher isSanFranciscoDisplayFont = predicate((TextStyle s) {
return s.fontFamily == 'CupertinoSystemDisplay'; return s.fontFamily == 'CupertinoSystemDisplay';
}, 'Uses SF Display font'); }, 'Uses SF Display font');
......
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