mirror of
https://github.com/flutter/flutter
synced 2024-10-05 15:59:49 +00:00
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:
parent
c00064886c
commit
cab4a0fb88
|
@ -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({
|
||||
|
|
|
@ -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({
|
||||
|
|
|
@ -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({
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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.
|
||||
///
|
||||
|
|
|
@ -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.
|
||||
///
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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].
|
||||
///
|
||||
|
|
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue