Replace pull_request_target workflows with pull_request + workflow_run (#195536) This resolves https://github.com/flutter/flutter/issues/193185. GitHub is restricting `pull_request_target`, which runs with secrets and a write token on events from forks. Each affected workflow is split in two: * An unprivileged `pull_request` workflow with a read-only token and no secrets. Cheap gates (label name, base branch, bot author) are job-level `if:`s so non-matching events never allocate a runner. When it applies, it uploads a small artifact with context about the triggering event (PR number, and the cp channel). * A privileged `workflow_run` workflow that runs from the default branch with access to secrets. It downloads the artifact and does the actual work: commenting, labeling, reverting, cherry-picking, deleting branches. A PR can modify the `pull_request` workflow, so the artifact is untrusted. The privileged side ties the PR number to the triggering run's head SHA and repo. It then reads all other state from the GitHub API, including re-checking any gate whose failure would have made the trigger skip. Checks that end in a comment either way are done only on the privileged side. | Unprivileged (pull_request) | Privileged (workflow_run) | |---------------------------------|---------------------------| | revert-trigger.yml | revert.yml | | cp-trigger.yml | easy-cp.yml | | labeler-trigger.yml | labeler.yml | | delete-bot-branches-trigger.yml | delete-bot-branches.yml | | freeze.yml | freeze-comment.yml | | no-main-prs.yaml | no-main-prs-comment.yaml | freeze.yml and no-main-prs.yaml keep their names because they still provide the PR check. no-main-prs.yaml now gates on `base_ref == 'main'` at the job level, so it no longer uses a runner on every PR.
Flutter is Google's SDK for crafting beautiful, fast user experiences for mobile, web, and desktop from a single codebase. Flutter works with existing code, is used by developers and organizations around the world, and is free and open source.
For release and other announcements, join the flutter-announce mailing list. Our documentation also tracks breaking changes across releases.
The Flutter tool may occasionally download resources from Google servers. By downloading or using the Flutter SDK, you agree to the Google Terms of Service: https://policies.google.com/terms
For example, when installed from GitHub (as opposed to from a prepackaged archive), the Flutter tool will download the Dart SDK from Google servers immediately when first run, as it is used to execute the flutter tool itself. This will also occur when Flutter is upgraded (e.g. by running the flutter upgrade command).
We think Flutter will help you create beautiful, fast apps, with a productive, extensible and open development model, whether you're targeting iOS or Android, web, Windows, macOS, Linux or embedding it as the UI toolkit for a platform of your choice.
We want to enable designers to deliver their full creative vision without being forced to water it down due to limitations of the underlying framework. Flutter‘s layered architecture gives you control over every pixel on the screen and its powerful compositing capabilities let you overlay and animate graphics, video, text, and controls without limitation. Flutter includes a full set of widgets that deliver pixel-perfect experiences whether you’re building for iOS (Cupertino) or other platforms (Material), along with support for customizing or creating entirely new visual components.
Flutter is fast. It's powered by hardware-accelerated 2D graphics libraries like Skia (which underpins Chrome and Android) and Impeller. We architected Flutter to support glitch-free, jank-free graphics at the native speed of your device.
Flutter code is powered by the world-class Dart programming language, which enables compilation to 32-bit and 64-bit ARM machine code for iOS and Android, JavaScript and WebAssembly for the web, as well as Intel x64 and ARM for desktop devices.
Flutter offers stateful hot reload, allowing you to make changes to your code and see the results instantly without restarting your app or losing its state.
Flutter works with any development tool (or none at all), and also includes editor plug-ins for both Visual Studio Code and IntelliJ / Android Studio. Flutter provides tens of thousands of packages to speed your development, regardless of your target platform. And accessing other native code is easy, with support for both FFI (on Android, on iOS, on macOS, on Linux, and on Windows) as well as platform-specific APIs.
Flutter is a fully open-source project, and we welcome contributions. Information on how to get started can be found in our contributor guide.