|
17 | 17 |
|
18 | 18 | version: 1
|
19 | 19 | transforms:
|
| 20 | + # Changes made in https://github.com/flutter/flutter/pull/105291 |
| 21 | + - title: "Migrate 'ElevatedButton.styleFrom(primary)' to 'ElevatedButton.styleFrom(backgroundColor)'" |
| 22 | + date: 2022-05-27 |
| 23 | + element: |
| 24 | + uris: [ 'material.dart' ] |
| 25 | + method: 'styleFrom' |
| 26 | + inClass: 'ElevatedButton' |
| 27 | + changes: |
| 28 | + - kind: 'addParameter' |
| 29 | + index: 1 |
| 30 | + name: 'backgroundColor' |
| 31 | + style: optional_named |
| 32 | + argumentValue: |
| 33 | + expression: '{% primary %}' |
| 34 | + requiredIf: "primary != ''" |
| 35 | + - kind: 'removeParameter' |
| 36 | + name: 'primary' |
| 37 | + variables: |
| 38 | + primary: |
| 39 | + kind: 'fragment' |
| 40 | + value: 'arguments[primary]' |
| 41 | + |
| 42 | + # Changes made in https://github.com/flutter/flutter/pull/105291 |
| 43 | + - title: "Migrate 'ElevatedButton.styleFrom(onPrimary)' to 'ElevatedButton.styleFrom(foregroundColor)'" |
| 44 | + date: 2022-05-27 |
| 45 | + element: |
| 46 | + uris: [ 'material.dart' ] |
| 47 | + method: 'styleFrom' |
| 48 | + inClass: 'ElevatedButton' |
| 49 | + changes: |
| 50 | + - kind: 'addParameter' |
| 51 | + index: 0 |
| 52 | + name: 'foregroundColor' |
| 53 | + style: optional_named |
| 54 | + argumentValue: |
| 55 | + expression: '{% onPrimary %}' |
| 56 | + requiredIf: "onPrimary != ''" |
| 57 | + - kind: 'removeParameter' |
| 58 | + name: 'onPrimary' |
| 59 | + variables: |
| 60 | + onPrimary: |
| 61 | + kind: 'fragment' |
| 62 | + value: 'arguments[onPrimary]' |
| 63 | + |
| 64 | + # Changes made in https://github.com/flutter/flutter/pull/105291 |
| 65 | + - title: "Migrate 'ElevatedButton.styleFrom(onSurface)' to 'ElevatedButton.styleFrom(disabledForegroundColor)'" |
| 66 | + date: 2022-05-27 |
| 67 | + element: |
| 68 | + uris: [ 'material.dart' ] |
| 69 | + method: 'styleFrom' |
| 70 | + inClass: 'ElevatedButton' |
| 71 | + changes: |
| 72 | + - kind: 'addParameter' |
| 73 | + index: 2 |
| 74 | + name: 'disabledForegroundColor' |
| 75 | + style: optional_named |
| 76 | + argumentValue: |
| 77 | + expression: '{% onSurface %}.withOpacity(0.38)' |
| 78 | + requiredIf: "onSurface != ''" |
| 79 | + - kind: 'addParameter' |
| 80 | + index: 3 |
| 81 | + name: 'disabledBackgroundColor' |
| 82 | + style: optional_named |
| 83 | + argumentValue: |
| 84 | + expression: '{% onSurface %}.withOpacity(0.12)' |
| 85 | + requiredIf: "onSurface != ''" |
| 86 | + - kind: 'removeParameter' |
| 87 | + name: 'onSurface' |
| 88 | + variables: |
| 89 | + onSurface: |
| 90 | + kind: 'fragment' |
| 91 | + value: 'arguments[onSurface]' |
| 92 | + |
| 93 | + # Changes made in https://github.com/flutter/flutter/pull/105291 |
| 94 | + - title: "Migrate 'OutlinedButton.styleFrom(primary)' to 'OutlinedButton.styleFrom(foregroundColor)'" |
| 95 | + date: 2022-05-27 |
| 96 | + element: |
| 97 | + uris: [ 'material.dart' ] |
| 98 | + method: 'styleFrom' |
| 99 | + inClass: 'OutlinedButton' |
| 100 | + changes: |
| 101 | + - kind: 'addParameter' |
| 102 | + index: 0 |
| 103 | + name: 'foregroundColor' |
| 104 | + style: optional_named |
| 105 | + argumentValue: |
| 106 | + expression: '{% primary %}' |
| 107 | + requiredIf: "primary != ''" |
| 108 | + - kind: 'removeParameter' |
| 109 | + name: 'primary' |
| 110 | + variables: |
| 111 | + primary: |
| 112 | + kind: 'fragment' |
| 113 | + value: 'arguments[primary]' |
| 114 | + |
| 115 | + # Changes made in https://github.com/flutter/flutter/pull/105291 |
| 116 | + - title: "Migrate 'OutlinedButton.styleFrom(onSurface)' to 'OutlinedButton.styleFrom(disabledForeground)'" |
| 117 | + date: 2022-05-27 |
| 118 | + element: |
| 119 | + uris: [ 'material.dart' ] |
| 120 | + method: 'styleFrom' |
| 121 | + inClass: 'OutlinedButton' |
| 122 | + changes: |
| 123 | + - kind: 'addParameter' |
| 124 | + index: 2 |
| 125 | + name: 'disabledForegroundColor' |
| 126 | + style: optional_named |
| 127 | + argumentValue: |
| 128 | + expression: '{% onSurface %}.withOpacity(0.38)' |
| 129 | + requiredIf: "onSurface != ''" |
| 130 | + - kind: 'removeParameter' |
| 131 | + name: 'onSurface' |
| 132 | + variables: |
| 133 | + onSurface: |
| 134 | + kind: 'fragment' |
| 135 | + value: 'arguments[onSurface]' |
| 136 | + |
| 137 | + # Changes made in https://github.com/flutter/flutter/pull/105291 |
| 138 | + - title: "Migrate 'TextButton.styleFrom(primary)' to 'TextButton.styleFrom(foregroundColor)'" |
| 139 | + date: 2022-05-27 |
| 140 | + element: |
| 141 | + uris: [ 'material.dart' ] |
| 142 | + method: 'styleFrom' |
| 143 | + inClass: 'TextButton' |
| 144 | + changes: |
| 145 | + - kind: 'addParameter' |
| 146 | + index: 0 |
| 147 | + name: 'foregroundColor' |
| 148 | + style: optional_named |
| 149 | + argumentValue: |
| 150 | + expression: '{% primary %}' |
| 151 | + requiredIf: "primary != ''" |
| 152 | + - kind: 'removeParameter' |
| 153 | + name: 'primary' |
| 154 | + variables: |
| 155 | + primary: |
| 156 | + kind: 'fragment' |
| 157 | + value: 'arguments[primary]' |
| 158 | + |
| 159 | + # Changes made in https://github.com/flutter/flutter/pull/105291 |
| 160 | + - title: "Migrate 'TextButton.styleFrom(onSurface)' to 'TextButton.styleFrom(disabledForeground)'" |
| 161 | + date: 2022-05-27 |
| 162 | + element: |
| 163 | + uris: [ 'material.dart' ] |
| 164 | + method: 'styleFrom' |
| 165 | + inClass: 'TextButton' |
| 166 | + changes: |
| 167 | + - kind: 'addParameter' |
| 168 | + index: 2 |
| 169 | + name: 'disabledForegroundColor' |
| 170 | + style: optional_named |
| 171 | + argumentValue: |
| 172 | + expression: '{% onSurface %}.withOpacity(0.38)' |
| 173 | + requiredIf: "onSurface != ''" |
| 174 | + - kind: 'removeParameter' |
| 175 | + name: 'onSurface' |
| 176 | + variables: |
| 177 | + onSurface: |
| 178 | + kind: 'fragment' |
| 179 | + value: 'arguments[onSurface]' |
| 180 | + |
20 | 181 | # Changes made in https://github.com/flutter/flutter/pull/100381
|
21 | 182 | - title: "Migrate 'TextSelectionOverlay.fadeDuration' to SelectionOverlay.fadeDuration"
|
22 | 183 | date: 2022-03-18
|
|
0 commit comments