| # Copyright 2014 The Flutter Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| # For details regarding the *Flutter Fix* feature, see |
| # 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 |
| # requiring the fix was made. |
| |
| # For documentation about this file format, see |
| # https://dart.dev/go/data-driven-fixes. |
| |
| # * Fixes in this file are from the 'dart:ui' library. * |
| # When updating this file, also update |
| # packages/flutter/lib/fix_data/fix_dart_ui.yaml. |
| version: 1 |
| transforms: |
| - title: "Rename from 'opacity' to 'a'" |
| date: 2024-09-10 |
| element: |
| uris: [ 'dart:ui' ] |
| method: 'opacity' |
| inClass: 'Color' |
| changes: |
| - kind: 'rename' |
| newName: 'a' |
| |
| - title: "Replace 'value' with 'toARGB32()'" |
| date: 2025-02-03 |
| element: |
| uris: [ 'dart:ui' ] |
| method: 'value' |
| inClass: 'Color' |
| changes: |
| - kind: 'replacedBy' |
| newElement: |
| uris: [ 'dart:ui' ] |
| method: 'toARGB32' |
| inClass: 'Color' |
| |
| - title: "Rename 'withOpacity'" |
| date: 2024-09-10 |
| element: |
| uris: [ 'dart:ui' ] |
| method: 'withOpacity' |
| inClass: 'Color' |
| changes: |
| - kind: 'rename' |
| newName: 'withValues' |
| - kind: 'removeParameter' |
| index: 0 |
| - kind: 'addParameter' |
| index: 0 |
| name: 'alpha' |
| style: optional_named |
| argumentValue: |
| expression: '{% opacity %}' |
| requiredIf: "opacity != ''" |
| variables: |
| opacity: |
| kind: 'fragment' |
| value: 'arguments[0]' |
| # Before adding a new fix: read instructions at the top of this file. |