File tree Expand file tree Collapse file tree 3 files changed +51
-0
lines changed
lib/fix_data/fix_material Expand file tree Collapse file tree 3 files changed +51
-0
lines changed Original file line number Diff line number Diff line change 18
18
# * Fixes in this file are for InputDecoration and InputDecorationTheme from the Material library. *
19
19
version : 1
20
20
transforms :
21
+ # Changes made in https://github.com/flutter/flutter/pull/161235.
22
+ - title : " Migrate to 'maintainHintSize'"
23
+ date : 2025-01-24
24
+ element :
25
+ uris : [ 'material.dart' ]
26
+ constructor : ' '
27
+ inClass : ' InputDecoration'
28
+ changes :
29
+ - kind : ' renameParameter'
30
+ oldName : ' maintainHintHeight'
31
+ newName : ' maintainHintSize'
32
+
33
+ # Changes made in https://github.com/flutter/flutter/pull/161235.
34
+ - title : " Migrate to 'maintainHintSize'"
35
+ date : 2025-01-24
36
+ element :
37
+ uris : [ 'material.dart' ]
38
+ constructor : ' collapsed'
39
+ inClass : ' InputDecoration'
40
+ changes :
41
+ - kind : ' renameParameter'
42
+ oldName : ' maintainHintHeight'
43
+ newName : ' maintainHintSize'
44
+
45
+ # Changes made in https://github.com/flutter/flutter/pull/161235.
46
+ - title : " Migrate to 'maintainHintSize'"
47
+ date : 2025-01-24
48
+ element :
49
+ uris : [ 'material.dart' ]
50
+ field : ' maintainHintHeight'
51
+ inClass : ' InputDecoration'
52
+ changes :
53
+ - kind : ' rename'
54
+ newName : ' maintainHintSize'
55
+
21
56
# Changes made in https://github.com/flutter/flutter/pull/152486.
22
57
- title : " Remove invalid parameter"
23
58
date : 2024-07-27
Original file line number Diff line number Diff line change @@ -35,4 +35,12 @@ void main() {
35
35
floatingLabelAlignment: FloatingLabelAlignment .center,
36
36
floatingLabelBehavior: FloatingLabelBehavior .always,
37
37
);
38
+
39
+ // Changes made in https://github.com/flutter/flutter/pull/161235.
40
+ const InputDecoration decoration = InputDecoration (maintainHintHeight: false );
41
+ decoration.maintainHintHeight;
42
+
43
+ const InputDecoration decoration = InputDecoration .collapsed (
44
+ maintainHintHeight: false ,
45
+ );
38
46
}
Original file line number Diff line number Diff line change @@ -33,4 +33,12 @@ void main() {
33
33
const InputDecoration decoration = InputDecoration.collapsed(
34
34
hintText: 'Hint',
35
35
);
36
+
37
+ // Changes made in https://github.com/flutter/flutter/pull/161235.
38
+ const InputDecoration decoration = InputDecoration(maintainHintSize: false);
39
+ decoration.maintainHintSize;
40
+
41
+ const InputDecoration decoration = InputDecoration.collapsed(
42
+ maintainHintSize: false,
43
+ );
36
44
}
You can’t perform that action at this time.
0 commit comments