1. 22 Jan, 2024 1 commit
    • Tess Strickland's avatar
      Mark defaultTargetPlatform as constant for non-debug non-web builds. (#141105) · 7ca4b7b8
      Tess Strickland authored
      This PR adds the Dart VM `vm:platform-const-if` pragma introduced in
      https://github.com/dart-lang/sdk/commit/57a1168875 to the
      `defaultTargetPlatform` property, allowing it to be computed as if it
      was a constant field in non-debug AOT builds. In particular, this means
      that platform-specific code executed conditionally based on this
      property can be tree-shaken in release builds. Note that this PR changes
      `defaultTargetPlatform` to only allow overriding via
      `debugDefaultTargetPlatformOverride` in debug builds, and makes it so
      that compilation throws an error if code assigns
      to`debugDefaultTargetPlatformOverride` in other build modes.
      
      Related issue: #14233
      
      ## Pre-launch Checklist
      
      - [X] I read the [Contributor Guide] and followed the process outlined
      there for submitting PRs.
      - [X] I read the [Tree Hygiene] wiki page, which explains my
      responsibilities.
      - [X] I read and followed the [Flutter Style Guide], including [Features
      we expect every widget to implement].
      - [X] I signed the [CLA].
      - [X] I listed at least one issue that this PR fixes in the description
      above.
      - [X] I updated/added relevant documentation (doc comments with `///`).
      - [X] I added new tests to check the change I am making, or this PR is
      [test-exempt].
      - [X] All existing and new tests are passing.
      7ca4b7b8
  2. 24 Jun, 2022 1 commit
  3. 25 May, 2022 1 commit
    • Pierre-Louis's avatar
      Use `curly_braces_in_flow_control_structures` for `foundation`, `gestures`,... · 9cc72df7
      Pierre-Louis authored
      Use `curly_braces_in_flow_control_structures` for `foundation`, `gestures`, `painting`, `physics` (#104610)
      
      * Use `curly_braces_in_flow_control_structures` for `foundation`
      
      * Use `curly_braces_in_flow_control_structures` for `gestures`
      
      * Use `curly_braces_in_flow_control_structures` for `painting`
      
      * Use `curly_braces_in_flow_control_structures` for `physics`
      
      * fix comments
      
      * remove trailing space
      
      * fix TODO style
      9cc72df7
  4. 30 Mar, 2021 1 commit
  5. 15 Jul, 2020 1 commit
  6. 11 Jun, 2020 1 commit
  7. 03 Mar, 2020 1 commit
  8. 27 Nov, 2019 2 commits
    • Ian Hickson's avatar
      License update (#45373) · 449f4a66
      Ian Hickson authored
      * Update project.pbxproj files to say Flutter rather than Chromium
      
      Also, the templates now have an empty organization so that we don't cause people to give their apps a Flutter copyright.
      
      * Update the copyright notice checker to require a standard notice on all files
      
      * Update copyrights on Dart files. (This was a mechanical commit.)
      
      * Fix weird license headers on Dart files that deviate from our conventions; relicense Shrine.
      
      Some were already marked "The Flutter Authors", not clear why. Their
      dates have been normalized. Some were missing the blank line after the
      license. Some were randomly different in trivial ways for no apparent
      reason (e.g. missing the trailing period).
      
      * Clean up the copyrights in non-Dart files. (Manual edits.)
      
      Also, make sure templates don't have copyrights.
      
      * Fix some more ORGANIZATIONNAMEs
      449f4a66
    • Greg Spencer's avatar
      Add macOS to TargetPlatform (#43457) · 245d1b51
      Greg Spencer authored
      This PR adds TargetPlatform.macOS to the TargetPlatform enum. This allows us to begin implementation of some adaptive UI based on which target platform is desired.
      
      I haven't updated the tests here, that will come in a follow-up PR.
      245d1b51
  9. 04 Jun, 2019 2 commits
  10. 03 Jun, 2019 1 commit