| # 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. |
| |
| # Every fix must be tested. See the flutter/packages/flutter/test_fixes/README.md |
| # file for instructions on testing these data driven fixes. |
| |
| # For documentation about this file format, see |
| # https://dart.dev/go/data-driven-fixes. |
| |
| # * Fixes in this file are for classes exported from the 'dart:ui' library. * |
| # This file mirrors the Flutter Engine's 'dart:ui' fixes found at |
| # engine/src/flutter/lib/ui/fix_dart_ui.yaml. The Engine's file is the source |
| # of truth. Its fixes are duplicated here to ensure they apply to 'dart:ui' |
| # classes re-exported by 'package:flutter' libraries. |
| |
| # Uncomment version & transforms, and follow with fixes. |
| version: 1 |
| transforms: |
| - title: "Rename from 'opacity' to 'a'" |
| date: 2024-09-10 |
| element: |
| uris: [ |
| 'animation.dart', |
| 'cupertino.dart', |
| 'material.dart', |
| 'painting.dart', |
| 'rendering.dart', |
| 'services.dart', |
| 'widgets.dart', |
| ] |
| method: 'opacity' |
| inClass: 'Color' |
| changes: |
| - kind: 'rename' |
| newName: 'a' |
| |
| - title: "Replace 'value' with 'toARGB32()'" |
| date: 2025-02-03 |
| element: |
| uris: [ |
| 'animation.dart', |
| 'cupertino.dart', |
| 'material.dart', |
| 'painting.dart', |
| 'rendering.dart', |
| 'services.dart', |
| 'widgets.dart', |
| ] |
| method: 'value' |
| inClass: 'Color' |
| changes: |
| - kind: 'replacedBy' |
| newElement: |
| uris: [ |
| 'animation.dart', |
| 'cupertino.dart', |
| 'material.dart', |
| 'painting.dart', |
| 'rendering.dart', |
| 'services.dart', |
| 'widgets.dart', |
| ] |
| method: 'toARGB32' |
| inClass: 'Color' |
| |
| - title: "Rename 'withOpacity'" |
| date: 2024-09-10 |
| element: |
| uris: [ |
| 'animation.dart', |
| 'cupertino.dart', |
| 'material.dart', |
| 'painting.dart', |
| 'rendering.dart', |
| 'services.dart', |
| 'widgets.dart', |
| ] |
| 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. |