Skip to content

Commit

Permalink
[various] Update flutter.dev links to more reliable destinations (#6963)
Browse files Browse the repository at this point in the history
Contributes to flutter/website#10363 by updating to the latest links and updating some links to use new `/to/` links that can be updated as needed.
  • Loading branch information
parlough authored Jun 25, 2024
1 parent f80cab4 commit 71b2f68
Show file tree
Hide file tree
Showing 104 changed files with 114 additions and 148 deletions.
2 changes: 1 addition & 1 deletion .ci/legacy_project/all_packages/android/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ gradle-wrapper.jar
GeneratedPluginRegistrant.java

# Remember to never publicly share your keystore.
# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
# See https://flutter.dev/to/reference-keystore
key.properties
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ Issues pertaining to this repository are [labeled
## Contributing

If you wish to contribute a new package to the Flutter ecosystem, please
see the documentation for [developing packages](https://flutter.io/developing-packages/). You can store
see the documentation for [developing packages](https://flutter.dev/to/develop-packages). You can store
your package source code in any GitHub repository (the present repo is only
intended for packages developed by the core Flutter team). Once your package
is ready you can [publish](https://flutter.io/developing-packages/#publish)
is ready you can [publish](https://flutter.dev/to/develop-packages#publish)
to the [pub repository](https://pub.dev/).

If you wish to contribute a change to any of the existing packages in this repo,
Expand Down
4 changes: 1 addition & 3 deletions packages/camera/camera/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ A Flutter plugin for iOS, Android and Web allowing access to the device cameras.
* Record video.
* Add access to the image stream from Dart.

## Installation

First, add `camera` as a [dependency in your pubspec.yaml file](https://flutter.dev/using-packages/).
## Setup

### iOS

Expand Down
2 changes: 1 addition & 1 deletion packages/camera/camera_android/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ when recording a video with sound enabled and trying to play it back, the durati
you will only see the first frame.

[1]: https://pub.dev/packages/camera
[2]: https://flutter.dev/docs/development/packages-and-plugins/developing-packages#endorsed-federated-plugin
[2]: https://flutter.dev/to/endorsed-federated-plugin
[3]: https://pub.dev/packages/camera_android_camerax
[4]: https://developer.android.com/media/camera/camera2
[5]: https://developer.android.com/reference/android/media/MediaRecorder
2 changes: 1 addition & 1 deletion packages/camera/camera_android_camerax/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ For more information on contributing to this plugin, see [`CONTRIBUTING.md`](CON

[1]: https://pub.dev/packages/camera
[2]: https://developer.android.com/training/camerax
[3]: https://flutter.dev/docs/development/packages-and-plugins/developing-packages#endorsed-federated-plugin
[3]: https://flutter.dev/to/endorsed-federated-plugin
[4]: https://pub.dev/packages/camera_android
[5]: https://github.com/flutter/flutter/issues/new/choose
[6]: https://developer.android.com/media/camera/camerax/architecture#combine-use-cases
Expand Down
2 changes: 1 addition & 1 deletion packages/camera/camera_avfoundation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ However, if you `import` this package to use any of its APIs directly, you
should add it to your `pubspec.yaml` as usual.

[1]: https://pub.dev/packages/camera
[2]: https://flutter.dev/docs/development/packages-and-plugins/developing-packages#endorsed-federated-plugin
[2]: https://flutter.dev/to/endorsed-federated-plugin
2 changes: 1 addition & 1 deletion packages/camera/camera_web/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ The web implementation of [`camera`][camera].

### Depend on the package

This package is [endorsed](https://flutter.dev/docs/development/packages-and-plugins/developing-packages#endorsed-federated-plugin),
This package is [endorsed](https://flutter.dev/to/endorsed-federated-plugin),
which means you can simply use `camera`
normally. This package will be automatically included in your app when you do,
so you do not need to add it to your `pubspec.yaml`.
Expand Down
2 changes: 1 addition & 1 deletion packages/camera/camera_web/example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ This package uses `package:integration_test` to run its tests in a web browser.
See [Plugin Tests > Web Tests](https://github.com/flutter/flutter/blob/master/docs/ecosystem/testing/Plugin-Tests.md#web-tests)
in the Flutter documentation for instructions to set up and run the tests in this package.

Check [flutter.dev > Integration testing](https://flutter.dev/docs/testing/integration-tests)
Check [flutter.dev > Integration testing](https://docs.flutter.dev/testing/integration-tests)
for more info.
2 changes: 1 addition & 1 deletion packages/camera/camera_windows/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ disposing of the camera is the only way to reset the situation.
<!-- Links -->

[camera]: https://pub.dev/packages/camera
[endorsed-federated-plugin]: https://flutter.dev/docs/development/packages-and-plugins/developing-packages#endorsed-federated-plugin
[endorsed-federated-plugin]: https://flutter.dev/to/endorsed-federated-plugin
[install]: https://pub.dev/packages/camera_windows/install
[camera-control-issue]: https://github.com/flutter/flutter/issues/97537
[device-orientation-issue]: https://github.com/flutter/flutter/issues/97540
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ gradle-wrapper.jar
GeneratedPluginRegistrant.java

# Remember to never publicly share your keystore.
# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
# See https://flutter.dev/to/reference-keystore
key.properties
**/*.keystore
**/*.jks
4 changes: 1 addition & 3 deletions packages/file_selector/file_selector/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ A Flutter plugin that manages files and interactions with file dialogs.
|-------------|---------|---------|-------|--------|-----|-------------|
| **Support** | SDK 19+ | iOS 12+ | Any | 10.14+ | Any | Windows 10+ |

## Usage

To use this plugin, add `file_selector` as a [dependency in your pubspec.yaml file](https://flutter.dev/platform-plugins/).
## Setup

### macOS

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ gradle-wrapper.jar
GeneratedPluginRegistrant.java

# Remember to never publicly share your keystore.
# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
# See https://flutter.dev/to/reference-keystore
key.properties
**/*.keystore
**/*.jks
2 changes: 1 addition & 1 deletion packages/file_selector/file_selector_android/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ However, if you `import` this package to use any of its APIs directly, you
should add it to your `pubspec.yaml` as usual.

[1]: https://pub.dev/packages/file_selector
[2]: https://flutter.dev/docs/development/packages-and-plugins/developing-packages#endorsed-federated-plugin
[2]: https://flutter.dev/to/endorsed-federated-plugin
2 changes: 1 addition & 1 deletion packages/file_selector/file_selector_ios/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ However, if you `import` this package to use any of its APIs directly, you
should add it to your `pubspec.yaml` as usual.

[1]: https://pub.dev/packages/file_selector
[2]: https://flutter.dev/docs/development/packages-and-plugins/developing-packages#endorsed-federated-plugin
[2]: https://flutter.dev/to/endorsed-federated-plugin
2 changes: 1 addition & 1 deletion packages/file_selector/file_selector_linux/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ However, if you `import` this package to use any of its APIs directly, you
should add it to your `pubspec.yaml` as usual.

[1]: https://pub.dev/packages/file_selector
[2]: https://flutter.dev/docs/development/packages-and-plugins/developing-packages#endorsed-federated-plugin
[2]: https://flutter.dev/to/endorsed-federated-plugin
2 changes: 1 addition & 1 deletion packages/file_selector/file_selector_macos/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ or read/write access:
depending on your use case.

[1]: https://pub.dev/packages/file_selector
[2]: https://flutter.dev/docs/development/packages-and-plugins/developing-packages#endorsed-federated-plugin
[2]: https://flutter.dev/to/endorsed-federated-plugin
[3]: https://flutter.dev/desktop#entitlements-and-the-app-sandbox
2 changes: 1 addition & 1 deletion packages/file_selector/file_selector_web/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ However, if you `import` this package to use any of its APIs directly, you
should add it to your `pubspec.yaml` as usual.

[1]: https://pub.dev/packages/file_selector
[2]: https://flutter.dev/docs/development/packages-and-plugins/developing-packages#endorsed-federated-plugin
[2]: https://flutter.dev/to/endorsed-federated-plugin

## Limitations on the Web platform

Expand Down
2 changes: 1 addition & 1 deletion packages/file_selector/file_selector_web/example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ This package uses `package:integration_test` to run its tests in a web browser.
See [Plugin Tests > Web Tests](https://github.com/flutter/flutter/blob/master/docs/ecosystem/testing/Plugin-Tests.md#web-tests)
in the Flutter documentation for instructions to set up and run the tests in this package.

Check [flutter.dev > Integration testing](https://flutter.dev/docs/testing/integration-tests)
Check [flutter.dev > Integration testing](https://docs.flutter.dev/testing/integration-tests)
for more info.
2 changes: 1 addition & 1 deletion packages/file_selector/file_selector_windows/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ However, if you `import` this package to use any of its APIs directly, you
should add it to your `pubspec.yaml` as usual.

[1]: https://pub.dev/packages/file_selector
[2]: https://flutter.dev/docs/development/packages-and-plugins/developing-packages#endorsed-federated-plugin
[2]: https://flutter.dev/to/endorsed-federated-plugin
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ gradle-wrapper.jar
GeneratedPluginRegistrant.java

# Remember to never publicly share your keystore.
# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
# See https://flutter.dev/to/reference-keystore
key.properties
**/*.keystore
**/*.jks
2 changes: 1 addition & 1 deletion packages/flutter_image/example/android/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ gradle-wrapper.jar
GeneratedPluginRegistrant.java

# Remember to never publicly share your keystore.
# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
# See https://flutter.dev/to/reference-keystore
key.properties
**/*.keystore
**/*.jks
2 changes: 1 addition & 1 deletion packages/flutter_markdown/example/android/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ gradle-wrapper.jar
GeneratedPluginRegistrant.java

# Remember to never publicly share your keystore.
# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
# See https://flutter.dev/to/reference-keystore
key.properties
6 changes: 3 additions & 3 deletions packages/flutter_migrate/test/migrate_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -382,10 +382,10 @@ flutter:
- images/a_dot_ham.jpeg
# An image asset can refer to one or more resolution-specific "variants", see
# https://flutter.dev/assets-and-images/#resolution-aware.
# https://flutter.dev/to/resolution-aware-images.
# For details regarding adding assets from package dependencies, see
# https://flutter.dev/assets-and-images/#from-packages
# https://flutter.dev/to/asset-from-package
# To add custom fonts to your application, add a fonts section here,
# in this "flutter" section. Each entry in this list should have a
Expand All @@ -405,7 +405,7 @@ flutter:
# weight: 700
#
# For details regarding fonts from package dependencies,
# see https://flutter.dev/custom-fonts/#from-packages
# see https://flutter.dev/to/font-from-package
''', flush: true);

Expand Down
6 changes: 3 additions & 3 deletions packages/flutter_migrate/test/test_data/migrate_project.dart
Original file line number Diff line number Diff line change
Expand Up @@ -278,10 +278,10 @@ flutter:
- images/a_dot_ham.jpeg
# An image asset can refer to one or more resolution-specific "variants", see
# https://flutter.dev/assets-and-images/#resolution-aware.
# https://flutter.dev/to/resolution-aware-images.
# For details regarding adding assets from package dependencies, see
# https://flutter.dev/assets-and-images/#from-packages
# https://flutter.dev/to/asset-from-package
# To add custom fonts to your application, add a fonts section here,
# in this "flutter" section. Each entry in this list should have a
Expand All @@ -301,7 +301,7 @@ flutter:
# weight: 700
#
# For details regarding fonts from package dependencies,
# see https://flutter.dev/custom-fonts/#from-packages
# see https://flutter.dev/to/font-from-package
''';
}
4 changes: 0 additions & 4 deletions packages/flutter_plugin_android_lifecycle/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ major version of the Android `Lifecycle` API they expect.
|-------------|---------|
| **Support** | SDK 16+ |

## Installation

Add `flutter_plugin_android_lifecycle` as a [dependency in your pubspec.yaml file](https://flutter.dev/using-packages/).

## Example

Use a `FlutterLifecycleAdapter` within another Flutter plugin's Android implementation, as shown
Expand Down
2 changes: 1 addition & 1 deletion packages/go_router/example/android/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ gradle-wrapper.jar
GeneratedPluginRegistrant.java

# Remember to never publicly share your keystore.
# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
# See https://flutter.dev/to/reference-keystore
key.properties
**/*.keystore
**/*.jks
2 changes: 1 addition & 1 deletion packages/go_router/lib/fix_data.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# found in the LICENSE file.

# For details regarding the *Flutter Fix* feature, see
# https://flutter.dev/docs/development/tools/flutter-fix
# https://flutter.dev/to/flutter-fix

# Please add new fixes to the top of the file, separated by one blank line
# from other fixes. In a comment, include a link to the PR where the change
Expand Down
6 changes: 1 addition & 5 deletions packages/google_maps_flutter/google_maps_flutter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@ A Flutter plugin that provides a [Google Maps](https://developers.google.com/map

[web-support]: https://docs.flutter.dev/reference/supported-platforms

## Usage

To use this plugin, add `google_maps_flutter` as a [dependency in your pubspec.yaml file](https://flutter.dev/docs/development/platform-integration/platform-channels).

## Getting Started

* Get an API key at <https://cloud.google.com/maps-platform/>.
Expand Down Expand Up @@ -58,7 +54,7 @@ This means that app will only be available for users that run Android SDK 20 or
#### Display Mode

The Android implementation supports multiple
[platform view display modes](https://flutter.dev/docs/development/platform-integration/platform-views).
[platform view display modes](https://docs.flutter.dev/platform-integration/android/platform-views).
For details, see [the Android README](https://pub.dev/packages/google_maps_flutter_android#display-mode).

#### Cloud-based map styling
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class AndroidGoogleMapsFlutter {
/// This implementation uses hybrid composition to render the Google Maps
/// Widget on Android. This comes at the cost of some performance on Android
/// versions below 10. See
/// https://flutter.dev/docs/development/platform-integration/platform-views#performance for more
/// https://docs.flutter.dev/platform-integration/android/platform-views#performance for more
/// information.
@Deprecated(
'See https://pub.dev/packages/google_maps_flutter_android#display-mode')
Expand All @@ -70,7 +70,7 @@ class AndroidGoogleMapsFlutter {
/// This implementation uses hybrid composition to render the Google Maps
/// Widget on Android. This comes at the cost of some performance on Android
/// versions below 10. See
/// https://flutter.dev/docs/development/platform-integration/platform-views#performance for more
/// https://docs.flutter.dev/platform-integration/android/platform-views#performance for more
/// information.
@Deprecated(
'See https://pub.dev/packages/google_maps_flutter_android#display-mode')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ WARNING: `AndroidMapRenderer.legacy` is known to crash apps and is no longer sup
and therefore cannot be supported by the Flutter team.

[1]: https://pub.dev/packages/google_maps_flutter
[2]: https://flutter.dev/docs/development/packages-and-plugins/developing-packages#endorsed-federated-plugin
[2]: https://flutter.dev/to/endorsed-federated-plugin
[3]: https://docs.flutter.dev/development/platform-integration/android/platform-views
[4]: https://github.com/flutter/flutter/issues/103686
[5]: https://developers.google.com/maps/documentation/android-sdk/renderer
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ However, if you `import` this package to use any of its APIs directly, you
should add it to your `pubspec.yaml` as usual.

[1]: https://pub.dev/packages/google_maps_flutter
[2]: https://flutter.dev/docs/development/packages-and-plugins/developing-packages#endorsed-federated-plugin
[2]: https://flutter.dev/to/endorsed-federated-plugin
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ class MethodChannelGoogleMapsFlutter extends GoogleMapsFlutterPlatform {
/// This implementation uses hybrid composition to render the Google Maps
/// Widget on Android. This comes at the cost of some performance on Android
/// versions below 10. See
/// https://flutter.dev/docs/development/platform-integration/platform-views#performance for more
/// https://docs.flutter.dev/platform-integration/android/platform-views#performance for more
/// information.
///
/// If set to true, the google map widget should be built with
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ class BitmapDescriptor {
/// Creates a [BitmapDescriptor] from an asset image.
///
/// Asset images in flutter are stored per:
/// https://flutter.dev/docs/development/ui/assets-and-images#declaring-resolution-aware-image-assets
/// https://flutter.dev/to/resolution-aware-images
/// This method takes into consideration various asset resolutions
/// and scales the images to the right resolution depending on the dpi.
/// Set `mipmaps` to false to load the exact dpi version of the image,
Expand Down Expand Up @@ -392,7 +392,7 @@ abstract class MapBitmap extends BitmapDescriptor {
/// instances of this class. It dynamically resolves the correct asset version
/// based on the device's pixel ratio, ensuring optimal resolution without
/// manual configuration.
/// See https://docs.flutter.dev/ui/assets/assets-and-images#resolution-aware
/// See https://flutter.dev/to/resolution-aware-images
/// for more information on resolution-aware assets.
///
/// Note that it's important to either provide high-resolution
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Powered by [a14n](https://github.com/a14n)'s [google_maps](https://pub.dev/packa

## Usage

This package is [endorsed](https://flutter.dev/docs/development/packages-and-plugins/developing-packages#endorsed-federated-plugin),
This package is [endorsed](https://flutter.dev/to/endorsed-federated-plugin),
which means you can simply use `google_maps_flutter` normally. This package will
be automatically included in your app when you do, so you do not need to add it
to your `pubspec.yaml`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ This package uses `package:integration_test` to run its tests in a web browser.
See [Plugin Tests > Web Tests](https://github.com/flutter/flutter/blob/master/docs/ecosystem/testing/Plugin-Tests.md#web-tests)
in the Flutter documentation for instructions to set up and run the tests in this package.

Check [flutter.dev > Integration testing](https://flutter.dev/docs/testing/integration-tests)
Check [flutter.dev > Integration testing](https://docs.flutter.dev/testing/integration-tests)
for more info.
2 changes: 1 addition & 1 deletion packages/google_sign_in/google_sign_in_android/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ However, if you `import` this package to use any of its APIs directly, you
should add it to your `pubspec.yaml` as usual.

[1]: https://pub.dev/packages/google_sign_in
[2]: https://flutter.dev/docs/development/packages-and-plugins/developing-packages#endorsed-federated-plugin
[2]: https://flutter.dev/to/endorsed-federated-plugin
4 changes: 2 additions & 2 deletions packages/google_sign_in/google_sign_in_ios/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ should add it to your `pubspec.yaml` as usual.
### macOS setup

The GoogleSignIn SDK requires keychain sharing to be enabled, by [adding the
following entitlements](https://docs.flutter.dev/platform-integration/macos/building#entitlements-and-the-app-sandbox):
following entitlements](https://flutter.dev/to/macos-entitlements):

```xml
<key>keychain-access-groups</key>
Expand All @@ -27,7 +27,7 @@ Without this step, the plugin will throw a `keychain error` `PlatformException`
when trying to sign in.

[1]: https://pub.dev/packages/google_sign_in
[2]: https://flutter.dev/docs/development/packages-and-plugins/developing-packages#endorsed-federated-plugin
[2]: https://flutter.dev/to/endorsed-federated-plugin

### iOS integration

Expand Down
2 changes: 1 addition & 1 deletion packages/google_sign_in/google_sign_in_web/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ The GIS SDK limits authorization token duration to one hour (3600 seconds).

### Import the package

This package is [endorsed](https://flutter.dev/docs/development/packages-and-plugins/developing-packages#endorsed-federated-plugin),
This package is [endorsed](https://flutter.dev/to/endorsed-federated-plugin),
which means you can simply use `google_sign_in`
normally. This package will be automatically included in your app when you do,
so you do not need to add it to your `pubspec.yaml`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ This package uses `package:integration_test` to run its tests in a web browser.
See [Plugin Tests > Web Tests](https://github.com/flutter/flutter/blob/master/docs/ecosystem/testing/Plugin-Tests.md#web-tests)
in the Flutter documentation for instructions to set up and run the tests in this package.

Check [flutter.dev > Integration testing](https://flutter.dev/docs/testing/integration-tests)
Check [flutter.dev > Integration testing](https://docs.flutter.dev/testing/integration-tests)
for more info.

# button_tester.dart
Expand Down
Loading

0 comments on commit 71b2f68

Please sign in to comment.