Refactor fix_data.yaml (#114192)
* Refactor fix_data.yaml * ++ * lib, not lib/src * Nit * Nit * Update packages/flutter/test_fixes/material/app_bar_theme.dart Co-authored-by: Alexander Dahlberg <dustbin4ever@gmail.com> * Fix copy paste errors Co-authored-by: Alexander Dahlberg <dustbin4ever@gmail.com>
This commit is contained in:
43
packages/flutter/lib/fix_data/README.md
Normal file
43
packages/flutter/lib/fix_data/README.md
Normal file
@@ -0,0 +1,43 @@
|
||||
## Directory contents
|
||||
|
||||
The `.yaml` files in these directories are used to
|
||||
define the [`dart fix` framework](https://dart.dev/tools/dart-fix) refactorings
|
||||
used by the Flutter framework.
|
||||
|
||||
The number of fix rules defined in a file should not exceed 50 for better
|
||||
maintainability. Searching for `title:` is a given `.yaml` file will account
|
||||
for the number of fixes. Splitting out fix rules should be done by class.
|
||||
|
||||
When adding a new `.yaml` file, make a copy of `fix_template.yaml`. If the new
|
||||
file is not for generic library fixes (`fix_material.yaml`), ensure it is
|
||||
enclosed in an appropriate library directory (`fix_data/fix_material`), and
|
||||
named after the class. Fix files outside of generic libraries should represent
|
||||
individual classes (`fix_data/fix_material/fix_app_bar.yaml`).
|
||||
|
||||
See the flutter/packages/flutter/test_fixes directory for the tests that
|
||||
validate these fix rules.
|
||||
|
||||
To run these tests locally, execute this command in the
|
||||
flutter/packages/flutter/test_fixes directory.
|
||||
```sh
|
||||
dart fix --compare-to-golden
|
||||
```
|
||||
|
||||
For more documentation about Data Driven Fixes, see
|
||||
https://dart.dev/go/data-driven-fixes#test-folder.
|
||||
|
||||
To learn more about how fixes are authored in package:flutter, see
|
||||
https://github.com/flutter/flutter/wiki/Data-driven-Fixes
|
||||
|
||||
## When making structural changes to this directory
|
||||
|
||||
Note that the tests in this directory are also invoked from external
|
||||
repositories. Specifically, the CI system for the dart-lang/sdk repo runs these
|
||||
tests in order to ensure that changes to the dart fix file format do not break
|
||||
Flutter.
|
||||
|
||||
See [tools/bots/flutter/analyze_flutter_flutter.sh](https://github.com/dart-lang/sdk/blob/main/tools/bots/flutter/analyze_flutter_flutter.sh)
|
||||
for where the tests are invoked.
|
||||
|
||||
When possible, please coordinate changes to this directory that might affect the
|
||||
`analyze_flutter_flutter.sh` script.
|
||||
298
packages/flutter/lib/fix_data/fix_cupertino.yaml
Normal file
298
packages/flutter/lib/fix_data/fix_cupertino.yaml
Normal file
@@ -0,0 +1,298 @@
|
||||
# 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/docs/development/tools/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 from the Cupertino library. *
|
||||
version: 1
|
||||
transforms:
|
||||
# Change made in https://github.com/flutter/flutter/pull/20649
|
||||
# TODO(Piinks): Add tests when `bulkApply:false` testing is supported, https://github.com/dart-lang/sdk/issues/44639
|
||||
- title: "Replace with 'CupertinoPopupSurface'"
|
||||
date: 2021-01-07
|
||||
bulkApply: false
|
||||
element:
|
||||
uris: [ 'cupertino.dart' ]
|
||||
class: 'CupertinoDialog'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'CupertinoPopupSurface'
|
||||
|
||||
# Change made in https://github.com/flutter/flutter/pull/20649
|
||||
# TODO(Piinks): Add tests when `bulkApply:false` testing is supported, https://github.com/dart-lang/sdk/issues/44639
|
||||
- title: "Replace with 'CupertinoAlertDialog'"
|
||||
date: 2021-01-07
|
||||
bulkApply: false
|
||||
element:
|
||||
uris: [ 'cupertino.dart' ]
|
||||
class: 'CupertinoDialog'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'CupertinoAlertDialog'
|
||||
- kind: 'renameParameter'
|
||||
oldName: 'child'
|
||||
newName: 'content'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/68905.
|
||||
- title: "Migrate from 'nullOk'"
|
||||
date: 2021-01-27
|
||||
element:
|
||||
uris: [ 'cupertino.dart' ]
|
||||
method: 'resolveFrom'
|
||||
inClass: 'CupertinoTextThemeData'
|
||||
changes:
|
||||
- kind: 'removeParameter'
|
||||
name: 'nullOk'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/68905.
|
||||
- title: "Migrate from 'nullOk'"
|
||||
date: 2021-01-27
|
||||
element:
|
||||
uris: [ 'cupertino.dart' ]
|
||||
method: 'resolveFrom'
|
||||
inClass: 'NoDefaultCupertinoThemeData'
|
||||
changes:
|
||||
- kind: 'removeParameter'
|
||||
name: 'nullOk'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/68905.
|
||||
- title: "Migrate from 'nullOk'"
|
||||
date: 2021-01-27
|
||||
element:
|
||||
uris: [ 'cupertino.dart' ]
|
||||
method: 'resolveFrom'
|
||||
inClass: 'CupertinoThemeData'
|
||||
changes:
|
||||
- kind: 'removeParameter'
|
||||
name: 'nullOk'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/68736.
|
||||
- title: "Migrate from 'nullOk'"
|
||||
date: 2021-01-27
|
||||
element:
|
||||
uris: [ 'cupertino.dart' ]
|
||||
method: 'brightnessOf'
|
||||
inClass: 'CupertinoTheme'
|
||||
oneOf:
|
||||
- if: "nullOk == 'true'"
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'maybeBrightnessOf'
|
||||
- kind: 'removeParameter'
|
||||
name: 'nullOk'
|
||||
- if: "nullOk == 'false'"
|
||||
changes:
|
||||
- kind: 'removeParameter'
|
||||
name: 'nullOk'
|
||||
variables:
|
||||
nullOk:
|
||||
kind: 'fragment'
|
||||
value: 'arguments[nullOk]'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/68905.
|
||||
- title: "Migrate from 'nullOk'"
|
||||
date: 2021-01-27
|
||||
element:
|
||||
uris: [ 'cupertino.dart' ]
|
||||
method: 'of'
|
||||
inClass: 'CupertinoUserInterfaceLevel'
|
||||
oneOf:
|
||||
- if: "nullOk == 'true'"
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'maybeOf'
|
||||
- kind: 'removeParameter'
|
||||
name: 'nullOk'
|
||||
- if: "nullOk == 'false'"
|
||||
changes:
|
||||
- kind: 'removeParameter'
|
||||
name: 'nullOk'
|
||||
variables:
|
||||
nullOk:
|
||||
kind: 'fragment'
|
||||
value: 'arguments[nullOk]'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/68905.
|
||||
- title: "Migrate from 'nullOk'"
|
||||
date: 2021-01-27
|
||||
element:
|
||||
uris: [ 'cupertino.dart' ]
|
||||
method: 'resolveFrom'
|
||||
inClass: 'CupertinoDynamicColor'
|
||||
changes:
|
||||
- kind: 'removeParameter'
|
||||
name: 'nullOk'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/68905.
|
||||
- title: "Migrate from 'nullOk'"
|
||||
date: 2021-01-27
|
||||
element:
|
||||
uris: [ 'cupertino.dart' ]
|
||||
method: 'resolve'
|
||||
inClass: 'CupertinoDynamicColor'
|
||||
oneOf:
|
||||
- if: "nullOk == 'true'"
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'maybeResolve'
|
||||
- kind: 'removeParameter'
|
||||
name: 'nullOk'
|
||||
- if: "nullOk == 'false'"
|
||||
changes:
|
||||
- kind: 'removeParameter'
|
||||
name: 'nullOk'
|
||||
variables:
|
||||
nullOk:
|
||||
kind: 'fragment'
|
||||
value: 'arguments[nullOk]'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/72043
|
||||
- title: "Migrate to 'maxLengthEnforcement'"
|
||||
date: 2020-12-13
|
||||
element:
|
||||
uris: [ 'cupertino.dart' ]
|
||||
field: 'maxLengthEnforced'
|
||||
inClass: 'CupertinoTextField'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'maxLengthEnforcement'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/72043
|
||||
- title: "Migrate to 'maxLengthEnforcement'"
|
||||
date: 2020-12-13
|
||||
element:
|
||||
uris: [ 'cupertino.dart' ]
|
||||
constructor: 'borderless'
|
||||
inClass: 'CupertinoTextField'
|
||||
oneOf:
|
||||
- if: "maxLengthEnforced == 'true'"
|
||||
changes:
|
||||
- kind: 'addParameter'
|
||||
index: 0
|
||||
name: 'maxLengthEnforcement'
|
||||
style: optional_named
|
||||
argumentValue:
|
||||
expression: 'MaxLengthEnforcement.enforce'
|
||||
requiredIf: "maxLengthEnforced == 'true'"
|
||||
- kind: 'removeParameter'
|
||||
name: 'maxLengthEnforced'
|
||||
- if: "maxLengthEnforced == 'false'"
|
||||
changes:
|
||||
- kind: 'addParameter'
|
||||
index: 0
|
||||
name: 'maxLengthEnforcement'
|
||||
style: optional_named
|
||||
argumentValue:
|
||||
expression: 'MaxLengthEnforcement.none'
|
||||
requiredIf: "maxLengthEnforced == 'false'"
|
||||
- kind: 'removeParameter'
|
||||
name: 'maxLengthEnforced'
|
||||
variables:
|
||||
maxLengthEnforced:
|
||||
kind: 'fragment'
|
||||
value: 'arguments[maxLengthEnforced]'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/72043
|
||||
- title: "Migrate to 'maxLengthEnforcement'"
|
||||
date: 2020-12-13
|
||||
element:
|
||||
uris: [ 'cupertino.dart' ]
|
||||
constructor: ''
|
||||
inClass: 'CupertinoTextField'
|
||||
oneOf:
|
||||
- if: "maxLengthEnforced == 'true'"
|
||||
changes:
|
||||
- kind: 'addParameter'
|
||||
index: 0
|
||||
name: 'maxLengthEnforcement'
|
||||
style: optional_named
|
||||
argumentValue:
|
||||
expression: 'MaxLengthEnforcement.enforce'
|
||||
requiredIf: "maxLengthEnforced == 'true'"
|
||||
- kind: 'removeParameter'
|
||||
name: 'maxLengthEnforced'
|
||||
- if: "maxLengthEnforced == 'false'"
|
||||
changes:
|
||||
- kind: 'addParameter'
|
||||
index: 0
|
||||
name: 'maxLengthEnforcement'
|
||||
style: optional_named
|
||||
argumentValue:
|
||||
expression: 'MaxLengthEnforcement.none'
|
||||
requiredIf: "maxLengthEnforced == 'false'"
|
||||
- kind: 'removeParameter'
|
||||
name: 'maxLengthEnforced'
|
||||
variables:
|
||||
maxLengthEnforced:
|
||||
kind: 'fragment'
|
||||
value: 'arguments[maxLengthEnforced]'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/96957
|
||||
- title: "Migrate to 'thumbVisibility'"
|
||||
date: 2022-01-20
|
||||
element:
|
||||
uris: [ 'cupertino.dart' ]
|
||||
field: 'isAlwaysShown'
|
||||
inClass: 'CupertinoScrollbar'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'thumbVisibility'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/96957
|
||||
- title: "Migrate to 'thumbVisibility'"
|
||||
date: 2022-01-20
|
||||
element:
|
||||
uris: [ 'cupertino.dart' ]
|
||||
constructor: ''
|
||||
inClass: 'CupertinoScrollbar'
|
||||
changes:
|
||||
- kind: 'renameParameter'
|
||||
oldName: 'isAlwaysShown'
|
||||
newName: 'thumbVisibility'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/41859
|
||||
- title: "Remove 'brightness'"
|
||||
date: 2020-12-10
|
||||
element:
|
||||
uris: [ 'cupertino.dart' ]
|
||||
constructor: ''
|
||||
inClass: 'CupertinoTextThemeData'
|
||||
changes:
|
||||
- kind: 'removeParameter'
|
||||
name: 'brightness'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/41859
|
||||
- title: "Remove 'brightness'"
|
||||
date: 2020-12-10
|
||||
element:
|
||||
uris: [ 'cupertino.dart' ]
|
||||
method: 'copyWith'
|
||||
inClass: 'CupertinoTextThemeData'
|
||||
changes:
|
||||
- kind: 'removeParameter'
|
||||
name: 'brightness'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/78588
|
||||
- title: "Migrate to 'buildOverscrollIndicator'"
|
||||
date: 2021-03-18
|
||||
element:
|
||||
uris: [ 'cupertino.dart' ]
|
||||
method: 'buildViewportChrome'
|
||||
inClass: 'CupertinoScrollBehavior'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'buildOverscrollIndicator'
|
||||
|
||||
# Before adding a new fix: read instructions at the top of this file.
|
||||
478
packages/flutter/lib/fix_data/fix_gestures.yaml
Normal file
478
packages/flutter/lib/fix_data/fix_gestures.yaml
Normal file
@@ -0,0 +1,478 @@
|
||||
# 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/docs/development/tools/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 CLASS] from the <XXX> library. *
|
||||
version: 1
|
||||
transforms:
|
||||
# Changes made in https://github.com/flutter/flutter/pull/28602
|
||||
- title: "Rename to 'fromMouseEvent'"
|
||||
date: 2020-12-15
|
||||
element:
|
||||
uris: [ 'gestures.dart' ]
|
||||
constructor: 'fromHoverEvent'
|
||||
inClass: 'PointerEnterEvent'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'fromMouseEvent'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/28602
|
||||
- title: "Rename to 'fromMouseEvent'"
|
||||
date: 2020-12-15
|
||||
element:
|
||||
uris: [ 'gestures.dart' ]
|
||||
constructor: 'fromHoverEvent'
|
||||
inClass: 'PointerExitEvent'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'fromMouseEvent'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/66043
|
||||
- title: "Use withKind"
|
||||
date: 2020-09-17
|
||||
element:
|
||||
uris: [ 'gestures.dart' ]
|
||||
constructor: ''
|
||||
inClass: 'VelocityTracker'
|
||||
oneOf:
|
||||
- if: "pointerDeviceKind == ''"
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'withKind'
|
||||
- kind: 'addParameter'
|
||||
index: 0
|
||||
name: 'kind'
|
||||
style: required_positional
|
||||
argumentValue:
|
||||
expression: 'PointerDeviceKind.touch'
|
||||
- if: "pointerDeviceKind != ''"
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'withKind'
|
||||
variables:
|
||||
pointerDeviceKind:
|
||||
kind: 'fragment'
|
||||
value: 'arguments[0]'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/81858
|
||||
- title: "Migrate to 'supportedDevices'"
|
||||
date: 2021-05-04
|
||||
element:
|
||||
uris: [ 'gestures.dart' ]
|
||||
constructor: ''
|
||||
inClass: 'ScaleGestureRecognizer'
|
||||
oneOf:
|
||||
- if: "kind != ''"
|
||||
changes:
|
||||
- kind: 'addParameter'
|
||||
index: 3
|
||||
name: 'supportedDevices'
|
||||
style: optional_named
|
||||
argumentValue:
|
||||
expression: '<PointerDeviceKind>{{% kind %}}'
|
||||
requiredIf: "kind != ''"
|
||||
- kind: 'removeParameter'
|
||||
name: 'kind'
|
||||
variables:
|
||||
kind:
|
||||
kind: 'fragment'
|
||||
value: 'arguments[kind]'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/81858
|
||||
- title: "Migrate to 'supportedDevices'"
|
||||
date: 2021-05-04
|
||||
element:
|
||||
uris: [ 'gestures.dart' ]
|
||||
constructor: ''
|
||||
inClass: 'MultiTapGestureRecognizer'
|
||||
oneOf:
|
||||
- if: "kind != ''"
|
||||
changes:
|
||||
- kind: 'addParameter'
|
||||
index: 4
|
||||
name: 'supportedDevices'
|
||||
style: optional_named
|
||||
argumentValue:
|
||||
expression: '<PointerDeviceKind>{{% kind %}}'
|
||||
requiredIf: "kind != ''"
|
||||
- kind: 'removeParameter'
|
||||
name: 'kind'
|
||||
variables:
|
||||
kind:
|
||||
kind: 'fragment'
|
||||
value: 'arguments[kind]'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/81858
|
||||
- title: "Migrate to 'supportedDevices'"
|
||||
date: 2021-05-04
|
||||
element:
|
||||
uris: [ 'gestures.dart' ]
|
||||
constructor: ''
|
||||
inClass: 'DoubleTapGestureRecognizer'
|
||||
oneOf:
|
||||
- if: "kind != ''"
|
||||
changes:
|
||||
- kind: 'addParameter'
|
||||
index: 3
|
||||
name: 'supportedDevices'
|
||||
style: optional_named
|
||||
argumentValue:
|
||||
expression: '<PointerDeviceKind>{{% kind %}}'
|
||||
requiredIf: "kind != ''"
|
||||
- kind: 'removeParameter'
|
||||
name: 'kind'
|
||||
variables:
|
||||
kind:
|
||||
kind: 'fragment'
|
||||
value: 'arguments[kind]'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/81858
|
||||
- title: "Migrate to 'supportedDevices'"
|
||||
date: 2021-05-04
|
||||
element:
|
||||
uris: [ 'gestures.dart' ]
|
||||
constructor: ''
|
||||
inClass: 'DelayedMultiDragGestureRecognizer'
|
||||
oneOf:
|
||||
- if: "kind != ''"
|
||||
changes:
|
||||
- kind: 'addParameter'
|
||||
index: 4
|
||||
name: 'supportedDevices'
|
||||
style: optional_named
|
||||
argumentValue:
|
||||
expression: '<PointerDeviceKind>{{% kind %}}'
|
||||
requiredIf: "kind != ''"
|
||||
- kind: 'removeParameter'
|
||||
name: 'kind'
|
||||
variables:
|
||||
kind:
|
||||
kind: 'fragment'
|
||||
value: 'arguments[kind]'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/81858
|
||||
- title: "Migrate to 'supportedDevices'"
|
||||
date: 2021-05-04
|
||||
element:
|
||||
uris: [ 'gestures.dart' ]
|
||||
constructor: ''
|
||||
inClass: 'VerticalMultiDragGestureRecognizer'
|
||||
oneOf:
|
||||
- if: "kind != ''"
|
||||
changes:
|
||||
- kind: 'addParameter'
|
||||
index: 3
|
||||
name: 'supportedDevices'
|
||||
style: optional_named
|
||||
argumentValue:
|
||||
expression: '<PointerDeviceKind>{{% kind %}}'
|
||||
requiredIf: "kind != ''"
|
||||
- kind: 'removeParameter'
|
||||
name: 'kind'
|
||||
variables:
|
||||
kind:
|
||||
kind: 'fragment'
|
||||
value: 'arguments[kind]'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/81858
|
||||
- title: "Migrate to 'supportedDevices'"
|
||||
date: 2021-05-04
|
||||
element:
|
||||
uris: [ 'gestures.dart' ]
|
||||
constructor: ''
|
||||
inClass: 'HorizontalMultiDragGestureRecognizer'
|
||||
oneOf:
|
||||
- if: "kind != ''"
|
||||
changes:
|
||||
- kind: 'addParameter'
|
||||
index: 3
|
||||
name: 'supportedDevices'
|
||||
style: optional_named
|
||||
argumentValue:
|
||||
expression: '<PointerDeviceKind>{{% kind %}}'
|
||||
requiredIf: "kind != ''"
|
||||
- kind: 'removeParameter'
|
||||
name: 'kind'
|
||||
variables:
|
||||
kind:
|
||||
kind: 'fragment'
|
||||
value: 'arguments[kind]'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/81858
|
||||
- title: "Migrate to 'supportedDevices'"
|
||||
date: 2021-05-04
|
||||
element:
|
||||
uris: [ 'gestures.dart' ]
|
||||
constructor: ''
|
||||
inClass: 'ImmediateMultiDragGestureRecognizer'
|
||||
oneOf:
|
||||
- if: "kind != ''"
|
||||
changes:
|
||||
- kind: 'addParameter'
|
||||
index: 3
|
||||
name: 'supportedDevices'
|
||||
style: optional_named
|
||||
argumentValue:
|
||||
expression: '<PointerDeviceKind>{{% kind %}}'
|
||||
requiredIf: "kind != ''"
|
||||
- kind: 'removeParameter'
|
||||
name: 'kind'
|
||||
variables:
|
||||
kind:
|
||||
kind: 'fragment'
|
||||
value: 'arguments[kind]'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/81858
|
||||
- title: "Migrate to 'supportedDevices'"
|
||||
date: 2021-05-04
|
||||
element:
|
||||
uris: [ 'gestures.dart' ]
|
||||
constructor: ''
|
||||
inClass: 'MultiDragGestureRecognizer'
|
||||
oneOf:
|
||||
- if: "kind != ''"
|
||||
changes:
|
||||
- kind: 'addParameter'
|
||||
index: 3
|
||||
name: 'supportedDevices'
|
||||
style: optional_named
|
||||
argumentValue:
|
||||
expression: '<PointerDeviceKind>{{% kind %}}'
|
||||
requiredIf: "kind != ''"
|
||||
- kind: 'removeParameter'
|
||||
name: 'kind'
|
||||
variables:
|
||||
kind:
|
||||
kind: 'fragment'
|
||||
value: 'arguments[kind]'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/81858
|
||||
- title: "Migrate to 'supportedDevices'"
|
||||
date: 2021-05-04
|
||||
element:
|
||||
uris: [ 'gestures.dart' ]
|
||||
constructor: ''
|
||||
inClass: 'LongPressGestureRecognizer'
|
||||
oneOf:
|
||||
- if: "kind != ''"
|
||||
changes:
|
||||
- kind: 'addParameter'
|
||||
index: 4
|
||||
name: 'supportedDevices'
|
||||
style: optional_named
|
||||
argumentValue:
|
||||
expression: '<PointerDeviceKind>{{% kind %}}'
|
||||
requiredIf: "kind != ''"
|
||||
- kind: 'removeParameter'
|
||||
name: 'kind'
|
||||
variables:
|
||||
kind:
|
||||
kind: 'fragment'
|
||||
value: 'arguments[kind]'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/81858
|
||||
- title: "Migrate to 'supportedDevices'"
|
||||
date: 2021-05-04
|
||||
element:
|
||||
uris: [ 'gestures.dart' ]
|
||||
constructor: ''
|
||||
inClass: 'ForcePressGestureRecognizer'
|
||||
oneOf:
|
||||
- if: "kind != ''"
|
||||
changes:
|
||||
- kind: 'addParameter'
|
||||
index: 6
|
||||
name: 'supportedDevices'
|
||||
style: optional_named
|
||||
argumentValue:
|
||||
expression: '<PointerDeviceKind>{{% kind %}}'
|
||||
requiredIf: "kind != ''"
|
||||
- kind: 'removeParameter'
|
||||
name: 'kind'
|
||||
variables:
|
||||
kind:
|
||||
kind: 'fragment'
|
||||
value: 'arguments[kind]'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/81858
|
||||
- title: "Migrate to 'supportedDevices'"
|
||||
date: 2021-05-04
|
||||
element:
|
||||
uris: [ 'gestures.dart' ]
|
||||
constructor: ''
|
||||
inClass: 'EagerGestureRecognizer'
|
||||
oneOf:
|
||||
- if: "kind != ''"
|
||||
changes:
|
||||
- kind: 'addParameter'
|
||||
index: 2
|
||||
name: 'supportedDevices'
|
||||
style: optional_named
|
||||
argumentValue:
|
||||
expression: '<PointerDeviceKind>{{% kind %}}'
|
||||
requiredIf: "kind != ''"
|
||||
- kind: 'removeParameter'
|
||||
name: 'kind'
|
||||
variables:
|
||||
kind:
|
||||
kind: 'fragment'
|
||||
value: 'arguments[kind]'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/81858
|
||||
- title: "Migrate to 'supportedDevices'"
|
||||
date: 2021-05-04
|
||||
element:
|
||||
uris: [ 'gestures.dart' ]
|
||||
constructor: ''
|
||||
inClass: 'PrimaryPointerGestureRecognizer'
|
||||
oneOf:
|
||||
- if: "kind != ''"
|
||||
changes:
|
||||
- kind: 'addParameter'
|
||||
index: 6
|
||||
name: 'supportedDevices'
|
||||
style: optional_named
|
||||
argumentValue:
|
||||
expression: '<PointerDeviceKind>{{% kind %}}'
|
||||
requiredIf: "kind != ''"
|
||||
- kind: 'removeParameter'
|
||||
name: 'kind'
|
||||
variables:
|
||||
kind:
|
||||
kind: 'fragment'
|
||||
value: 'arguments[kind]'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/81858
|
||||
- title: "Migrate to 'supportedDevices'"
|
||||
date: 2021-05-04
|
||||
element:
|
||||
uris: [ 'gestures.dart' ]
|
||||
constructor: ''
|
||||
inClass: 'OneSequenceGestureRecognizer'
|
||||
oneOf:
|
||||
- if: "kind != ''"
|
||||
changes:
|
||||
- kind: 'addParameter'
|
||||
index: 3
|
||||
name: 'supportedDevices'
|
||||
style: optional_named
|
||||
argumentValue:
|
||||
expression: '<PointerDeviceKind>{{% kind %}}'
|
||||
requiredIf: "kind != ''"
|
||||
- kind: 'removeParameter'
|
||||
name: 'kind'
|
||||
variables:
|
||||
kind:
|
||||
kind: 'fragment'
|
||||
value: 'arguments[kind]'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/81858
|
||||
- title: "Migrate to 'supportedDevices'"
|
||||
date: 2021-05-04
|
||||
element:
|
||||
uris: [ 'gestures.dart' ]
|
||||
constructor: ''
|
||||
inClass: 'GestureRecognizer'
|
||||
oneOf:
|
||||
- if: "kind != ''"
|
||||
changes:
|
||||
- kind: 'addParameter'
|
||||
index: 3
|
||||
name: 'supportedDevices'
|
||||
style: optional_named
|
||||
argumentValue:
|
||||
expression: '<PointerDeviceKind>{{% kind %}}'
|
||||
requiredIf: "kind != ''"
|
||||
- kind: 'removeParameter'
|
||||
name: 'kind'
|
||||
variables:
|
||||
kind:
|
||||
kind: 'fragment'
|
||||
value: 'arguments[kind]'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/81858
|
||||
- title: "Migrate to 'supportedDevices'"
|
||||
date: 2021-05-04
|
||||
element:
|
||||
uris: [ 'gestures.dart' ]
|
||||
constructor: ''
|
||||
inClass: 'HorizontalDragGestureRecognizer'
|
||||
oneOf:
|
||||
- if: "kind != ''"
|
||||
changes:
|
||||
- kind: 'addParameter'
|
||||
index: 3
|
||||
name: 'supportedDevices'
|
||||
style: optional_named
|
||||
argumentValue:
|
||||
expression: '<PointerDeviceKind>{{% kind %}}'
|
||||
requiredIf: "kind != ''"
|
||||
- kind: 'removeParameter'
|
||||
name: 'kind'
|
||||
variables:
|
||||
kind:
|
||||
kind: 'fragment'
|
||||
value: 'arguments[kind]'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/81858
|
||||
- title: "Migrate to 'supportedDevices'"
|
||||
date: 2021-05-04
|
||||
element:
|
||||
uris: [ 'gestures.dart' ]
|
||||
constructor: ''
|
||||
inClass: 'VerticalDragGestureRecognizer'
|
||||
oneOf:
|
||||
- if: "kind != ''"
|
||||
changes:
|
||||
- kind: 'addParameter'
|
||||
index: 3
|
||||
name: 'supportedDevices'
|
||||
style: optional_named
|
||||
argumentValue:
|
||||
expression: '<PointerDeviceKind>{{% kind %}}'
|
||||
requiredIf: "kind != ''"
|
||||
- kind: 'removeParameter'
|
||||
name: 'kind'
|
||||
variables:
|
||||
kind:
|
||||
kind: 'fragment'
|
||||
value: 'arguments[kind]'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/81858
|
||||
- title: "Migrate to 'supportedDevices'"
|
||||
date: 2021-05-04
|
||||
element:
|
||||
uris: [ 'gestures.dart' ]
|
||||
constructor: ''
|
||||
inClass: 'DragGestureRecognizer'
|
||||
oneOf:
|
||||
- if: "kind != ''"
|
||||
changes:
|
||||
- kind: 'addParameter'
|
||||
index: 5
|
||||
name: 'supportedDevices'
|
||||
style: optional_named
|
||||
argumentValue:
|
||||
expression: '<PointerDeviceKind>{{% kind %}}'
|
||||
requiredIf: "kind != ''"
|
||||
- kind: 'removeParameter'
|
||||
name: 'kind'
|
||||
variables:
|
||||
kind:
|
||||
kind: 'fragment'
|
||||
value: 'arguments[kind]'
|
||||
|
||||
# Before adding a new fix: read instructions at the top of this file.
|
||||
150
packages/flutter/lib/fix_data/fix_material/fix_app_bar.yaml
Normal file
150
packages/flutter/lib/fix_data/fix_material/fix_app_bar.yaml
Normal file
@@ -0,0 +1,150 @@
|
||||
# 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/docs/development/tools/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 AppBar from the Material library. *
|
||||
# For fixes to
|
||||
# * AppBarTheme: fix_app_bar_theme.yaml
|
||||
# * ColorScheme: fix_color_scheme.yaml
|
||||
# * Material (general): fix_material.yaml
|
||||
# * SliverAppBar: fix_sliver_app_bar.yaml
|
||||
# * TextTheme: fix_text_theme.yaml
|
||||
# * ThemeData: fix_theme_data.yaml
|
||||
version: 1
|
||||
transforms:
|
||||
# Changes made in https://github.com/flutter/flutter/pull/86198
|
||||
- title: "Remove 'backwardsCompatibility'"
|
||||
date: 2020-07-12
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
constructor: ''
|
||||
inClass: 'AppBar'
|
||||
changes:
|
||||
- kind: 'removeParameter'
|
||||
name: 'backwardsCompatibility'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/86198
|
||||
- title: "Migrate to 'toolbarTextStyle' & 'titleTextStyle'"
|
||||
date: 2020-07-12
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
constructor: ''
|
||||
inClass: 'AppBar'
|
||||
changes:
|
||||
- kind: 'addParameter'
|
||||
index: 24
|
||||
name: 'toolbarTextStyle'
|
||||
style: optional_named
|
||||
argumentValue:
|
||||
expression: '{% textTheme %}.bodyText2'
|
||||
requiredIf: "textTheme != ''"
|
||||
- kind: 'addParameter'
|
||||
index: 25
|
||||
name: 'titleTextStyle'
|
||||
style: optional_named
|
||||
argumentValue:
|
||||
expression: '{% textTheme %}.headline6'
|
||||
requiredIf: "textTheme != ''"
|
||||
- kind: 'removeParameter'
|
||||
name: 'textTheme'
|
||||
variables:
|
||||
textTheme:
|
||||
kind: 'fragment'
|
||||
value: 'arguments[textTheme]'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/86198
|
||||
- title: "Migrate to 'toolbarTextStyle'"
|
||||
date: 2021-07-12
|
||||
# TODO(Piinks): Add tests when `bulkApply:false` testing is supported, https://github.com/dart-lang/sdk/issues/44639
|
||||
bulkApply: false
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
field: 'textTheme'
|
||||
inClass: 'AppBar'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'toolbarTextStyle'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/86198
|
||||
- title: "Migrate to 'titleTextStyle'"
|
||||
date: 2021-07-12
|
||||
# TODO(Piinks): Add tests when `bulkApply:false` testing is supported, https://github.com/dart-lang/sdk/issues/44639
|
||||
bulkApply: false
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
field: 'textTheme'
|
||||
inClass: 'AppBar'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'titleTextStyle'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/86198
|
||||
- title: "Migrate to 'systemOverlayStyle'"
|
||||
date: 2020-07-12
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
constructor: ''
|
||||
inClass: 'AppBar'
|
||||
oneOf:
|
||||
- if: "brightness == 'Brightness.dark'"
|
||||
changes:
|
||||
- kind: 'addParameter'
|
||||
index: 27
|
||||
name: 'systemOverlayStyle'
|
||||
style: optional_named
|
||||
argumentValue:
|
||||
expression: '{% SystemUiOverlayStyle %}.light'
|
||||
requiredIf: "brightness == 'Brightness.dark'"
|
||||
variables:
|
||||
SystemUiOverlayStyle:
|
||||
kind: 'import'
|
||||
uris: [ 'services.dart' ]
|
||||
name: 'SystemUiOverlayStyle'
|
||||
- kind: 'removeParameter'
|
||||
name: 'brightness'
|
||||
- if: "brightness == 'Brightness.light'"
|
||||
changes:
|
||||
- kind: 'addParameter'
|
||||
index: 27
|
||||
name: 'systemOverlayStyle'
|
||||
style: optional_named
|
||||
argumentValue:
|
||||
expression: '{% SystemUiOverlayStyle %}.dark'
|
||||
requiredIf: "brightness == 'Brightness.light'"
|
||||
variables:
|
||||
SystemUiOverlayStyle:
|
||||
kind: 'import'
|
||||
uris: [ 'services.dart' ]
|
||||
name: 'SystemUiOverlayStyle'
|
||||
- kind: 'removeParameter'
|
||||
name: 'brightness'
|
||||
variables:
|
||||
brightness:
|
||||
kind: 'fragment'
|
||||
value: 'arguments[brightness]'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/86198
|
||||
- title: "Migrate to 'systemOverlayStyle'"
|
||||
date: 2021-07-12
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
field: 'brightness'
|
||||
inClass: 'AppBar'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'systemOverlayStyle'
|
||||
|
||||
# Before adding a new fix: read instructions at the top of this file.
|
||||
@@ -0,0 +1,246 @@
|
||||
# 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/docs/development/tools/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 AppBarTheme from the Material library. *
|
||||
# For fixes to
|
||||
# * AppBar: fix_app_bar.yaml
|
||||
# * ColorScheme: fix_color_scheme.yaml
|
||||
# * Material (general): fix_material.yaml
|
||||
# * SliverAppBar: fix_sliver_app_bar.yaml
|
||||
# * TextTheme: fix_text_theme.yaml
|
||||
# * ThemeData: fix_theme_data.yaml
|
||||
version: 1
|
||||
transforms:
|
||||
# Changes made in https://github.com/flutter/flutter/pull/86198
|
||||
- title: "Migrate to 'systemOverlayStyle'"
|
||||
date: 2021-07-12
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
method: 'copyWith'
|
||||
inClass: 'AppBarTheme'
|
||||
oneOf:
|
||||
- if: "brightness == 'Brightness.dark'"
|
||||
changes:
|
||||
- kind: 'addParameter'
|
||||
index: 14
|
||||
name: 'systemOverlayStyle'
|
||||
style: optional_named
|
||||
argumentValue:
|
||||
expression: '{% SystemUiOverlayStyle %}.light'
|
||||
requiredIf: "brightness == 'Brightness.dark'"
|
||||
variables:
|
||||
SystemUiOverlayStyle:
|
||||
kind: 'import'
|
||||
uris: [ 'services.dart' ]
|
||||
name: 'SystemUiOverlayStyle'
|
||||
- kind: 'removeParameter'
|
||||
name: 'brightness'
|
||||
- if: "brightness == 'Brightness.light'"
|
||||
changes:
|
||||
- kind: 'addParameter'
|
||||
index: 14
|
||||
name: 'systemOverlayStyle'
|
||||
style: optional_named
|
||||
argumentValue:
|
||||
expression: '{% SystemUiOverlayStyle %}.dark'
|
||||
requiredIf: "brightness == 'Brightness.light'"
|
||||
variables:
|
||||
SystemUiOverlayStyle:
|
||||
kind: 'import'
|
||||
uris: [ 'services.dart' ]
|
||||
name: 'SystemUiOverlayStyle'
|
||||
- kind: 'removeParameter'
|
||||
name: 'brightness'
|
||||
variables:
|
||||
brightness:
|
||||
kind: 'fragment'
|
||||
value: 'arguments[brightness]'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/86198
|
||||
- title: "Migrate to 'systemOverlayStyle'"
|
||||
date: 2020-07-12
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
constructor: ''
|
||||
inClass: 'AppBarTheme'
|
||||
oneOf:
|
||||
- if: "brightness == 'Brightness.dark'"
|
||||
changes:
|
||||
- kind: 'addParameter'
|
||||
index: 14
|
||||
name: 'systemOverlayStyle'
|
||||
style: optional_named
|
||||
argumentValue:
|
||||
expression: '{% SystemUiOverlayStyle %}.light'
|
||||
requiredIf: "brightness == 'Brightness.dark'"
|
||||
variables:
|
||||
SystemUiOverlayStyle:
|
||||
kind: 'import'
|
||||
uris: [ 'services.dart' ]
|
||||
name: 'SystemUiOverlayStyle'
|
||||
- kind: 'removeParameter'
|
||||
name: 'brightness'
|
||||
- if: "brightness == 'Brightness.light'"
|
||||
changes:
|
||||
- kind: 'addParameter'
|
||||
index: 14
|
||||
name: 'systemOverlayStyle'
|
||||
style: optional_named
|
||||
argumentValue:
|
||||
expression: '{% SystemUiOverlayStyle %}.dark'
|
||||
requiredIf: "brightness == 'Brightness.light'"
|
||||
variables:
|
||||
SystemUiOverlayStyle:
|
||||
kind: 'import'
|
||||
uris: [ 'services.dart' ]
|
||||
name: 'SystemUiOverlayStyle'
|
||||
- kind: 'removeParameter'
|
||||
name: 'brightness'
|
||||
variables:
|
||||
brightness:
|
||||
kind: 'fragment'
|
||||
value: 'arguments[brightness]'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/86198
|
||||
- title: "Migrate to 'systemOverlayStyle'"
|
||||
date: 2021-07-12
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
field: 'brightness'
|
||||
inClass: 'AppBarTheme'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'systemOverlayStyle'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/86198
|
||||
- title: "Migrate to 'toolbarTextStyle'"
|
||||
date: 2021-07-12
|
||||
# TODO(Piinks): Add tests when `bulkApply:false` testing is supported, https://github.com/dart-lang/sdk/issues/44639
|
||||
bulkApply: false
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
field: 'textTheme'
|
||||
inClass: 'AppBarTheme'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'toolbarTextStyle'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/86198
|
||||
- title: "Migrate to 'titleTextStyle'"
|
||||
date: 2021-07-12
|
||||
# TODO(Piinks): Add tests when `bulkApply:false` testing is supported, https://github.com/dart-lang/sdk/issues/44639
|
||||
bulkApply: false
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
field: 'textTheme'
|
||||
inClass: 'AppBarTheme'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'titleTextStyle'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/86198
|
||||
- title: "Migrate to 'toolbarTextStyle' & 'titleTextStyle'"
|
||||
date: 2021-07-12
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
method: 'copyWith'
|
||||
inClass: 'AppBarTheme'
|
||||
changes:
|
||||
- kind: 'addParameter'
|
||||
index: 12
|
||||
name: 'toolbarTextStyle'
|
||||
style: optional_named
|
||||
argumentValue:
|
||||
expression: '{% textTheme %}.bodyText2'
|
||||
requiredIf: "textTheme != ''"
|
||||
- kind: 'addParameter'
|
||||
index: 13
|
||||
name: 'titleTextStyle'
|
||||
style: optional_named
|
||||
argumentValue:
|
||||
expression: '{% textTheme %}.headline6'
|
||||
requiredIf: "textTheme != ''"
|
||||
- kind: 'removeParameter'
|
||||
name: 'textTheme'
|
||||
variables:
|
||||
textTheme:
|
||||
kind: 'fragment'
|
||||
value: 'arguments[textTheme]'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/86198
|
||||
- title: "Migrate to 'toolbarTextStyle' & 'titleTextStyle'"
|
||||
date: 2020-07-12
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
constructor: ''
|
||||
inClass: 'AppBarTheme'
|
||||
changes:
|
||||
- kind: 'addParameter'
|
||||
index: 13
|
||||
name: 'toolbarTextStyle'
|
||||
style: optional_named
|
||||
argumentValue:
|
||||
expression: '{% textTheme %}.bodyText2'
|
||||
requiredIf: "textTheme != ''"
|
||||
- kind: 'addParameter'
|
||||
index: 14
|
||||
name: 'titleTextStyle'
|
||||
style: optional_named
|
||||
argumentValue:
|
||||
expression: '{% textTheme %}.headline6'
|
||||
requiredIf: "textTheme != ''"
|
||||
- kind: 'removeParameter'
|
||||
name: 'textTheme'
|
||||
variables:
|
||||
textTheme:
|
||||
kind: 'fragment'
|
||||
value: 'arguments[textTheme]'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/86198
|
||||
- title: "Migrate to 'backgroundColor'"
|
||||
date: 2021-07-12
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
getter: color
|
||||
inClass: 'AppBarTheme'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'backgroundColor'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/86198
|
||||
- title: "Remove 'backwardsCompatibility'"
|
||||
date: 2021-07-12
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
method: 'copyWith'
|
||||
inClass: 'AppBarTheme'
|
||||
changes:
|
||||
- kind: 'removeParameter'
|
||||
name: 'backwardsCompatibility'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/86198
|
||||
- title: "Remove 'backwardsCompatibility'"
|
||||
date: 2020-07-12
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
constructor: ''
|
||||
inClass: 'AppBarTheme'
|
||||
changes:
|
||||
- kind: 'removeParameter'
|
||||
name: 'backwardsCompatibility'
|
||||
|
||||
# Before adding a new fix: read instructions at the top of this file.
|
||||
129
packages/flutter/lib/fix_data/fix_material/fix_color_scheme.yaml
Normal file
129
packages/flutter/lib/fix_data/fix_material/fix_color_scheme.yaml
Normal file
@@ -0,0 +1,129 @@
|
||||
# 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/docs/development/tools/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 ColorScheme from the Material library. *
|
||||
# For fixes to
|
||||
# * AppBar: fix_app_bar.yaml
|
||||
# * AppBarTheme: fix_app_bar_theme.yaml
|
||||
# * Material (general): fix_material.yaml
|
||||
# * SliverAppBar: fix_sliver_app_bar.yaml
|
||||
# * TextTheme: fix_text_theme.yaml
|
||||
# * ThemeData: fix_theme_data.yaml
|
||||
version: 1
|
||||
transforms:
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/93427
|
||||
- title: "Remove 'primaryVariant' and 'secondaryVariant'"
|
||||
date: 2021-11-19
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
constructor: ''
|
||||
inClass: 'ColorScheme'
|
||||
changes:
|
||||
- kind: 'removeParameter'
|
||||
name: 'primaryVariant'
|
||||
- kind: 'removeParameter'
|
||||
name: 'secondaryVariant'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/93427
|
||||
- title: "Remove 'primaryVariant' and 'secondaryVariant'"
|
||||
date: 2021-11-19
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
constructor: 'light'
|
||||
inClass: 'ColorScheme'
|
||||
changes:
|
||||
- kind: 'removeParameter'
|
||||
name: 'primaryVariant'
|
||||
- kind: 'removeParameter'
|
||||
name: 'secondaryVariant'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/93427
|
||||
- title: "Remove 'primaryVariant' and 'secondaryVariant'"
|
||||
date: 2021-11-19
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
constructor: 'dark'
|
||||
inClass: 'ColorScheme'
|
||||
changes:
|
||||
- kind: 'removeParameter'
|
||||
name: 'primaryVariant'
|
||||
- kind: 'removeParameter'
|
||||
name: 'secondaryVariant'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/93427
|
||||
- title: "Remove 'primaryVariant' and 'secondaryVariant'"
|
||||
date: 2021-11-19
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
constructor: 'highContrastLight'
|
||||
inClass: 'ColorScheme'
|
||||
changes:
|
||||
- kind: 'removeParameter'
|
||||
name: 'primaryVariant'
|
||||
- kind: 'removeParameter'
|
||||
name: 'secondaryVariant'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/93427
|
||||
- title: "Remove 'primaryVariant' and 'secondaryVariant'"
|
||||
date: 2021-11-19
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
constructor: 'highContrastDark'
|
||||
inClass: 'ColorScheme'
|
||||
changes:
|
||||
- kind: 'removeParameter'
|
||||
name: 'primaryVariant'
|
||||
- kind: 'removeParameter'
|
||||
name: 'secondaryVariant'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/93427
|
||||
- title: "Remove 'primaryVariant' and 'secondaryVariant'"
|
||||
date: 2021-11-19
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
method: 'copyWith'
|
||||
inClass: 'ColorScheme'
|
||||
changes:
|
||||
- kind: 'removeParameter'
|
||||
name: 'primaryVariant'
|
||||
- kind: 'removeParameter'
|
||||
name: 'secondaryVariant'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/93427
|
||||
- title: "Migrate 'primaryVariant' to 'primaryContainer'"
|
||||
date: 2021-11-19
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
getter: 'primaryVariant'
|
||||
inClass: 'ColorScheme'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'primaryContainer'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/93427
|
||||
- title: "Migrate 'secondaryVariant' to 'secondaryContainer'"
|
||||
date: 2021-11-19
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
getter: 'secondaryVariant'
|
||||
inClass: 'ColorScheme'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'secondaryContainer'
|
||||
|
||||
# Before adding a new fix: read instructions at the top of this file.
|
||||
900
packages/flutter/lib/fix_data/fix_material/fix_material.yaml
Normal file
900
packages/flutter/lib/fix_data/fix_material/fix_material.yaml
Normal file
@@ -0,0 +1,900 @@
|
||||
# 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/docs/development/tools/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 from the Material library. *
|
||||
# For fixes to
|
||||
# * AppBar: fix_app_bar.yaml
|
||||
# * AppBarTheme: fix_app_bar_theme.yaml
|
||||
# * ColorScheme: fix_color_scheme.yaml
|
||||
# * SliverAppBar: fix_sliver_app_bar.yaml
|
||||
# * TextTheme: fix_text_theme.yaml
|
||||
# * ThemeData: fix_theme_data.yaml
|
||||
version: 1
|
||||
transforms:
|
||||
# Changes made in https://github.com/flutter/flutter/pull/15303
|
||||
- title: "Replace 'child' with 'builder'"
|
||||
date: 2020-12-17
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
function: 'showDialog'
|
||||
changes:
|
||||
- kind: 'addParameter'
|
||||
index: 0
|
||||
name: 'builder'
|
||||
style: optional_named
|
||||
argumentValue:
|
||||
expression: '(context) => {% widget %}'
|
||||
requiredIf: "widget != ''"
|
||||
variables:
|
||||
widget:
|
||||
kind: fragment
|
||||
value: 'arguments[child]'
|
||||
- kind: 'removeParameter'
|
||||
name: 'child'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/61648
|
||||
- title: "Migrate to 'autovalidateMode'"
|
||||
date: 2020-09-02
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
constructor: ''
|
||||
inClass: 'TextFormField'
|
||||
oneOf:
|
||||
- if: "autovalidate == 'true'"
|
||||
changes:
|
||||
- kind: 'addParameter'
|
||||
index: 0
|
||||
name: 'autovalidateMode'
|
||||
style: optional_named
|
||||
argumentValue:
|
||||
expression: 'AutovalidateMode.always'
|
||||
requiredIf: "autovalidate == 'true'"
|
||||
- kind: 'removeParameter'
|
||||
name: 'autovalidate'
|
||||
- if: "autovalidate == 'false'"
|
||||
changes:
|
||||
- kind: 'addParameter'
|
||||
index: 0
|
||||
name: 'autovalidateMode'
|
||||
style: optional_named
|
||||
argumentValue:
|
||||
expression: 'AutovalidateMode.disabled'
|
||||
requiredIf: "autovalidate == 'false'"
|
||||
- kind: 'removeParameter'
|
||||
name: 'autovalidate'
|
||||
variables:
|
||||
autovalidate:
|
||||
kind: 'fragment'
|
||||
value: 'arguments[autovalidate]'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/61648
|
||||
- title: "Migrate to 'autovalidateMode'"
|
||||
date: 2020-09-02
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
constructor: ''
|
||||
inClass: 'DropdownButtonFormField'
|
||||
oneOf:
|
||||
- if: "autovalidate == 'true'"
|
||||
changes:
|
||||
- kind: 'addParameter'
|
||||
index: 0
|
||||
name: 'autovalidateMode'
|
||||
style: optional_named
|
||||
argumentValue:
|
||||
expression: 'AutovalidateMode.always'
|
||||
requiredIf: "autovalidate == 'true'"
|
||||
- kind: 'removeParameter'
|
||||
name: 'autovalidate'
|
||||
- if: "autovalidate == 'false'"
|
||||
changes:
|
||||
- kind: 'addParameter'
|
||||
index: 0
|
||||
name: 'autovalidateMode'
|
||||
style: optional_named
|
||||
argumentValue:
|
||||
expression: 'AutovalidateMode.disabled'
|
||||
requiredIf: "autovalidate == 'false'"
|
||||
- kind: 'removeParameter'
|
||||
name: 'autovalidate'
|
||||
variables:
|
||||
autovalidate:
|
||||
kind: 'fragment'
|
||||
value: 'arguments[autovalidate]'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/26259
|
||||
- title: "Rename to 'resizeToAvoidBottomInset'"
|
||||
date: 2020-12-23
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
field: 'resizeToAvoidBottomPadding'
|
||||
inClass: 'Scaffold'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'resizeToAvoidBottomInset'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/26259
|
||||
- title: "Rename to 'resizeToAvoidBottomInset'"
|
||||
date: 2020-12-23
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
constructor: ''
|
||||
inClass: 'Scaffold'
|
||||
changes:
|
||||
- kind: 'renameParameter'
|
||||
oldName: 'resizeToAvoidBottomPadding'
|
||||
newName: 'resizeToAvoidBottomInset'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/68908.
|
||||
- title: "Migrate from 'nullOk'"
|
||||
date: 2021-01-27
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
method: 'of'
|
||||
inClass: 'Scaffold'
|
||||
oneOf:
|
||||
- if: "nullOk == 'true'"
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'maybeOf'
|
||||
- kind: 'removeParameter'
|
||||
name: 'nullOk'
|
||||
- if: "nullOk == 'false'"
|
||||
changes:
|
||||
- kind: 'removeParameter'
|
||||
name: 'nullOk'
|
||||
variables:
|
||||
nullOk:
|
||||
kind: 'fragment'
|
||||
value: 'arguments[nullOk]'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/68908.
|
||||
- title: "Migrate from 'nullOk'"
|
||||
date: 2021-01-27
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
method: 'of'
|
||||
inClass: 'ScaffoldMessenger'
|
||||
oneOf:
|
||||
- if: "nullOk == 'true'"
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'maybeOf'
|
||||
- kind: 'removeParameter'
|
||||
name: 'nullOk'
|
||||
- if: "nullOk == 'false'"
|
||||
changes:
|
||||
- kind: 'removeParameter'
|
||||
name: 'nullOk'
|
||||
variables:
|
||||
nullOk:
|
||||
kind: 'fragment'
|
||||
value: 'arguments[nullOk]'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/68905.
|
||||
- title: "Migrate from 'nullOk'"
|
||||
date: 2021-01-27
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
method: 'resolveFrom'
|
||||
inClass: 'MaterialBasedCupertinoThemeData'
|
||||
changes:
|
||||
- kind: 'removeParameter'
|
||||
name: 'nullOk'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/72043
|
||||
- title: "Migrate to 'maxLengthEnforcement'"
|
||||
date: 2020-12-13
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
constructor: ''
|
||||
inClass: 'TextFormField'
|
||||
oneOf:
|
||||
- if: "maxLengthEnforced == 'true'"
|
||||
changes:
|
||||
- kind: 'addParameter'
|
||||
index: 0
|
||||
name: 'maxLengthEnforcement'
|
||||
style: optional_named
|
||||
argumentValue:
|
||||
expression: 'MaxLengthEnforcement.enforce'
|
||||
requiredIf: "maxLengthEnforced == 'true'"
|
||||
- kind: 'removeParameter'
|
||||
name: 'maxLengthEnforced'
|
||||
- if: "maxLengthEnforced == 'false'"
|
||||
changes:
|
||||
- kind: 'addParameter'
|
||||
index: 0
|
||||
name: 'maxLengthEnforcement'
|
||||
style: optional_named
|
||||
argumentValue:
|
||||
expression: 'MaxLengthEnforcement.none'
|
||||
requiredIf: "maxLengthEnforced == 'false'"
|
||||
- kind: 'removeParameter'
|
||||
name: 'maxLengthEnforced'
|
||||
variables:
|
||||
maxLengthEnforced:
|
||||
kind: 'fragment'
|
||||
value: 'arguments[maxLengthEnforced]'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/72043
|
||||
- title: "Migrate to 'maxLengthEnforcement'"
|
||||
date: 2020-12-13
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
field: 'maxLengthEnforced'
|
||||
inClass: 'TextField'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'maxLengthEnforcement'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/72043
|
||||
- title: "Migrate to 'maxLengthEnforcement'"
|
||||
date: 2020-12-13
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
constructor: ''
|
||||
inClass: 'TextField'
|
||||
oneOf:
|
||||
- if: "maxLengthEnforced == 'true'"
|
||||
changes:
|
||||
- kind: 'addParameter'
|
||||
index: 0
|
||||
name: 'maxLengthEnforcement'
|
||||
style: optional_named
|
||||
argumentValue:
|
||||
expression: 'MaxLengthEnforcement.enforce'
|
||||
requiredIf: "maxLengthEnforced == 'true'"
|
||||
- kind: 'removeParameter'
|
||||
name: 'maxLengthEnforced'
|
||||
- if: "maxLengthEnforced == 'false'"
|
||||
changes:
|
||||
- kind: 'addParameter'
|
||||
index: 0
|
||||
name: 'maxLengthEnforcement'
|
||||
style: optional_named
|
||||
argumentValue:
|
||||
expression: 'MaxLengthEnforcement.none'
|
||||
requiredIf: "maxLengthEnforced == 'false'"
|
||||
- kind: 'removeParameter'
|
||||
name: 'maxLengthEnforced'
|
||||
variables:
|
||||
maxLengthEnforced:
|
||||
kind: 'fragment'
|
||||
value: 'arguments[maxLengthEnforced]'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/65246
|
||||
- title: "Remove 'disabledThumbGapWidth'"
|
||||
date: 2020-11-17
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
constructor: ''
|
||||
inClass: 'RectangularSliderTrackShape'
|
||||
changes:
|
||||
- kind: 'removeParameter'
|
||||
name: 'disabledThumbGapWidth'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/46115
|
||||
- title: "Migrate to 'floatingLabelBehavior'"
|
||||
date: 2020-01-15
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
field: 'hasFloatingPlaceholder'
|
||||
inClass: 'InputDecorationTheme'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'floatingLabelBehavior'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/46115
|
||||
- title: "Migrate to 'floatingLabelBehavior'"
|
||||
date: 2020-01-15
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
constructor: ''
|
||||
inClass: 'InputDecorationTheme'
|
||||
oneOf:
|
||||
- if: "hasFloatingPlaceholder == 'true'"
|
||||
changes:
|
||||
- kind: 'addParameter'
|
||||
index: 14
|
||||
name: 'floatingLabelBehavior'
|
||||
style: optional_named
|
||||
argumentValue:
|
||||
expression: '{% FloatingLabelBehavior %}.auto'
|
||||
requiredIf: "hasFloatingPlaceholder == 'true'"
|
||||
variables:
|
||||
FloatingLabelBehavior:
|
||||
kind: 'import'
|
||||
uris: [ 'material.dart' ]
|
||||
name: 'FloatingLabelBehavior'
|
||||
- kind: 'removeParameter'
|
||||
name: 'hasFloatingPlaceholder'
|
||||
- if: "hasFloatingPlaceholder == 'false'"
|
||||
changes:
|
||||
- kind: 'addParameter'
|
||||
index: 14
|
||||
name: 'floatingLabelBehavior'
|
||||
style: optional_named
|
||||
argumentValue:
|
||||
expression: '{% FloatingLabelBehavior %}.never'
|
||||
requiredIf: "hasFloatingPlaceholder == 'false'"
|
||||
variables:
|
||||
FloatingLabelBehavior:
|
||||
kind: 'import'
|
||||
uris: [ 'material.dart' ]
|
||||
name: 'FloatingLabelBehavior'
|
||||
- kind: 'removeParameter'
|
||||
name: 'hasFloatingPlaceholder'
|
||||
variables:
|
||||
hasFloatingPlaceholder:
|
||||
kind: 'fragment'
|
||||
value: 'arguments[hasFloatingPlaceholder]'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/46115
|
||||
- title: "Migrate to 'floatingLabelBehavior'"
|
||||
date: 2020-01-15
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
method: 'copyWith'
|
||||
inClass: 'InputDecorationTheme'
|
||||
oneOf:
|
||||
- if: "hasFloatingPlaceholder == 'true'"
|
||||
changes:
|
||||
- kind: 'addParameter'
|
||||
index: 14
|
||||
name: 'floatingLabelBehavior'
|
||||
style: optional_named
|
||||
argumentValue:
|
||||
expression: '{% FloatingLabelBehavior %}.auto'
|
||||
requiredIf: "hasFloatingPlaceholder == 'true'"
|
||||
variables:
|
||||
FloatingLabelBehavior:
|
||||
kind: 'import'
|
||||
uris: [ 'material.dart' ]
|
||||
name: 'FloatingLabelBehavior'
|
||||
- kind: 'removeParameter'
|
||||
name: 'hasFloatingPlaceholder'
|
||||
- if: "hasFloatingPlaceholder == 'false'"
|
||||
changes:
|
||||
- kind: 'addParameter'
|
||||
index: 14
|
||||
name: 'floatingLabelBehavior'
|
||||
style: optional_named
|
||||
argumentValue:
|
||||
expression: '{% FloatingLabelBehavior %}.never'
|
||||
requiredIf: "hasFloatingPlaceholder == 'false'"
|
||||
variables:
|
||||
FloatingLabelBehavior:
|
||||
kind: 'import'
|
||||
uris: [ 'material.dart' ]
|
||||
name: 'FloatingLabelBehavior'
|
||||
- kind: 'removeParameter'
|
||||
name: 'hasFloatingPlaceholder'
|
||||
variables:
|
||||
hasFloatingPlaceholder:
|
||||
kind: 'fragment'
|
||||
value: 'arguments[hasFloatingPlaceholder]'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/46115
|
||||
- title: "Migrate to 'floatingLabelBehavior'"
|
||||
date: 2020-01-15
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
field: 'hasFloatingPlaceholder'
|
||||
inClass: 'InputDecoration'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'floatingLabelBehavior'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/46115
|
||||
- title: "Rename to 'floatingLabelBehavior'"
|
||||
date: 2020-01-15
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
constructor: 'collapsed'
|
||||
inClass: 'InputDecoration'
|
||||
oneOf:
|
||||
- if: "hasFloatingPlaceholder == 'true'"
|
||||
changes:
|
||||
- kind: 'addParameter'
|
||||
index: 14
|
||||
name: 'floatingLabelBehavior'
|
||||
style: optional_named
|
||||
argumentValue:
|
||||
expression: '{% FloatingLabelBehavior %}.auto'
|
||||
requiredIf: "hasFloatingPlaceholder == 'true'"
|
||||
variables:
|
||||
FloatingLabelBehavior:
|
||||
kind: 'import'
|
||||
uris: [ 'material.dart' ]
|
||||
name: 'FloatingLabelBehavior'
|
||||
- kind: 'removeParameter'
|
||||
name: 'hasFloatingPlaceholder'
|
||||
- if: "hasFloatingPlaceholder == 'false'"
|
||||
changes:
|
||||
- kind: 'addParameter'
|
||||
index: 14
|
||||
name: 'floatingLabelBehavior'
|
||||
style: optional_named
|
||||
argumentValue:
|
||||
expression: '{% FloatingLabelBehavior %}.never'
|
||||
requiredIf: "hasFloatingPlaceholder == 'false'"
|
||||
variables:
|
||||
FloatingLabelBehavior:
|
||||
kind: 'import'
|
||||
uris: [ 'material.dart' ]
|
||||
name: 'FloatingLabelBehavior'
|
||||
- kind: 'removeParameter'
|
||||
name: 'hasFloatingPlaceholder'
|
||||
variables:
|
||||
hasFloatingPlaceholder:
|
||||
kind: 'fragment'
|
||||
value: 'arguments[hasFloatingPlaceholder]'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/46115
|
||||
- title: "Rename to 'floatingLabelBehavior'"
|
||||
date: 2020-01-15
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
constructor: ''
|
||||
inClass: 'InputDecoration'
|
||||
oneOf:
|
||||
- if: "hasFloatingPlaceholder == 'true'"
|
||||
changes:
|
||||
- kind: 'addParameter'
|
||||
index: 14
|
||||
name: 'floatingLabelBehavior'
|
||||
style: optional_named
|
||||
argumentValue:
|
||||
expression: '{% FloatingLabelBehavior %}.auto'
|
||||
requiredIf: "hasFloatingPlaceholder == 'true'"
|
||||
variables:
|
||||
FloatingLabelBehavior:
|
||||
kind: 'import'
|
||||
uris: [ 'material.dart' ]
|
||||
name: 'FloatingLabelBehavior'
|
||||
- kind: 'removeParameter'
|
||||
name: 'hasFloatingPlaceholder'
|
||||
- if: "hasFloatingPlaceholder == 'false'"
|
||||
changes:
|
||||
- kind: 'addParameter'
|
||||
index: 14
|
||||
name: 'floatingLabelBehavior'
|
||||
style: optional_named
|
||||
argumentValue:
|
||||
expression: '{% FloatingLabelBehavior %}.never'
|
||||
requiredIf: "hasFloatingPlaceholder == 'false'"
|
||||
variables:
|
||||
FloatingLabelBehavior:
|
||||
kind: 'import'
|
||||
uris: [ 'material.dart' ]
|
||||
name: 'FloatingLabelBehavior'
|
||||
- kind: 'removeParameter'
|
||||
name: 'hasFloatingPlaceholder'
|
||||
variables:
|
||||
hasFloatingPlaceholder:
|
||||
kind: 'fragment'
|
||||
value: 'arguments[hasFloatingPlaceholder]'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/96115
|
||||
- title: "Migrate 'Icons.pie_chart_outlined' to 'Icons.pie_chart_outline'"
|
||||
date: 2022-01-04
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
field: 'pie_chart_outlined'
|
||||
inClass: 'Icons'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'pie_chart_outline'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/96957
|
||||
- title: "Migrate to 'thumbVisibility'"
|
||||
date: 2022-01-20
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
field: 'isAlwaysShown'
|
||||
inClass: 'Scrollbar'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'thumbVisibility'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/96957
|
||||
- title: "Migrate to 'thumbVisibility'"
|
||||
date: 2022-01-20
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
constructor: ''
|
||||
inClass: 'Scrollbar'
|
||||
changes:
|
||||
- kind: 'renameParameter'
|
||||
oldName: 'isAlwaysShown'
|
||||
newName: 'thumbVisibility'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/96957
|
||||
- title: "Migrate to 'thumbVisibility'"
|
||||
date: 2022-01-20
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
field: 'isAlwaysShown'
|
||||
inClass: 'ScrollbarThemeData'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'thumbVisibility'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/96957
|
||||
- title: "Migrate to 'thumbVisibility'"
|
||||
date: 2022-01-20
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
constructor: ''
|
||||
inClass: 'ScrollbarThemeData'
|
||||
changes:
|
||||
- kind: 'renameParameter'
|
||||
oldName: 'isAlwaysShown'
|
||||
newName: 'thumbVisibility'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/96957
|
||||
- title: "Migrate to 'thumbVisibility'"
|
||||
date: 2022-01-20
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
method: 'copyWith'
|
||||
inClass: 'ScrollbarThemeData'
|
||||
changes:
|
||||
- kind: 'renameParameter'
|
||||
oldName: 'isAlwaysShown'
|
||||
newName: 'thumbVisibility'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/96174
|
||||
- title: "Migrate 'useDeleteButtonTooltip' to 'deleteButtonTooltipMessage'"
|
||||
date: 2022-01-05
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
constructor: ''
|
||||
inClass: 'Chip'
|
||||
changes:
|
||||
- kind: 'addParameter'
|
||||
index: 9
|
||||
name: 'deleteButtonTooltipMessage'
|
||||
style: optional_named
|
||||
argumentValue:
|
||||
expression: "''"
|
||||
requiredIf: "useDeleteButtonTooltip == 'false' && deleteButtonTooltipMessage == ''"
|
||||
- kind: 'removeParameter'
|
||||
name: 'useDeleteButtonTooltip'
|
||||
variables:
|
||||
useDeleteButtonTooltip:
|
||||
kind: 'fragment'
|
||||
value: 'arguments[useDeleteButtonTooltip]'
|
||||
deleteButtonTooltipMessage:
|
||||
kind: 'fragment'
|
||||
value: 'arguments[deleteButtonTooltipMessage]'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/96174
|
||||
- title: "Migrate 'useDeleteButtonTooltip' to 'deleteButtonTooltipMessage'"
|
||||
date: 2022-01-05
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
constructor: ''
|
||||
inClass: 'InputChip'
|
||||
changes:
|
||||
- kind: 'addParameter'
|
||||
index: 9
|
||||
name: 'deleteButtonTooltipMessage'
|
||||
style: optional_named
|
||||
argumentValue:
|
||||
expression: "''"
|
||||
requiredIf: "useDeleteButtonTooltip == 'false' && deleteButtonTooltipMessage == ''"
|
||||
- kind: 'removeParameter'
|
||||
name: 'useDeleteButtonTooltip'
|
||||
variables:
|
||||
useDeleteButtonTooltip:
|
||||
kind: 'fragment'
|
||||
value: 'arguments[useDeleteButtonTooltip]'
|
||||
deleteButtonTooltipMessage:
|
||||
kind: 'fragment'
|
||||
value: 'arguments[deleteButtonTooltipMessage]'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/96174
|
||||
- title: "Migrate 'useDeleteButtonTooltip' to 'deleteButtonTooltipMessage'"
|
||||
date: 2022-01-05
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
constructor: ''
|
||||
inClass: 'RawChip'
|
||||
changes:
|
||||
- kind: 'addParameter'
|
||||
index: 9
|
||||
name: 'deleteButtonTooltipMessage'
|
||||
style: optional_named
|
||||
argumentValue:
|
||||
expression: "''"
|
||||
requiredIf: "useDeleteButtonTooltip == 'false' && deleteButtonTooltipMessage == ''"
|
||||
- kind: 'removeParameter'
|
||||
name: 'useDeleteButtonTooltip'
|
||||
variables:
|
||||
useDeleteButtonTooltip:
|
||||
kind: 'fragment'
|
||||
value: 'arguments[useDeleteButtonTooltip]'
|
||||
deleteButtonTooltipMessage:
|
||||
kind: 'fragment'
|
||||
value: 'arguments[deleteButtonTooltipMessage]'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/96174
|
||||
- title: "Migrate 'useDeleteButtonTooltip' to 'deleteButtonTooltipMessage'"
|
||||
date: 2022-01-05
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
field: 'useDeleteButtonTooltip'
|
||||
inClass: 'Chip'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'deleteButtonTooltipMessage'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/96174
|
||||
- title: "Migrate 'useDeleteButtonTooltip' to 'deleteButtonTooltipMessage'"
|
||||
date: 2022-01-05
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
field: 'useDeleteButtonTooltip'
|
||||
inClass: 'InputChip'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'deleteButtonTooltipMessage'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/96174
|
||||
- title: "Migrate 'useDeleteButtonTooltip' to 'deleteButtonTooltipMessage'"
|
||||
date: 2022-01-05
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
field: 'useDeleteButtonTooltip'
|
||||
inClass: 'RawChip'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'deleteButtonTooltipMessage'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/105291
|
||||
- title: "Migrate 'ElevatedButton.styleFrom(primary)' to 'ElevatedButton.styleFrom(backgroundColor)'"
|
||||
date: 2022-05-27
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
method: 'styleFrom'
|
||||
inClass: 'ElevatedButton'
|
||||
changes:
|
||||
- kind: 'addParameter'
|
||||
index: 1
|
||||
name: 'backgroundColor'
|
||||
style: optional_named
|
||||
argumentValue:
|
||||
expression: '{% primary %}'
|
||||
requiredIf: "primary != ''"
|
||||
- kind: 'removeParameter'
|
||||
name: 'primary'
|
||||
variables:
|
||||
primary:
|
||||
kind: 'fragment'
|
||||
value: 'arguments[primary]'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/105291
|
||||
- title: "Migrate 'ElevatedButton.styleFrom(onPrimary)' to 'ElevatedButton.styleFrom(foregroundColor)'"
|
||||
date: 2022-05-27
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
method: 'styleFrom'
|
||||
inClass: 'ElevatedButton'
|
||||
changes:
|
||||
- kind: 'addParameter'
|
||||
index: 0
|
||||
name: 'foregroundColor'
|
||||
style: optional_named
|
||||
argumentValue:
|
||||
expression: '{% onPrimary %}'
|
||||
requiredIf: "onPrimary != ''"
|
||||
- kind: 'removeParameter'
|
||||
name: 'onPrimary'
|
||||
variables:
|
||||
onPrimary:
|
||||
kind: 'fragment'
|
||||
value: 'arguments[onPrimary]'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/105291
|
||||
- title: "Migrate 'ElevatedButton.styleFrom(onSurface)' to 'ElevatedButton.styleFrom(disabledForegroundColor)'"
|
||||
date: 2022-05-27
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
method: 'styleFrom'
|
||||
inClass: 'ElevatedButton'
|
||||
changes:
|
||||
- kind: 'addParameter'
|
||||
index: 2
|
||||
name: 'disabledForegroundColor'
|
||||
style: optional_named
|
||||
argumentValue:
|
||||
expression: '{% onSurface %}.withOpacity(0.38)'
|
||||
requiredIf: "onSurface != ''"
|
||||
- kind: 'addParameter'
|
||||
index: 3
|
||||
name: 'disabledBackgroundColor'
|
||||
style: optional_named
|
||||
argumentValue:
|
||||
expression: '{% onSurface %}.withOpacity(0.12)'
|
||||
requiredIf: "onSurface != ''"
|
||||
- kind: 'removeParameter'
|
||||
name: 'onSurface'
|
||||
variables:
|
||||
onSurface:
|
||||
kind: 'fragment'
|
||||
value: 'arguments[onSurface]'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/105291
|
||||
- title: "Migrate 'OutlinedButton.styleFrom(primary)' to 'OutlinedButton.styleFrom(foregroundColor)'"
|
||||
date: 2022-05-27
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
method: 'styleFrom'
|
||||
inClass: 'OutlinedButton'
|
||||
changes:
|
||||
- kind: 'addParameter'
|
||||
index: 0
|
||||
name: 'foregroundColor'
|
||||
style: optional_named
|
||||
argumentValue:
|
||||
expression: '{% primary %}'
|
||||
requiredIf: "primary != ''"
|
||||
- kind: 'removeParameter'
|
||||
name: 'primary'
|
||||
variables:
|
||||
primary:
|
||||
kind: 'fragment'
|
||||
value: 'arguments[primary]'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/105291
|
||||
- title: "Migrate 'OutlinedButton.styleFrom(onSurface)' to 'OutlinedButton.styleFrom(disabledForeground)'"
|
||||
date: 2022-05-27
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
method: 'styleFrom'
|
||||
inClass: 'OutlinedButton'
|
||||
changes:
|
||||
- kind: 'addParameter'
|
||||
index: 2
|
||||
name: 'disabledForegroundColor'
|
||||
style: optional_named
|
||||
argumentValue:
|
||||
expression: '{% onSurface %}.withOpacity(0.38)'
|
||||
requiredIf: "onSurface != ''"
|
||||
- kind: 'removeParameter'
|
||||
name: 'onSurface'
|
||||
variables:
|
||||
onSurface:
|
||||
kind: 'fragment'
|
||||
value: 'arguments[onSurface]'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/105291
|
||||
- title: "Migrate 'TextButton.styleFrom(primary)' to 'TextButton.styleFrom(foregroundColor)'"
|
||||
date: 2022-05-27
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
method: 'styleFrom'
|
||||
inClass: 'TextButton'
|
||||
changes:
|
||||
- kind: 'addParameter'
|
||||
index: 0
|
||||
name: 'foregroundColor'
|
||||
style: optional_named
|
||||
argumentValue:
|
||||
expression: '{% primary %}'
|
||||
requiredIf: "primary != ''"
|
||||
- kind: 'removeParameter'
|
||||
name: 'primary'
|
||||
variables:
|
||||
primary:
|
||||
kind: 'fragment'
|
||||
value: 'arguments[primary]'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/105291
|
||||
- title: "Migrate 'TextButton.styleFrom(onSurface)' to 'TextButton.styleFrom(disabledForeground)'"
|
||||
date: 2022-05-27
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
method: 'styleFrom'
|
||||
inClass: 'TextButton'
|
||||
changes:
|
||||
- kind: 'addParameter'
|
||||
index: 2
|
||||
name: 'disabledForegroundColor'
|
||||
style: optional_named
|
||||
argumentValue:
|
||||
expression: '{% onSurface %}.withOpacity(0.38)'
|
||||
requiredIf: "onSurface != ''"
|
||||
- kind: 'removeParameter'
|
||||
name: 'onSurface'
|
||||
variables:
|
||||
onSurface:
|
||||
kind: 'fragment'
|
||||
value: 'arguments[onSurface]'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/78588
|
||||
- title: "Migrate to 'buildOverscrollIndicator'"
|
||||
date: 2021-03-18
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
method: 'buildViewportChrome'
|
||||
inClass: 'MaterialScrollBehavior'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'buildOverscrollIndicator'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/111706
|
||||
- title: "Migrate to 'trackVisibility'"
|
||||
date: 2022-09-15
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
field: 'showTrackOnHover'
|
||||
inClass: 'Scrollbar'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'trackVisibility'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/111706
|
||||
- title: "Migrate to 'trackVisibility'"
|
||||
date: 2022-09-15
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
constructor: ''
|
||||
inClass: 'Scrollbar'
|
||||
changes:
|
||||
- kind: 'renameParameter'
|
||||
oldName: 'showTrackOnHover'
|
||||
newName: 'trackVisibility'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/111706
|
||||
- title: "Migrate to 'trackVisibility'"
|
||||
date: 2022-09-15
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
field: 'showTrackOnHover'
|
||||
inClass: 'ScrollbarThemeData'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'trackVisibility'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/111706
|
||||
- title: "Migrate to 'thumbVisibility'"
|
||||
date: 2022-09-15
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
constructor: ''
|
||||
inClass: 'ScrollbarThemeData'
|
||||
changes:
|
||||
- kind: 'renameParameter'
|
||||
oldName: 'showTrackOnHover'
|
||||
newName: 'trackVisibility'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/111706
|
||||
- title: "Migrate to 'trackVisibility'"
|
||||
date: 2022-09-15
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
method: 'copyWith'
|
||||
inClass: 'ScrollbarThemeData'
|
||||
changes:
|
||||
- kind: 'renameParameter'
|
||||
oldName: 'showTrackOnHover'
|
||||
newName: 'trackVisibility'
|
||||
|
||||
# Before adding a new fix: read instructions at the top of this file.
|
||||
@@ -0,0 +1,150 @@
|
||||
# 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/docs/development/tools/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 SliverAppBar from the Material library. *
|
||||
# For fixes to
|
||||
# * AppBar: fix_app_bar.yaml
|
||||
# * AppBarTheme: fix_app_bar_theme.yaml
|
||||
# * ColorScheme: fix_color_scheme.yaml
|
||||
# * Material (general): fix_material.yaml
|
||||
# * TextTheme: fix_text_theme.yaml
|
||||
# * ThemeData: fix_theme_data.yaml
|
||||
version: 1
|
||||
transforms:
|
||||
# Changes made in https://github.com/flutter/flutter/pull/86198
|
||||
- title: "Migrate to 'systemOverlayStyle'"
|
||||
date: 2020-07-12
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
constructor: ''
|
||||
inClass: 'SliverAppBar'
|
||||
oneOf:
|
||||
- if: "brightness == 'Brightness.dark'"
|
||||
changes:
|
||||
- kind: 'addParameter'
|
||||
index: 34
|
||||
name: 'systemOverlayStyle'
|
||||
style: optional_named
|
||||
argumentValue:
|
||||
expression: '{% SystemUiOverlayStyle %}.light'
|
||||
requiredIf: "brightness == 'Brightness.dark'"
|
||||
variables:
|
||||
SystemUiOverlayStyle:
|
||||
kind: 'import'
|
||||
uris: [ 'services.dart' ]
|
||||
name: 'SystemUiOverlayStyle'
|
||||
- kind: 'removeParameter'
|
||||
name: 'brightness'
|
||||
- if: "brightness == 'Brightness.light'"
|
||||
changes:
|
||||
- kind: 'addParameter'
|
||||
index: 34
|
||||
name: 'systemOverlayStyle'
|
||||
style: optional_named
|
||||
argumentValue:
|
||||
expression: '{% SystemUiOverlayStyle %}.dark'
|
||||
requiredIf: "brightness == 'Brightness.light'"
|
||||
variables:
|
||||
SystemUiOverlayStyle:
|
||||
kind: 'import'
|
||||
uris: [ 'services.dart' ]
|
||||
name: 'SystemUiOverlayStyle'
|
||||
- kind: 'removeParameter'
|
||||
name: 'brightness'
|
||||
variables:
|
||||
brightness:
|
||||
kind: 'fragment'
|
||||
value: 'arguments[brightness]'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/86198
|
||||
- title: "Migrate to 'systemOverlayStyle'"
|
||||
date: 2021-07-12
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
field: 'brightness'
|
||||
inClass: 'SliverAppBar'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'systemOverlayStyle'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/86198
|
||||
- title: "Migrate to 'toolbarTextStyle' & 'titleTextStyle'"
|
||||
date: 2020-07-12
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
constructor: ''
|
||||
inClass: 'SliverAppBar'
|
||||
changes:
|
||||
- kind: 'addParameter'
|
||||
index: 32
|
||||
name: 'toolbarTextStyle'
|
||||
style: optional_named
|
||||
argumentValue:
|
||||
expression: '{% textTheme %}.bodyText2'
|
||||
requiredIf: "textTheme != ''"
|
||||
- kind: 'addParameter'
|
||||
index: 33
|
||||
name: 'titleTextStyle'
|
||||
style: optional_named
|
||||
argumentValue:
|
||||
expression: '{% textTheme %}.headline6'
|
||||
requiredIf: "textTheme != ''"
|
||||
- kind: 'removeParameter'
|
||||
name: 'textTheme'
|
||||
variables:
|
||||
textTheme:
|
||||
kind: 'fragment'
|
||||
value: 'arguments[textTheme]'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/86198
|
||||
- title: "Migrate to 'toolbarTextStyle'"
|
||||
date: 2021-07-12
|
||||
# TODO(Piinks): Add tests when `bulkApply:false` testing is supported, https://github.com/dart-lang/sdk/issues/44639
|
||||
bulkApply: false
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
field: 'textTheme'
|
||||
inClass: 'SliverAppBar'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'toolbarTextStyle'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/86198
|
||||
- title: "Migrate to 'titleTextStyle'"
|
||||
date: 2021-07-12
|
||||
# TODO(Piinks): Add tests when `bulkApply:false` testing is supported, https://github.com/dart-lang/sdk/issues/44639
|
||||
bulkApply: false
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
field: 'textTheme'
|
||||
inClass: 'SliverAppBar'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'titleTextStyle'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/86198
|
||||
- title: "Remove 'backwardsCompatibility'"
|
||||
date: 2020-07-12
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
constructor: ''
|
||||
inClass: 'SliverAppBar'
|
||||
changes:
|
||||
- kind: 'removeParameter'
|
||||
name: 'backwardsCompatibility'
|
||||
|
||||
# Before adding a new fix: read instructions at the top of this file.
|
||||
455
packages/flutter/lib/fix_data/fix_material/fix_text_theme.yaml
Normal file
455
packages/flutter/lib/fix_data/fix_material/fix_text_theme.yaml
Normal file
@@ -0,0 +1,455 @@
|
||||
# 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/docs/development/tools/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 the TextTheme class from the Material library. *
|
||||
# For fixes to
|
||||
# * AppBar: fix_app_bar.yaml
|
||||
# * AppBarTheme: fix_app_bar_theme.yaml
|
||||
# * ColorScheme: fix_color_scheme.yaml
|
||||
# * Material (general): fix_material.yaml
|
||||
# * SliverAppBar: fix_sliver_app_bar.yaml
|
||||
# * ThemeData: fix_theme_data.yaml
|
||||
version: 1
|
||||
transforms:
|
||||
# Changes made in https://github.com/flutter/flutter/pull/48547
|
||||
- title: "Rename to 'headline1'"
|
||||
date: 2020-01-24
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
getter: display4
|
||||
inClass: 'TextTheme'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'headline1'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/48547
|
||||
- title: "Rename to 'headline2'"
|
||||
date: 2020-01-24
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
getter: display3
|
||||
inClass: 'TextTheme'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'headline2'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/48547
|
||||
- title: "Rename to 'headline3'"
|
||||
date: 2020-01-24
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
getter: display2
|
||||
inClass: 'TextTheme'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'headline3'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/48547
|
||||
- title: "Rename to 'headline4'"
|
||||
date: 2020-01-24
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
getter: display1
|
||||
inClass: 'TextTheme'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'headline4'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/48547
|
||||
- title: "Rename to 'headline5'"
|
||||
date: 2020-01-24
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
getter: headline
|
||||
inClass: 'TextTheme'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'headline5'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/48547
|
||||
- title: "Rename to 'headline6'"
|
||||
date: 2020-01-24
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
getter: title
|
||||
inClass: 'TextTheme'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'headline6'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/48547
|
||||
- title: "Rename to 'subtitle1'"
|
||||
date: 2020-01-24
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
getter: subhead
|
||||
inClass: 'TextTheme'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'subtitle1'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/48547
|
||||
- title: "Rename to 'bodyText1'"
|
||||
date: 2020-01-24
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
getter: body2
|
||||
inClass: 'TextTheme'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'bodyText1'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/48547
|
||||
- title: "Rename to 'bodyText2'"
|
||||
date: 2020-01-24
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
getter: body1
|
||||
inClass: 'TextTheme'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'bodyText2'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/48547
|
||||
- title: "Rename to 'subtitle2'"
|
||||
date: 2020-01-24
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
getter: subtitle
|
||||
inClass: 'TextTheme'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'subtitle2'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/48547
|
||||
- title: 'Rename arguments'
|
||||
date: 2020-01-24
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
constructor: ''
|
||||
inClass: 'TextTheme'
|
||||
changes:
|
||||
- kind: 'renameParameter'
|
||||
oldName: 'display4'
|
||||
newName: 'headline1'
|
||||
- kind: 'renameParameter'
|
||||
oldName: 'display3'
|
||||
newName: 'headline2'
|
||||
- kind: 'renameParameter'
|
||||
oldName: 'display2'
|
||||
newName: 'headline3'
|
||||
- kind: 'renameParameter'
|
||||
oldName: 'display1'
|
||||
newName: 'headline4'
|
||||
- kind: 'renameParameter'
|
||||
oldName: 'headline'
|
||||
newName: 'headline5'
|
||||
- kind: 'renameParameter'
|
||||
oldName: 'title'
|
||||
newName: 'headline6'
|
||||
- kind: 'renameParameter'
|
||||
oldName: 'subhead'
|
||||
newName: 'subtitle1'
|
||||
- kind: 'renameParameter'
|
||||
oldName: 'subtitle'
|
||||
newName: 'subtitle2'
|
||||
- kind: 'renameParameter'
|
||||
oldName: 'body2'
|
||||
newName: 'bodyText1'
|
||||
- kind: 'renameParameter'
|
||||
oldName: 'body1'
|
||||
newName: 'bodyText2'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/48547
|
||||
- title: 'Rename arguments'
|
||||
date: 2020-01-24
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
method: 'copyWith'
|
||||
inClass: 'TextTheme'
|
||||
changes:
|
||||
- kind: 'renameParameter'
|
||||
oldName: 'display4'
|
||||
newName: 'headline1'
|
||||
- kind: 'renameParameter'
|
||||
oldName: 'display3'
|
||||
newName: 'headline2'
|
||||
- kind: 'renameParameter'
|
||||
oldName: 'display2'
|
||||
newName: 'headline3'
|
||||
- kind: 'renameParameter'
|
||||
oldName: 'display1'
|
||||
newName: 'headline4'
|
||||
- kind: 'renameParameter'
|
||||
oldName: 'headline'
|
||||
newName: 'headline5'
|
||||
- kind: 'renameParameter'
|
||||
oldName: 'title'
|
||||
newName: 'headline6'
|
||||
- kind: 'renameParameter'
|
||||
oldName: 'subhead'
|
||||
newName: 'subtitle1'
|
||||
- kind: 'renameParameter'
|
||||
oldName: 'subtitle'
|
||||
newName: 'subtitle2'
|
||||
- kind: 'renameParameter'
|
||||
oldName: 'body2'
|
||||
newName: 'bodyText1'
|
||||
- kind: 'renameParameter'
|
||||
oldName: 'body1'
|
||||
newName: 'bodyText2'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/109817
|
||||
- title: "Rename to 'displayLarge'"
|
||||
date: 2022-08-18
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
getter: headline1
|
||||
inClass: 'TextTheme'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'displayLarge'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/109817
|
||||
- title: "Rename to 'displayMedium'"
|
||||
date: 2022-08-18
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
getter: headline2
|
||||
inClass: 'TextTheme'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'displayMedium'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/109817
|
||||
- title: "Rename to 'displaySmall'"
|
||||
date: 2022-08-18
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
getter: headline3
|
||||
inClass: 'TextTheme'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'displaySmall'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/109817
|
||||
- title: "Rename to 'headlineMedium'"
|
||||
date: 2022-08-18
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
getter: headline4
|
||||
inClass: 'TextTheme'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'headlineMedium'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/109817
|
||||
- title: "Rename to 'headlineSmall'"
|
||||
date: 2022-08-18
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
getter: headline5
|
||||
inClass: 'TextTheme'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'headlineSmall'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/109817
|
||||
- title: "Rename to 'titleLarge'"
|
||||
date: 2022-08-18
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
getter: headline6
|
||||
inClass: 'TextTheme'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'titleLarge'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/109817
|
||||
- title: "Rename to 'titleMedium'"
|
||||
date: 2022-08-18
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
getter: subtitle1
|
||||
inClass: 'TextTheme'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'titleMedium'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/109817
|
||||
- title: "Rename to 'titleSmall'"
|
||||
date: 2022-08-18
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
getter: subtitle2
|
||||
inClass: 'TextTheme'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'titleSmall'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/109817
|
||||
- title: "Rename to 'bodyLarge'"
|
||||
date: 2022-08-18
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
getter: bodyText1
|
||||
inClass: 'TextTheme'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'bodyLarge'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/109817
|
||||
- title: "Rename to 'bodyMedium'"
|
||||
date: 2022-08-18
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
getter: bodyText2
|
||||
inClass: 'TextTheme'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'bodyMedium'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/109817
|
||||
- title: "Rename to 'bodySmall'"
|
||||
date: 2022-08-18
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
getter: caption
|
||||
inClass: 'TextTheme'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'bodySmall'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/109817
|
||||
- title: "Rename to 'labelLarge'"
|
||||
date: 2022-08-18
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
getter: button
|
||||
inClass: 'TextTheme'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'labelLarge'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/109817
|
||||
- title: "Rename to 'labelSmall'"
|
||||
date: 2022-08-18
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
getter: overline
|
||||
inClass: 'TextTheme'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'labelSmall'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/109817
|
||||
- title: 'Rename arguments'
|
||||
date: 2022-08-18
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
constructor: ''
|
||||
inClass: 'TextTheme'
|
||||
changes:
|
||||
- kind: 'renameParameter'
|
||||
oldName: 'headline1'
|
||||
newName: 'displayLarge'
|
||||
- kind: 'renameParameter'
|
||||
oldName: 'headline2'
|
||||
newName: 'displayMedium'
|
||||
- kind: 'renameParameter'
|
||||
oldName: 'headline3'
|
||||
newName: 'displaySmall'
|
||||
- kind: 'renameParameter'
|
||||
oldName: 'headline4'
|
||||
newName: 'headlineMedium'
|
||||
- kind: 'renameParameter'
|
||||
oldName: 'headline5'
|
||||
newName: 'headlineSmall'
|
||||
- kind: 'renameParameter'
|
||||
oldName: 'headline6'
|
||||
newName: 'titleLarge'
|
||||
- kind: 'renameParameter'
|
||||
oldName: 'subtitle1'
|
||||
newName: 'titleMedium'
|
||||
- kind: 'renameParameter'
|
||||
oldName: 'subtitle2'
|
||||
newName: 'titleSmall'
|
||||
- kind: 'renameParameter'
|
||||
oldName: 'bodyText1'
|
||||
newName: 'bodyLarge'
|
||||
- kind: 'renameParameter'
|
||||
oldName: 'bodyText2'
|
||||
newName: 'bodyMedium'
|
||||
- kind: 'renameParameter'
|
||||
oldName: 'caption'
|
||||
newName: 'bodySmall'
|
||||
- kind: 'renameParameter'
|
||||
oldName: 'button'
|
||||
newName: 'labelLarge'
|
||||
- kind: 'renameParameter'
|
||||
oldName: 'overline'
|
||||
newName: 'labelSmall'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/109817
|
||||
- title: 'Rename arguments'
|
||||
date: 2022-08-18
|
||||
element:
|
||||
uris: [ 'material.dart' ]
|
||||
method: 'copyWith'
|
||||
inClass: 'TextTheme'
|
||||
changes:
|
||||
- kind: 'renameParameter'
|
||||
oldName: 'headline1'
|
||||
newName: 'displayLarge'
|
||||
- kind: 'renameParameter'
|
||||
oldName: 'headline2'
|
||||
newName: 'displayMedium'
|
||||
- kind: 'renameParameter'
|
||||
oldName: 'headline3'
|
||||
newName: 'displaySmall'
|
||||
- kind: 'renameParameter'
|
||||
oldName: 'headline4'
|
||||
newName: 'headlineMedium'
|
||||
- kind: 'renameParameter'
|
||||
oldName: 'headline5'
|
||||
newName: 'headlineSmall'
|
||||
- kind: 'renameParameter'
|
||||
oldName: 'headline6'
|
||||
newName: 'titleLarge'
|
||||
- kind: 'renameParameter'
|
||||
oldName: 'subtitle1'
|
||||
newName: 'titleMedium'
|
||||
- kind: 'renameParameter'
|
||||
oldName: 'subtitle2'
|
||||
newName: 'titleSmall'
|
||||
- kind: 'renameParameter'
|
||||
oldName: 'bodyText1'
|
||||
newName: 'bodyLarge'
|
||||
- kind: 'renameParameter'
|
||||
oldName: 'bodyText2'
|
||||
newName: 'bodyMedium'
|
||||
- kind: 'renameParameter'
|
||||
oldName: 'caption'
|
||||
newName: 'bodySmall'
|
||||
- kind: 'renameParameter'
|
||||
oldName: 'button'
|
||||
newName: 'labelLarge'
|
||||
- kind: 'renameParameter'
|
||||
oldName: 'overline'
|
||||
newName: 'labelSmall'
|
||||
|
||||
# Before adding a new fix: read instructions at the top of this file.
|
||||
1690
packages/flutter/lib/fix_data/fix_material/fix_theme_data.yaml
Normal file
1690
packages/flutter/lib/fix_data/fix_material/fix_theme_data.yaml
Normal file
File diff suppressed because it is too large
Load Diff
113
packages/flutter/lib/fix_data/fix_rendering.yaml
Normal file
113
packages/flutter/lib/fix_data/fix_rendering.yaml
Normal file
@@ -0,0 +1,113 @@
|
||||
# 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/docs/development/tools/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 from the Rendering library. *
|
||||
version: 1
|
||||
transforms:
|
||||
# Changes made in https://github.com/flutter/flutter/pull/66305
|
||||
- title: "Migrate to 'clipBehavior'"
|
||||
date: 2020-09-22
|
||||
element:
|
||||
uris: [ 'rendering.dart' ]
|
||||
field: 'overflow'
|
||||
inClass: 'RenderStack'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'clipBehavior'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/66305
|
||||
- title: "Migrate to 'clipBehavior'"
|
||||
date: 2020-09-22
|
||||
element:
|
||||
uris: [ 'rendering.dart' ]
|
||||
constructor: ''
|
||||
inClass: 'RenderStack'
|
||||
oneOf:
|
||||
- if: "overflow == 'Overflow.clip'"
|
||||
changes:
|
||||
- kind: 'addParameter'
|
||||
index: 0
|
||||
name: 'clipBehavior'
|
||||
style: optional_named
|
||||
argumentValue:
|
||||
expression: 'Clip.hardEdge'
|
||||
requiredIf: "overflow == 'Overflow.clip'"
|
||||
- kind: 'removeParameter'
|
||||
name: 'overflow'
|
||||
- if: "overflow == 'Overflow.visible'"
|
||||
changes:
|
||||
- kind: 'addParameter'
|
||||
index: 0
|
||||
name: 'clipBehavior'
|
||||
style: optional_named
|
||||
argumentValue:
|
||||
expression: 'Clip.none'
|
||||
requiredIf: "overflow == 'Overflow.visible'"
|
||||
- kind: 'removeParameter'
|
||||
name: 'overflow'
|
||||
variables:
|
||||
overflow:
|
||||
kind: 'fragment'
|
||||
value: 'arguments[overflow]'
|
||||
|
||||
# Changes made in https://flutter.dev/docs/release/breaking-changes/clip-behavior
|
||||
- title: "Migrate to 'clipBehavior'"
|
||||
date: 2020-08-20
|
||||
element:
|
||||
uris: [ 'rendering.dart' ]
|
||||
field: 'clipToSize'
|
||||
inClass: 'RenderListWheelViewport'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'clipBehavior'
|
||||
|
||||
# Changes made in https://flutter.dev/docs/release/breaking-changes/clip-behavior
|
||||
- title: "Migrate to 'clipBehavior'"
|
||||
date: 2020-08-20
|
||||
element:
|
||||
uris: [ 'rendering.dart' ]
|
||||
constructor: ''
|
||||
inClass: 'RenderListWheelViewport'
|
||||
oneOf:
|
||||
- if: "clipToSize == 'true'"
|
||||
changes:
|
||||
- kind: 'addParameter'
|
||||
index: 13
|
||||
name: 'clipBehavior'
|
||||
style: optional_named
|
||||
argumentValue:
|
||||
expression: 'Clip.hardEdge'
|
||||
requiredIf: "clipToSize == 'true'"
|
||||
- kind: 'removeParameter'
|
||||
name: 'clipToSize'
|
||||
- if: "clipToSize == 'false'"
|
||||
changes:
|
||||
- kind: 'addParameter'
|
||||
index: 13
|
||||
name: 'clipBehavior'
|
||||
style: optional_named
|
||||
argumentValue:
|
||||
expression: 'Clip.none'
|
||||
requiredIf: "clipToSize == 'false'"
|
||||
- kind: 'removeParameter'
|
||||
name: 'clipToSize'
|
||||
variables:
|
||||
clipToSize:
|
||||
kind: 'fragment'
|
||||
value: 'arguments[clipToSize]'
|
||||
|
||||
# Before adding a new fix: read instructions at the top of this file.
|
||||
73
packages/flutter/lib/fix_data/fix_services.yaml
Normal file
73
packages/flutter/lib/fix_data/fix_services.yaml
Normal file
@@ -0,0 +1,73 @@
|
||||
# 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/docs/development/tools/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 from the Services library. *
|
||||
version: 1
|
||||
transforms:
|
||||
# Changes made in https://github.com/flutter/flutter/pull/60320
|
||||
- title: "Migrate to 'viewId'"
|
||||
date: 2020-07-05
|
||||
element:
|
||||
uris: [ 'services.dart' ]
|
||||
getter: id
|
||||
inClass: 'TextureAndroidViewController'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'viewId'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/60320
|
||||
- title: "Migrate to 'viewId'"
|
||||
date: 2020-07-05
|
||||
element:
|
||||
uris: [ 'services.dart' ]
|
||||
getter: id
|
||||
inClass: 'SurfaceAndroidViewController'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'viewId'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/81303
|
||||
- title: "Migrate to 'setEnabledSystemUIMode'"
|
||||
date: 2021-06-08
|
||||
element:
|
||||
uris: [ 'services.dart' ]
|
||||
method: 'setEnabledSystemUIOverlays'
|
||||
inClass: 'SystemChrome'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'setEnabledSystemUIMode'
|
||||
- kind: 'removeParameter'
|
||||
index: 0
|
||||
- kind: 'addParameter'
|
||||
index: 0
|
||||
name: 'mode'
|
||||
style: required_positional
|
||||
argumentValue:
|
||||
expression: 'SystemUiMode.manual'
|
||||
- kind: 'addParameter'
|
||||
index: 1
|
||||
name: 'overlays'
|
||||
style: optional_named
|
||||
argumentValue:
|
||||
expression: '{% overlays %}'
|
||||
requiredIf: "overlays != ''"
|
||||
variables:
|
||||
overlays:
|
||||
kind: 'fragment'
|
||||
value: 'arguments[0]'
|
||||
|
||||
# Before adding a new fix: read instructions at the top of this file.
|
||||
24
packages/flutter/lib/fix_data/fix_template.yaml
Normal file
24
packages/flutter/lib/fix_data/fix_template.yaml
Normal file
@@ -0,0 +1,24 @@
|
||||
# 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/docs/development/tools/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 CLASS] from the <XXX> library. *
|
||||
|
||||
# Uncomment version & transforms, and follow with fixes.
|
||||
# version: 1
|
||||
# transforms:
|
||||
|
||||
# Before adding a new fix: read instructions at the top of this file.
|
||||
83
packages/flutter/lib/fix_data/fix_widgets/fix_actions.yaml
Normal file
83
packages/flutter/lib/fix_data/fix_widgets/fix_actions.yaml
Normal file
@@ -0,0 +1,83 @@
|
||||
# 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/docs/development/tools/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 Actions from the Widgets library. *
|
||||
# For fixes to
|
||||
# * BuildContext: fix_build_context.yaml
|
||||
# * Element: fix_element.yaml
|
||||
# * ListWheelScrollView: fix_list_wheel_scroll_view.yaml
|
||||
# * Widgets (general): fix_widgets.yaml
|
||||
version: 1
|
||||
transforms:
|
||||
# Changes made in https://github.com/flutter/flutter/pull/68921.
|
||||
- title: "Migrate from 'nullOk'"
|
||||
date: 2021-01-27
|
||||
element:
|
||||
uris: [ 'widgets.dart', 'material.dart', 'cupertino.dart' ]
|
||||
method: 'invoke'
|
||||
inClass: 'Actions'
|
||||
oneOf:
|
||||
- if: "nullOk == 'true'"
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'maybeInvoke'
|
||||
- kind: 'removeParameter'
|
||||
name: 'nullOk'
|
||||
- if: "nullOk == 'false'"
|
||||
changes:
|
||||
- kind: 'removeParameter'
|
||||
name: 'nullOk'
|
||||
variables:
|
||||
nullOk:
|
||||
kind: 'fragment'
|
||||
value: 'arguments[nullOk]'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/68921.
|
||||
- title: "Migrate from 'nullOk'"
|
||||
date: 2021-01-27
|
||||
element:
|
||||
uris: [ 'widgets.dart', 'material.dart', 'cupertino.dart' ]
|
||||
method: 'find'
|
||||
inClass: 'Actions'
|
||||
oneOf:
|
||||
- if: "nullOk == 'true'"
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'maybeFind'
|
||||
- kind: 'removeParameter'
|
||||
name: 'nullOk'
|
||||
- if: "nullOk == 'false'"
|
||||
changes:
|
||||
- kind: 'removeParameter'
|
||||
name: 'nullOk'
|
||||
variables:
|
||||
nullOk:
|
||||
kind: 'fragment'
|
||||
value: 'arguments[nullOk]'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/68921.
|
||||
- title: "Migrate from 'nullOk'"
|
||||
date: 2021-01-27
|
||||
element:
|
||||
uris: [ 'widgets.dart', 'material.dart', 'cupertino.dart' ]
|
||||
method: 'handler'
|
||||
inClass: 'Actions'
|
||||
changes:
|
||||
- kind: 'removeParameter'
|
||||
name: 'nullOk'
|
||||
|
||||
# Before adding a new fix: read instructions at the top of this file.
|
||||
169
packages/flutter/lib/fix_data/fix_widgets/fix_build_context.yaml
Normal file
169
packages/flutter/lib/fix_data/fix_widgets/fix_build_context.yaml
Normal file
@@ -0,0 +1,169 @@
|
||||
# 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/docs/development/tools/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 BuildContext from the Widgets library. *
|
||||
# For fixes to
|
||||
# * Actions: fix_actions.yaml
|
||||
# * Element: fix_element.yaml
|
||||
# * ListWheelScrollView: fix_list_wheel_scroll_view.yaml
|
||||
# * Widgets (general): fix_widgets.yaml
|
||||
version: 1
|
||||
transforms:
|
||||
# Change made in https://github.com/flutter/flutter/pull/44189.
|
||||
- title: "Rename to 'dependOnInheritedElement'"
|
||||
date: 2019-11-22
|
||||
element:
|
||||
uris: [ 'widgets.dart', 'material.dart', 'cupertino.dart' ]
|
||||
inClass: 'BuildContext'
|
||||
method: 'inheritFromElement'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'dependOnInheritedElement'
|
||||
|
||||
# Change made in https://github.com/flutter/flutter/pull/44189.
|
||||
- title: "Migrate to 'dependOnInheritedWidgetOfExactType'"
|
||||
date: 2019-11-22
|
||||
element:
|
||||
uris: [ 'widgets.dart', 'material.dart', 'cupertino.dart' ]
|
||||
inClass: 'BuildContext'
|
||||
method: 'inheritFromWidgetOfExactType'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'dependOnInheritedWidgetOfExactType'
|
||||
- kind: 'removeParameter'
|
||||
index: 0
|
||||
- kind: 'addTypeParameter'
|
||||
index: 0
|
||||
name: 'T'
|
||||
argumentValue:
|
||||
expression: '{% type %}'
|
||||
variables:
|
||||
type:
|
||||
kind: fragment
|
||||
value: 'arguments[0]'
|
||||
|
||||
# Change made in https://github.com/flutter/flutter/pull/44189.
|
||||
- title: "Migrate to 'getElementForInheritedWidgetOfExactType'"
|
||||
date: 2019-11-22
|
||||
element:
|
||||
uris: [ 'widgets.dart', 'material.dart', 'cupertino.dart' ]
|
||||
inClass: 'BuildContext'
|
||||
method: 'ancestorInheritedElementForWidgetOfExactType'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'getElementForInheritedWidgetOfExactType'
|
||||
- kind: 'removeParameter'
|
||||
index: 0
|
||||
- kind: 'addTypeParameter'
|
||||
index: 0
|
||||
name: 'T'
|
||||
argumentValue:
|
||||
expression: '{% type %}'
|
||||
variables:
|
||||
type:
|
||||
kind: fragment
|
||||
value: 'arguments[0]'
|
||||
|
||||
# Change made in https://github.com/flutter/flutter/pull/44189.
|
||||
- title: "Migrate to 'findAncestorWidgetOfExactType'"
|
||||
date: 2019-11-22
|
||||
element:
|
||||
uris: [ 'widgets.dart', 'material.dart', 'cupertino.dart' ]
|
||||
inClass: 'BuildContext'
|
||||
method: 'ancestorWidgetOfExactType'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'findAncestorWidgetOfExactType'
|
||||
- kind: 'removeParameter'
|
||||
index: 0
|
||||
- kind: 'addTypeParameter'
|
||||
index: 0
|
||||
name: 'T'
|
||||
argumentValue:
|
||||
expression: '{% type %}'
|
||||
variables:
|
||||
type:
|
||||
kind: fragment
|
||||
value: 'arguments[0]'
|
||||
|
||||
# Change made in https://github.com/flutter/flutter/pull/44189.
|
||||
- title: "Migrate to 'findAncestorStateOfType'"
|
||||
date: 2019-11-22
|
||||
element:
|
||||
uris: [ 'widgets.dart', 'material.dart', 'cupertino.dart' ]
|
||||
inClass: 'BuildContext'
|
||||
method: 'ancestorStateOfType'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'findAncestorStateOfType'
|
||||
- kind: 'removeParameter'
|
||||
index: 0
|
||||
- kind: 'addTypeParameter'
|
||||
index: 0
|
||||
name: 'T'
|
||||
argumentValue:
|
||||
expression: '{% type %}'
|
||||
variables:
|
||||
type:
|
||||
kind: fragment
|
||||
value: 'arguments[0].typeArguments[0]'
|
||||
|
||||
# Change made in https://github.com/flutter/flutter/pull/44189.
|
||||
- title: "Migrate to 'rootAncestorStateOfType'"
|
||||
date: 2019-11-22
|
||||
element:
|
||||
uris: [ 'widgets.dart', 'material.dart', 'cupertino.dart' ]
|
||||
inClass: 'BuildContext'
|
||||
method: 'rootAncestorStateOfType'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'findRootAncestorStateOfType'
|
||||
- kind: 'removeParameter'
|
||||
index: 0
|
||||
- kind: 'addTypeParameter'
|
||||
index: 0
|
||||
name: 'T'
|
||||
argumentValue:
|
||||
expression: '{% type %}'
|
||||
variables:
|
||||
type:
|
||||
kind: fragment
|
||||
value: 'arguments[0].typeArguments[0]'
|
||||
|
||||
# Change made in https://github.com/flutter/flutter/pull/44189.
|
||||
- title: "Migrate to 'ancestorRenderObjectOfType'"
|
||||
date: 2019-11-22
|
||||
element:
|
||||
uris: [ 'widgets.dart', 'material.dart', 'cupertino.dart' ]
|
||||
inClass: 'BuildContext'
|
||||
method: 'ancestorRenderObjectOfType'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'findAncestorRenderObjectOfType'
|
||||
- kind: 'removeParameter'
|
||||
index: 0
|
||||
- kind: 'addTypeParameter'
|
||||
index: 0
|
||||
name: 'T'
|
||||
argumentValue:
|
||||
expression: '{% type %}'
|
||||
variables:
|
||||
type:
|
||||
kind: fragment
|
||||
value: 'arguments[0].typeArguments[0]'
|
||||
|
||||
# Before adding a new fix: read instructions at the top of this file.
|
||||
169
packages/flutter/lib/fix_data/fix_widgets/fix_element.yaml
Normal file
169
packages/flutter/lib/fix_data/fix_widgets/fix_element.yaml
Normal file
@@ -0,0 +1,169 @@
|
||||
# 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/docs/development/tools/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 Element from the Widgets library. *
|
||||
# For fixes to
|
||||
# * Actions: fix_actions.yaml
|
||||
# * BuildContext: fix_build_context.yaml
|
||||
# * ListWheelScrollView: fix_list_wheel_scroll_view.yaml
|
||||
# * Widgets (general): fix_widgets.yaml
|
||||
version: 1
|
||||
transforms:
|
||||
# Changes made in https://github.com/flutter/flutter/pull/44189.
|
||||
- title: "Rename to 'dependOnInheritedElement'"
|
||||
date: 2020-12-23
|
||||
element:
|
||||
uris: [ 'widgets.dart', 'material.dart', 'cupertino.dart' ]
|
||||
method: 'inheritFromElement'
|
||||
inClass: 'Element'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'dependOnInheritedElement'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/44189.
|
||||
- title: "Rename to 'dependOnInheritedWidgetOfExactType'"
|
||||
date: 2020-09-14
|
||||
element:
|
||||
uris: [ 'widgets.dart', 'material.dart', 'cupertino.dart' ]
|
||||
method: 'inheritFromWidgetOfExactType'
|
||||
inClass: 'Element'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'dependOnInheritedWidgetOfExactType'
|
||||
- kind: 'addTypeParameter'
|
||||
index: 0
|
||||
name: 'T'
|
||||
argumentValue:
|
||||
expression: '{% type %}'
|
||||
variables:
|
||||
type:
|
||||
kind: 'fragment'
|
||||
value: 'arguments[0]'
|
||||
- kind: 'removeParameter'
|
||||
index: 0
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/44189.
|
||||
- title: "Rename to 'getElementForInheritedWidgetOfExactType'"
|
||||
date: 2020-09-14
|
||||
element:
|
||||
uris: [ 'widgets.dart', 'material.dart', 'cupertino.dart' ]
|
||||
method: 'ancestorInheritedElementForWidgetOfExactType'
|
||||
inClass: 'Element'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'getElementForInheritedWidgetOfExactType'
|
||||
- kind: 'addTypeParameter'
|
||||
index: 0
|
||||
name: 'T'
|
||||
argumentValue:
|
||||
expression: '{% type %}'
|
||||
variables:
|
||||
type:
|
||||
kind: 'fragment'
|
||||
value: 'arguments[0]'
|
||||
- kind: 'removeParameter'
|
||||
index: 0
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/44189.
|
||||
- title: "Rename to 'getElementForInheritedWidgetOfExactType'"
|
||||
date: 2020-12-23
|
||||
element:
|
||||
uris: [ 'widgets.dart', 'material.dart', 'cupertino.dart' ]
|
||||
method: 'ancestorWidgetOfExactType'
|
||||
inClass: 'Element'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'findAncestorWidgetOfExactType'
|
||||
- kind: 'addTypeParameter'
|
||||
index: 0
|
||||
name: 'T'
|
||||
argumentValue:
|
||||
expression: '{% type %}'
|
||||
variables:
|
||||
type:
|
||||
kind: 'fragment'
|
||||
value: 'arguments[0]'
|
||||
- kind: 'removeParameter'
|
||||
index: 0
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/44189.
|
||||
- title: "Rename to 'findAncestorStateOfType'"
|
||||
date: 2020-12-23
|
||||
element:
|
||||
uris: [ 'widgets.dart', 'material.dart', 'cupertino.dart' ]
|
||||
method: 'ancestorStateOfType'
|
||||
inClass: 'Element'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'findAncestorStateOfType'
|
||||
- kind: 'addTypeParameter'
|
||||
index: 0
|
||||
name: 'T'
|
||||
argumentValue:
|
||||
expression: '{% type %}'
|
||||
variables:
|
||||
type:
|
||||
kind: 'fragment'
|
||||
value: 'arguments[0].typeArguments[0]'
|
||||
- kind: 'removeParameter'
|
||||
index: 0
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/44189.
|
||||
- title: "Rename to 'findAncestorRenderObjectOfType'"
|
||||
date: 2020-12-23
|
||||
element:
|
||||
uris: [ 'widgets.dart', 'material.dart', 'cupertino.dart' ]
|
||||
method: 'ancestorRenderObjectOfType'
|
||||
inClass: 'Element'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'findAncestorRenderObjectOfType'
|
||||
- kind: 'addTypeParameter'
|
||||
index: 0
|
||||
name: 'T'
|
||||
argumentValue:
|
||||
expression: '{% type %}'
|
||||
variables:
|
||||
type:
|
||||
kind: 'fragment'
|
||||
value: 'arguments[0].typeArguments[0]'
|
||||
- kind: 'removeParameter'
|
||||
index: 0
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/44189.
|
||||
- title: "Rename to 'findAncestorRenderObjectOfType'"
|
||||
date: 2020-12-23
|
||||
element:
|
||||
uris: [ 'widgets.dart', 'material.dart', 'cupertino.dart' ]
|
||||
method: 'rootAncestorStateOfType'
|
||||
inClass: 'Element'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'findRootAncestorStateOfType'
|
||||
- kind: 'addTypeParameter'
|
||||
index: 0
|
||||
name: 'T'
|
||||
argumentValue:
|
||||
expression: '{% type %}'
|
||||
variables:
|
||||
type:
|
||||
kind: 'fragment'
|
||||
value: 'arguments[0].typeArguments[0]'
|
||||
- kind: 'removeParameter'
|
||||
index: 0
|
||||
|
||||
# Before adding a new fix: read instructions at the top of this file.
|
||||
@@ -0,0 +1,107 @@
|
||||
# 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/docs/development/tools/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 ListWheelScrollView from the Widgets library. *
|
||||
# For fixes to
|
||||
# * Actions: fix_actions.yaml
|
||||
# * BuildContext: fix_build_context.yaml
|
||||
# * Element: fix_element.yaml
|
||||
# * Widgets (general): fix_widgets.yaml
|
||||
version: 1
|
||||
transforms:
|
||||
# Changes made in https://flutter.dev/docs/release/breaking-changes/clip-behavior
|
||||
- title: "Migrate to 'clipBehavior'"
|
||||
date: 2020-08-20
|
||||
element:
|
||||
uris: [ 'widgets.dart', 'material.dart', 'cupertino.dart' ]
|
||||
constructor: 'useDelegate'
|
||||
inClass: 'ListWheelScrollView'
|
||||
oneOf:
|
||||
- if: "clipToSize == 'true'"
|
||||
changes:
|
||||
- kind: 'addParameter'
|
||||
index: 13
|
||||
name: 'clipBehavior'
|
||||
style: optional_named
|
||||
argumentValue:
|
||||
expression: 'Clip.hardEdge'
|
||||
requiredIf: "clipToSize == 'true'"
|
||||
- kind: 'removeParameter'
|
||||
name: 'clipToSize'
|
||||
- if: "clipToSize == 'false'"
|
||||
changes:
|
||||
- kind: 'addParameter'
|
||||
index: 13
|
||||
name: 'clipBehavior'
|
||||
style: optional_named
|
||||
argumentValue:
|
||||
expression: 'Clip.none'
|
||||
requiredIf: "clipToSize == 'false'"
|
||||
- kind: 'removeParameter'
|
||||
name: 'clipToSize'
|
||||
variables:
|
||||
clipToSize:
|
||||
kind: 'fragment'
|
||||
value: 'arguments[clipToSize]'
|
||||
|
||||
# Changes made in https://flutter.dev/docs/release/breaking-changes/clip-behavior
|
||||
- title: "Migrate to 'clipBehavior'"
|
||||
date: 2020-08-20
|
||||
element:
|
||||
uris: [ 'widgets.dart', 'material.dart', 'cupertino.dart' ]
|
||||
field: 'clipToSize'
|
||||
inClass: 'ListWheelScrollView'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'clipBehavior'
|
||||
|
||||
# Changes made in https://flutter.dev/docs/release/breaking-changes/clip-behavior
|
||||
- title: "Migrate to 'clipBehavior'"
|
||||
date: 2020-08-20
|
||||
element:
|
||||
uris: [ 'widgets.dart', 'material.dart', 'cupertino.dart' ]
|
||||
constructor: ''
|
||||
inClass: 'ListWheelScrollView'
|
||||
oneOf:
|
||||
- if: "clipToSize == 'true'"
|
||||
changes:
|
||||
- kind: 'addParameter'
|
||||
index: 13
|
||||
name: 'clipBehavior'
|
||||
style: optional_named
|
||||
argumentValue:
|
||||
expression: 'Clip.hardEdge'
|
||||
requiredIf: "clipToSize == 'true'"
|
||||
- kind: 'removeParameter'
|
||||
name: 'clipToSize'
|
||||
- if: "clipToSize == 'false'"
|
||||
changes:
|
||||
- kind: 'addParameter'
|
||||
index: 13
|
||||
name: 'clipBehavior'
|
||||
style: optional_named
|
||||
argumentValue:
|
||||
expression: 'Clip.none'
|
||||
requiredIf: "clipToSize == 'false'"
|
||||
- kind: 'removeParameter'
|
||||
name: 'clipToSize'
|
||||
variables:
|
||||
clipToSize:
|
||||
kind: 'fragment'
|
||||
value: 'arguments[clipToSize]'
|
||||
|
||||
# Before adding a new fix: read instructions at the top of this file.
|
||||
845
packages/flutter/lib/fix_data/fix_widgets/fix_widgets.yaml
Normal file
845
packages/flutter/lib/fix_data/fix_widgets/fix_widgets.yaml
Normal file
@@ -0,0 +1,845 @@
|
||||
# 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/docs/development/tools/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 from the Widgets library. *
|
||||
# For fixes to
|
||||
# * Actions: fix_actions.yaml
|
||||
# * BuildContext: fix_build_context.yaml
|
||||
# * Element: fix_element.yaml
|
||||
# * ListWheelScrollView: fix_list_wheel_scroll_view.yaml
|
||||
version: 1
|
||||
transforms:
|
||||
# Changes made in https://github.com/flutter/flutter/pull/87839
|
||||
- title: "Migrate to 'disallowIndicator'"
|
||||
date: 2021-08-06
|
||||
element:
|
||||
uris: [ 'widgets.dart', 'material.dart', 'cupertino.dart' ]
|
||||
method: 'disallowGlow'
|
||||
inClass: 'OverscrollIndicatorNotification'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'disallowIndicator'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/66305
|
||||
- title: "Migrate to 'clipBehavior'"
|
||||
date: 2020-09-22
|
||||
element:
|
||||
uris: [ 'widgets.dart', 'material.dart', 'cupertino.dart' ]
|
||||
field: 'overflow'
|
||||
inClass: 'Stack'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'clipBehavior'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/66305
|
||||
- title: "Migrate to 'clipBehavior'"
|
||||
date: 2020-09-22
|
||||
element:
|
||||
uris: [ 'widgets.dart', 'material.dart', 'cupertino.dart' ]
|
||||
constructor: ''
|
||||
inClass: 'Stack'
|
||||
oneOf:
|
||||
- if: "overflow == 'Overflow.clip'"
|
||||
changes:
|
||||
- kind: 'addParameter'
|
||||
index: 0
|
||||
name: 'clipBehavior'
|
||||
style: optional_named
|
||||
argumentValue:
|
||||
expression: 'Clip.hardEdge'
|
||||
requiredIf: "overflow == 'Overflow.clip'"
|
||||
- kind: 'removeParameter'
|
||||
name: 'overflow'
|
||||
- if: "overflow == 'Overflow.visible'"
|
||||
changes:
|
||||
- kind: 'addParameter'
|
||||
index: 0
|
||||
name: 'clipBehavior'
|
||||
style: optional_named
|
||||
argumentValue:
|
||||
expression: 'Clip.none'
|
||||
requiredIf: "overflow == 'Overflow.visible'"
|
||||
- kind: 'removeParameter'
|
||||
name: 'overflow'
|
||||
variables:
|
||||
overflow:
|
||||
kind: 'fragment'
|
||||
value: 'arguments[overflow]'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/45941
|
||||
- title: "Rename to 'deferFirstFrame'"
|
||||
date: 2020-12-23
|
||||
element:
|
||||
uris: [ 'widgets.dart', 'material.dart', 'cupertino.dart' ]
|
||||
method: 'deferFirstFrameReport'
|
||||
inClass: 'WidgetsBinding'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'deferFirstFrame'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/45941
|
||||
- title: "Rename to 'allowFirstFrame'"
|
||||
date: 2020-12-23
|
||||
element:
|
||||
uris: [ 'widgets.dart', 'material.dart', 'cupertino.dart' ]
|
||||
method: 'allowFirstFrameReport'
|
||||
inClass: 'WidgetsBinding'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'allowFirstFrame'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/44189
|
||||
- title: "Rename to 'dependOnInheritedElement'"
|
||||
date: 2020-12-23
|
||||
element:
|
||||
uris: [ 'widgets.dart', 'material.dart', 'cupertino.dart' ]
|
||||
method: 'inheritFromElement'
|
||||
inClass: 'StatefulElement'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'dependOnInheritedElement'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/61648
|
||||
- title: "Migrate to 'autovalidateMode'"
|
||||
date: 2020-09-02
|
||||
element:
|
||||
uris: [ 'widgets.dart', 'material.dart', 'cupertino.dart' ]
|
||||
field: 'autovalidate'
|
||||
inClass: 'Form'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'autovalidateMode'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/61648
|
||||
- title: "Migrate to 'autovalidateMode'"
|
||||
date: 2020-09-02
|
||||
element:
|
||||
uris: [ 'widgets.dart', 'material.dart', 'cupertino.dart' ]
|
||||
constructor: ''
|
||||
inClass: 'Form'
|
||||
oneOf:
|
||||
- if: "autovalidate == 'true'"
|
||||
changes:
|
||||
- kind: 'addParameter'
|
||||
index: 0
|
||||
name: 'autovalidateMode'
|
||||
style: optional_named
|
||||
argumentValue:
|
||||
expression: 'AutovalidateMode.always'
|
||||
requiredIf: "autovalidate == 'true'"
|
||||
- kind: 'removeParameter'
|
||||
name: 'autovalidate'
|
||||
- if: "autovalidate == 'false'"
|
||||
changes:
|
||||
- kind: 'addParameter'
|
||||
index: 0
|
||||
name: 'autovalidateMode'
|
||||
style: optional_named
|
||||
argumentValue:
|
||||
expression: 'AutovalidateMode.disabled'
|
||||
requiredIf: "autovalidate == 'false'"
|
||||
- kind: 'removeParameter'
|
||||
name: 'autovalidate'
|
||||
variables:
|
||||
autovalidate:
|
||||
kind: 'fragment'
|
||||
value: 'arguments[autovalidate]'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/61648
|
||||
- title: "Migrate to 'autovalidateMode'"
|
||||
date: 2020-09-02
|
||||
element:
|
||||
uris: [ 'widgets.dart', 'material.dart', 'cupertino.dart' ]
|
||||
field: 'autovalidate'
|
||||
inClass: 'FormField'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'autovalidateMode'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/61648
|
||||
- title: "Migrate to 'autovalidateMode'"
|
||||
date: 2020-09-02
|
||||
element:
|
||||
uris: [ 'widgets.dart', 'material.dart', 'cupertino.dart' ]
|
||||
constructor: ''
|
||||
inClass: 'FormField'
|
||||
oneOf:
|
||||
- if: "autovalidate == 'true'"
|
||||
changes:
|
||||
- kind: 'addParameter'
|
||||
index: 0
|
||||
name: 'autovalidateMode'
|
||||
style: optional_named
|
||||
argumentValue:
|
||||
expression: 'AutovalidateMode.always'
|
||||
requiredIf: "autovalidate == 'true'"
|
||||
- kind: 'removeParameter'
|
||||
name: 'autovalidate'
|
||||
- if: "autovalidate == 'false'"
|
||||
changes:
|
||||
- kind: 'addParameter'
|
||||
index: 0
|
||||
name: 'autovalidateMode'
|
||||
style: optional_named
|
||||
argumentValue:
|
||||
expression: 'AutovalidateMode.disabled'
|
||||
requiredIf: "autovalidate == 'false'"
|
||||
- kind: 'removeParameter'
|
||||
name: 'autovalidate'
|
||||
variables:
|
||||
autovalidate:
|
||||
kind: 'fragment'
|
||||
value: 'arguments[autovalidate]'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/70726.
|
||||
- title: "Migrate from 'nullOk'"
|
||||
date: 2021-01-27
|
||||
element:
|
||||
uris: [ 'widgets.dart', 'material.dart', 'cupertino.dart' ]
|
||||
method: 'of'
|
||||
inClass: 'Navigator'
|
||||
oneOf:
|
||||
- if: "nullOk == 'true'"
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'maybeOf'
|
||||
- kind: 'removeParameter'
|
||||
name: 'nullOk'
|
||||
- if: "nullOk == 'false'"
|
||||
changes:
|
||||
- kind: 'removeParameter'
|
||||
name: 'nullOk'
|
||||
variables:
|
||||
nullOk:
|
||||
kind: 'fragment'
|
||||
value: 'arguments[nullOk]'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/68736.
|
||||
- title: "Migrate from 'nullOk'"
|
||||
date: 2021-01-27
|
||||
element:
|
||||
uris: [ 'widgets.dart', 'material.dart', 'cupertino.dart' ]
|
||||
method: 'of'
|
||||
inClass: 'MediaQuery'
|
||||
oneOf:
|
||||
- if: "nullOk == 'true'"
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'maybeOf'
|
||||
- kind: 'removeParameter'
|
||||
name: 'nullOk'
|
||||
- if: "nullOk == 'false'"
|
||||
changes:
|
||||
- kind: 'removeParameter'
|
||||
name: 'nullOk'
|
||||
variables:
|
||||
nullOk:
|
||||
kind: 'fragment'
|
||||
value: 'arguments[nullOk]'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/68925.
|
||||
- title: "Migrate from 'nullOk'"
|
||||
date: 2021-01-27
|
||||
element:
|
||||
uris: [ 'widgets.dart', 'material.dart', 'cupertino.dart' ]
|
||||
method: 'of'
|
||||
inClass: 'SliverAnimatedList'
|
||||
oneOf:
|
||||
- if: "nullOk == 'true'"
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'maybeOf'
|
||||
- kind: 'removeParameter'
|
||||
name: 'nullOk'
|
||||
- if: "nullOk == 'false'"
|
||||
changes:
|
||||
- kind: 'removeParameter'
|
||||
name: 'nullOk'
|
||||
variables:
|
||||
nullOk:
|
||||
kind: 'fragment'
|
||||
value: 'arguments[nullOk]'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/68925.
|
||||
- title: "Migrate from 'nullOk'"
|
||||
date: 2021-01-27
|
||||
element:
|
||||
uris: [ 'widgets.dart', 'material.dart', 'cupertino.dart' ]
|
||||
method: 'of'
|
||||
inClass: 'AnimatedList'
|
||||
oneOf:
|
||||
- if: "nullOk == 'true'"
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'maybeOf'
|
||||
- kind: 'removeParameter'
|
||||
name: 'nullOk'
|
||||
- if: "nullOk == 'false'"
|
||||
changes:
|
||||
- kind: 'removeParameter'
|
||||
name: 'nullOk'
|
||||
variables:
|
||||
nullOk:
|
||||
kind: 'fragment'
|
||||
value: 'arguments[nullOk]'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/68921.
|
||||
- title: "Migrate from 'nullOk'"
|
||||
date: 2021-01-27
|
||||
element:
|
||||
uris: [ 'widgets.dart', 'material.dart', 'cupertino.dart' ]
|
||||
method: 'of'
|
||||
inClass: 'Shortcuts'
|
||||
oneOf:
|
||||
- if: "nullOk == 'true'"
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'maybeOf'
|
||||
- kind: 'removeParameter'
|
||||
name: 'nullOk'
|
||||
- if: "nullOk == 'false'"
|
||||
changes:
|
||||
- kind: 'removeParameter'
|
||||
name: 'nullOk'
|
||||
variables:
|
||||
nullOk:
|
||||
kind: 'fragment'
|
||||
value: 'arguments[nullOk]'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/68917.
|
||||
- title: "Migrate from 'nullOk'"
|
||||
date: 2021-01-27
|
||||
element:
|
||||
uris: [ 'widgets.dart', 'material.dart', 'cupertino.dart' ]
|
||||
method: 'of'
|
||||
inClass: 'Focus'
|
||||
oneOf:
|
||||
- if: "nullOk == 'true'"
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'maybeOf'
|
||||
- kind: 'removeParameter'
|
||||
name: 'nullOk'
|
||||
- if: "nullOk == 'false'"
|
||||
changes:
|
||||
- kind: 'removeParameter'
|
||||
name: 'nullOk'
|
||||
variables:
|
||||
nullOk:
|
||||
kind: 'fragment'
|
||||
value: 'arguments[nullOk]'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/68917.
|
||||
- title: "Migrate from 'nullOk'"
|
||||
date: 2021-01-27
|
||||
element:
|
||||
uris: [ 'widgets.dart', 'material.dart', 'cupertino.dart' ]
|
||||
method: 'of'
|
||||
inClass: 'FocusTraversalGroup'
|
||||
oneOf:
|
||||
- if: "nullOk == 'true'"
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'maybeOf'
|
||||
- kind: 'removeParameter'
|
||||
name: 'nullOk'
|
||||
- if: "nullOk == 'false'"
|
||||
changes:
|
||||
- kind: 'removeParameter'
|
||||
name: 'nullOk'
|
||||
variables:
|
||||
nullOk:
|
||||
kind: 'fragment'
|
||||
value: 'arguments[nullOk]'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/68917.
|
||||
- title: "Migrate from 'nullOk'"
|
||||
date: 2021-01-27
|
||||
element:
|
||||
uris: [ 'widgets.dart', 'material.dart', 'cupertino.dart' ]
|
||||
method: 'of'
|
||||
inClass: 'FocusTraversalOrder'
|
||||
oneOf:
|
||||
- if: "nullOk == 'true'"
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'maybeOf'
|
||||
- kind: 'removeParameter'
|
||||
name: 'nullOk'
|
||||
- if: "nullOk == 'false'"
|
||||
changes:
|
||||
- kind: 'removeParameter'
|
||||
name: 'nullOk'
|
||||
variables:
|
||||
nullOk:
|
||||
kind: 'fragment'
|
||||
value: 'arguments[nullOk]'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/68911.
|
||||
- title: "Migrate from 'nullOk'"
|
||||
date: 2021-01-27
|
||||
element:
|
||||
uris: [ 'widgets.dart', 'material.dart', 'cupertino.dart' ]
|
||||
method: 'localeOf'
|
||||
inClass: 'Localizations'
|
||||
oneOf:
|
||||
- if: "nullOk == 'true'"
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'maybeLocaleOf'
|
||||
- kind: 'removeParameter'
|
||||
name: 'nullOk'
|
||||
- if: "nullOk == 'false'"
|
||||
changes:
|
||||
- kind: 'removeParameter'
|
||||
name: 'nullOk'
|
||||
variables:
|
||||
nullOk:
|
||||
kind: 'fragment'
|
||||
value: 'arguments[nullOk]'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/68910.
|
||||
- title: "Migrate from 'nullOk'"
|
||||
date: 2021-01-27
|
||||
element:
|
||||
uris: [ 'widgets.dart', 'material.dart', 'cupertino.dart' ]
|
||||
method: 'of'
|
||||
inClass: 'Router'
|
||||
oneOf:
|
||||
- if: "nullOk == 'true'"
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'maybeOf'
|
||||
- kind: 'removeParameter'
|
||||
name: 'nullOk'
|
||||
- if: "nullOk == 'false'"
|
||||
changes:
|
||||
- kind: 'removeParameter'
|
||||
name: 'nullOk'
|
||||
variables:
|
||||
nullOk:
|
||||
kind: 'fragment'
|
||||
value: 'arguments[nullOk]'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/59127
|
||||
- title: "Migrate to 'label'"
|
||||
date: 2020-07-09
|
||||
element:
|
||||
uris: [ 'widgets.dart', 'material.dart', 'cupertino.dart' ]
|
||||
field: 'title'
|
||||
inClass: 'BottomNavigationBarItem'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'label'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/59127
|
||||
- title: "Migrate to 'label'"
|
||||
date: 2020-07-09
|
||||
element:
|
||||
uris: [ 'widgets.dart', 'material.dart', 'cupertino.dart' ]
|
||||
constructor: ''
|
||||
inClass: 'BottomNavigationBarItem'
|
||||
changes:
|
||||
- kind: 'renameParameter'
|
||||
oldName: 'title'
|
||||
newName: 'label'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/79160
|
||||
- title: "Migrate to 'dragAnchorStrategy'"
|
||||
date: 2021-04-05
|
||||
element:
|
||||
uris: [ 'widgets.dart', 'material.dart', 'cupertino.dart' ]
|
||||
field: 'dragAnchor'
|
||||
inClass: 'Draggable'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'dragAnchorStrategy'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/79160
|
||||
- title: "Migrate to 'dragAnchorStrategy'"
|
||||
date: 2021-04-05
|
||||
element:
|
||||
uris: [ 'widgets.dart', 'material.dart', 'cupertino.dart' ]
|
||||
constructor: ''
|
||||
inClass: 'Draggable'
|
||||
oneOf:
|
||||
- if: "dragAnchor == 'DragAnchor.child'"
|
||||
changes:
|
||||
- kind: 'addParameter'
|
||||
index: 9
|
||||
name: 'dragAnchorStrategy'
|
||||
style: optional_named
|
||||
argumentValue:
|
||||
expression: 'childDragAnchorStrategy'
|
||||
requiredIf: "dragAnchor == 'DragAnchor.child'"
|
||||
- kind: 'removeParameter'
|
||||
name: 'dragAnchor'
|
||||
- if: "dragAnchor == 'DragAnchor.pointer'"
|
||||
changes:
|
||||
- kind: 'addParameter'
|
||||
index: 9
|
||||
name: 'dragAnchorStrategy'
|
||||
style: optional_named
|
||||
argumentValue:
|
||||
expression: 'pointerDragAnchorStrategy'
|
||||
requiredIf: "dragAnchor == 'DragAnchor.pointer'"
|
||||
- kind: 'removeParameter'
|
||||
name: 'dragAnchor'
|
||||
variables:
|
||||
dragAnchor:
|
||||
kind: 'fragment'
|
||||
value: 'arguments[dragAnchor]'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/79160
|
||||
- title: "Migrate to 'dragAnchorStrategy'"
|
||||
date: 2021-04-05
|
||||
element:
|
||||
uris: [ 'widgets.dart', 'material.dart', 'cupertino.dart' ]
|
||||
field: 'dragAnchor'
|
||||
inClass: 'LongPressDraggable'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'dragAnchorStrategy'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/79160
|
||||
- title: "Migrate to 'dragAnchorStrategy'"
|
||||
date: 2021-04-05
|
||||
element:
|
||||
uris: [ 'widgets.dart', 'material.dart', 'cupertino.dart' ]
|
||||
constructor: ''
|
||||
inClass: 'LongPressDraggable'
|
||||
oneOf:
|
||||
- if: "dragAnchor == 'DragAnchor.child'"
|
||||
changes:
|
||||
- kind: 'addParameter'
|
||||
index: 9
|
||||
name: 'dragAnchorStrategy'
|
||||
style: optional_named
|
||||
argumentValue:
|
||||
expression: 'childDragAnchorStrategy'
|
||||
requiredIf: "dragAnchor == 'DragAnchor.child'"
|
||||
- kind: 'removeParameter'
|
||||
name: 'dragAnchor'
|
||||
- if: "dragAnchor == 'DragAnchor.pointer'"
|
||||
changes:
|
||||
- kind: 'addParameter'
|
||||
index: 9
|
||||
name: 'dragAnchorStrategy'
|
||||
style: optional_named
|
||||
argumentValue:
|
||||
expression: 'pointerDragAnchorStrategy'
|
||||
requiredIf: "dragAnchor == 'DragAnchor.pointer'"
|
||||
- kind: 'removeParameter'
|
||||
name: 'dragAnchor'
|
||||
variables:
|
||||
dragAnchor:
|
||||
kind: 'fragment'
|
||||
value: 'arguments[dragAnchor]'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/64254
|
||||
- title: "Migrate to 'removeRenderObjectChild'"
|
||||
date: 2020-08-20
|
||||
element:
|
||||
uris: [ 'widgets.dart', 'material.dart', 'cupertino.dart' ]
|
||||
method: 'removeChildRenderObject'
|
||||
inClass: 'RenderObjectToWidgetElement'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'removeRenderObjectChild'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/64254
|
||||
- title: "Migrate to 'moveRenderObjectChild'"
|
||||
date: 2020-08-20
|
||||
element:
|
||||
uris: [ 'widgets.dart', 'material.dart', 'cupertino.dart' ]
|
||||
method: 'moveChildRenderObject'
|
||||
inClass: 'RenderObjectToWidgetElement'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'moveRenderObjectChild'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/64254
|
||||
- title: "Migrate to 'insertRenderObjectChild'"
|
||||
date: 2020-08-20
|
||||
element:
|
||||
uris: [ 'widgets.dart', 'material.dart', 'cupertino.dart' ]
|
||||
method: 'insertChildRenderObject'
|
||||
inClass: 'RenderObjectToWidgetElement'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'insertRenderObjectChild'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/64254
|
||||
- title: "Migrate to 'removeRenderObjectChild'"
|
||||
date: 2020-08-20
|
||||
element:
|
||||
uris: [ 'widgets.dart', 'material.dart', 'cupertino.dart' ]
|
||||
method: 'removeChildRenderObject'
|
||||
inClass: 'SliverMultiBoxAdaptorElement'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'removeRenderObjectChild'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/64254
|
||||
- title: "Migrate to 'moveRenderObjectChild'"
|
||||
date: 2020-08-20
|
||||
element:
|
||||
uris: [ 'widgets.dart', 'material.dart', 'cupertino.dart' ]
|
||||
method: 'moveChildRenderObject'
|
||||
inClass: 'SliverMultiBoxAdaptorElement'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'moveRenderObjectChild'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/64254
|
||||
- title: "Migrate to 'insertRenderObjectChild'"
|
||||
date: 2020-08-20
|
||||
element:
|
||||
uris: [ 'widgets.dart', 'material.dart', 'cupertino.dart' ]
|
||||
method: 'insertChildRenderObject'
|
||||
inClass: 'SliverMultiBoxAdaptorElement'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'insertRenderObjectChild'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/64254
|
||||
- title: "Migrate to 'removeRenderObjectChild'"
|
||||
date: 2020-08-20
|
||||
element:
|
||||
uris: [ 'widgets.dart', 'material.dart', 'cupertino.dart' ]
|
||||
method: 'removeChildRenderObject'
|
||||
inClass: 'SingleChildRenderObjectElement'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'removeRenderObjectChild'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/64254
|
||||
- title: "Migrate to 'moveRenderObjectChild'"
|
||||
date: 2020-08-20
|
||||
element:
|
||||
uris: [ 'widgets.dart', 'material.dart', 'cupertino.dart' ]
|
||||
method: 'moveChildRenderObject'
|
||||
inClass: 'SingleChildRenderObjectElement'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'moveRenderObjectChild'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/64254
|
||||
- title: "Migrate to 'insertRenderObjectChild'"
|
||||
date: 2020-08-20
|
||||
element:
|
||||
uris: [ 'widgets.dart', 'material.dart', 'cupertino.dart' ]
|
||||
method: 'insertChildRenderObject'
|
||||
inClass: 'SingleChildRenderObjectElement'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'insertRenderObjectChild'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/64254
|
||||
- title: "Migrate to 'removeRenderObjectChild'"
|
||||
date: 2020-08-20
|
||||
element:
|
||||
uris: [ 'widgets.dart', 'material.dart', 'cupertino.dart' ]
|
||||
method: 'removeChildRenderObject'
|
||||
inClass: 'MultiChildRenderObjectElement'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'removeRenderObjectChild'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/64254
|
||||
- title: "Migrate to 'moveRenderObjectChild'"
|
||||
date: 2020-08-20
|
||||
element:
|
||||
uris: [ 'widgets.dart', 'material.dart', 'cupertino.dart' ]
|
||||
method: 'moveChildRenderObject'
|
||||
inClass: 'MultiChildRenderObjectElement'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'moveRenderObjectChild'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/64254
|
||||
- title: "Migrate to 'insertRenderObjectChild'"
|
||||
date: 2020-08-20
|
||||
element:
|
||||
uris: [ 'widgets.dart', 'material.dart', 'cupertino.dart' ]
|
||||
method: 'insertChildRenderObject'
|
||||
inClass: 'MultiChildRenderObjectElement'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'insertRenderObjectChild'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/64254
|
||||
- title: "Migrate to 'removeRenderObjectChild'"
|
||||
date: 2020-08-20
|
||||
element:
|
||||
uris: [ 'widgets.dart', 'material.dart', 'cupertino.dart' ]
|
||||
method: 'removeChildRenderObject'
|
||||
inClass: 'ListWheelElement'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'removeRenderObjectChild'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/64254
|
||||
- title: "Migrate to 'moveRenderObjectChild'"
|
||||
date: 2020-08-20
|
||||
element:
|
||||
uris: [ 'widgets.dart', 'material.dart', 'cupertino.dart' ]
|
||||
method: 'moveChildRenderObject'
|
||||
inClass: 'ListWheelElement'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'moveRenderObjectChild'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/64254
|
||||
- title: "Migrate to 'insertRenderObjectChild'"
|
||||
date: 2020-08-20
|
||||
element:
|
||||
uris: [ 'widgets.dart', 'material.dart', 'cupertino.dart' ]
|
||||
method: 'insertChildRenderObject'
|
||||
inClass: 'ListWheelElement'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'insertRenderObjectChild'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/64254
|
||||
- title: "Migrate to 'removeRenderObjectChild'"
|
||||
date: 2020-08-20
|
||||
element:
|
||||
uris: [ 'widgets.dart', 'material.dart', 'cupertino.dart' ]
|
||||
method: 'removeChildRenderObject'
|
||||
inClass: 'LeafRenderObjectElement'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'removeRenderObjectChild'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/64254
|
||||
- title: "Migrate to 'moveRenderObjectChild'"
|
||||
date: 2020-08-20
|
||||
element:
|
||||
uris: [ 'widgets.dart', 'material.dart', 'cupertino.dart' ]
|
||||
method: 'moveChildRenderObject'
|
||||
inClass: 'LeafRenderObjectElement'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'moveRenderObjectChild'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/64254
|
||||
- title: "Migrate to 'insertRenderObjectChild'"
|
||||
date: 2020-08-20
|
||||
element:
|
||||
uris: [ 'widgets.dart', 'material.dart', 'cupertino.dart' ]
|
||||
method: 'insertChildRenderObject'
|
||||
inClass: 'LeafRenderObjectElement'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'insertRenderObjectChild'
|
||||
|
||||
# Changes made in https://flutter.dev/docs/release/breaking-changes/clip-behavior
|
||||
- title: "Migrate to 'clipBehavior'"
|
||||
date: 2020-08-20
|
||||
element:
|
||||
uris: [ 'widgets.dart', 'material.dart', 'cupertino.dart' ]
|
||||
field: 'clipToSize'
|
||||
inClass: 'ListWheelViewport'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'clipBehavior'
|
||||
|
||||
# Changes made in https://flutter.dev/docs/release/breaking-changes/clip-behavior
|
||||
- title: "Migrate to 'clipBehavior'"
|
||||
date: 2020-08-20
|
||||
element:
|
||||
uris: [ 'widgets.dart', 'material.dart', 'cupertino.dart' ]
|
||||
constructor: ''
|
||||
inClass: 'ListWheelViewport'
|
||||
oneOf:
|
||||
- if: "clipToSize == 'true'"
|
||||
changes:
|
||||
- kind: 'addParameter'
|
||||
index: 13
|
||||
name: 'clipBehavior'
|
||||
style: optional_named
|
||||
argumentValue:
|
||||
expression: 'Clip.hardEdge'
|
||||
requiredIf: "clipToSize == 'true'"
|
||||
- kind: 'removeParameter'
|
||||
name: 'clipToSize'
|
||||
- if: "clipToSize == 'false'"
|
||||
changes:
|
||||
- kind: 'addParameter'
|
||||
index: 13
|
||||
name: 'clipBehavior'
|
||||
style: optional_named
|
||||
argumentValue:
|
||||
expression: 'Clip.none'
|
||||
requiredIf: "clipToSize == 'false'"
|
||||
- kind: 'removeParameter'
|
||||
name: 'clipToSize'
|
||||
variables:
|
||||
clipToSize:
|
||||
kind: 'fragment'
|
||||
value: 'arguments[clipToSize]'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/96957
|
||||
- title: "Migrate to 'thumbVisibility'"
|
||||
date: 2022-01-20
|
||||
element:
|
||||
uris: [ 'widgets.dart', 'material.dart', 'cupertino.dart' ]
|
||||
field: 'isAlwaysShown'
|
||||
inClass: 'RawScrollbar'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'thumbVisibility'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/96957
|
||||
- title: "Migrate to 'thumbVisibility'"
|
||||
date: 2022-01-20
|
||||
element:
|
||||
uris: [ 'widgets.dart', 'material.dart', 'cupertino.dart' ]
|
||||
constructor: ''
|
||||
inClass: 'RawScrollbar'
|
||||
changes:
|
||||
- kind: 'renameParameter'
|
||||
oldName: 'isAlwaysShown'
|
||||
newName: 'thumbVisibility'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/100381
|
||||
- title: "Migrate 'TextSelectionOverlay.fadeDuration' to SelectionOverlay.fadeDuration"
|
||||
date: 2022-03-18
|
||||
element:
|
||||
uris: [ 'widgets.dart', 'material.dart', 'cupertino.dart' ]
|
||||
field: 'fadeDuration'
|
||||
inClass: 'TextSelectionOverlay'
|
||||
changes:
|
||||
- kind: 'replacedBy'
|
||||
newElement:
|
||||
uris: [ 'widgets.dart', 'material.dart', 'cupertino.dart' ]
|
||||
field: 'fadeDuration'
|
||||
inClass: 'SelectionOverlay'
|
||||
|
||||
# Changes made in https://github.com/flutter/flutter/pull/78588
|
||||
- title: "Migrate to 'buildOverscrollIndicator'"
|
||||
date: 2021-03-18
|
||||
element:
|
||||
uris: [ 'widgets.dart', 'material.dart', 'cupertino.dart' ]
|
||||
method: 'buildViewportChrome'
|
||||
inClass: 'ScrollBehavior'
|
||||
changes:
|
||||
- kind: 'rename'
|
||||
newName: 'buildOverscrollIndicator'
|
||||
|
||||
# Before adding a new fix: read instructions at the top of this file.
|
||||
Reference in New Issue
Block a user