Replace dead links (#144827)

I have found that some Apple-related links are no longer accessible, and they have been replaced
This commit is contained in:
Percival 2024-03-09 09:08:06 +08:00 committed by GitHub
parent c00064886c
commit cab4a0fb88
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 10 additions and 10 deletions

View file

@ -28,7 +28,7 @@ const Color _kActiveTickColor = CupertinoDynamicColor.withBrightness(
///
/// 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 {
/// Creates an iOS-style activity indicator that spins clockwise.
const CupertinoActivityIndicator({

View file

@ -35,7 +35,7 @@ const EdgeInsets _kBackgroundButtonPadding = EdgeInsets.symmetric(
///
/// 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 {
/// Creates an iOS-style button.
const CupertinoButton({

View file

@ -188,7 +188,7 @@ bool _isInAccessibilityMode(BuildContext context) {
/// holds arbitrary content to create custom popups.
/// * [CupertinoDialogAction], which is an iOS-style dialog button.
/// * [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 {
/// Creates an iOS-style alert dialog.
const CupertinoAlertDialog({
@ -400,7 +400,7 @@ class _CupertinoAlertDialogState extends State<CupertinoAlertDialog> {
///
/// * [CupertinoAlertDialog], which is a dialog with a title, content, and
/// actions.
/// * <https://developer.apple.com/ios/human-interface-guidelines/views/alerts/>
/// * <https://developer.apple.com/design/human-interface-guidelines/alerts/>
class CupertinoPopupSurface extends StatelessWidget {
/// Creates an iOS-style rounded rectangle popup surface.
const CupertinoPopupSurface({

View file

@ -1288,7 +1288,7 @@ Widget _buildCupertinoDialogTransitions(BuildContext context, Animation<double>
/// * [showGeneralDialog], which allows for customization of the dialog popup.
/// * [DisplayFeatureSubScreen], which documents the specifics of how
/// [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>({
required BuildContext context,
required WidgetBuilder builder,

View file

@ -45,7 +45,7 @@ import 'thumb_painter.dart';
///
/// 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 {
/// Creates an iOS-style slider.
///

View file

@ -60,7 +60,7 @@ import 'thumb_painter.dart';
/// See also:
///
/// * [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 {
/// Creates an iOS-style switch.
///

View file

@ -60,7 +60,7 @@ enum ScriptCategory {
/// [blackCupertino], and [whiteCupertino]. The Mountain View theme [TextStyle]s
/// are based on the Roboto fonts as used on Android. The Cupertino themes are
/// 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.
///
/// Two sets of geometry themes are provided: 2014 and 2018. The 2014 themes

View file

@ -17,7 +17,7 @@ import 'framework.dart';
/// * [BottomNavigationBar]
/// * <https://material.io/design/components/bottom-navigation.html>
/// * [CupertinoTabBar]
/// * <https://developer.apple.com/ios/human-interface-guidelines/bars/tab-bars>
/// * <https://developer.apple.com/design/human-interface-guidelines/tab-bars/>
class BottomNavigationBarItem {
/// Creates an item that is used with [BottomNavigationBar.items].
///

View file

@ -34,7 +34,7 @@ void main() {
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) {
return s.fontFamily == 'CupertinoSystemDisplay';
}, 'Uses SF Display font');