Unverified Commit c0b5db6c authored by Kate Lovett's avatar Kate Lovett Committed by GitHub

Add fix for BottomNavigationBarItem.title -> label (#76339)

parent 9ce3f76c
...@@ -11,6 +11,29 @@ ...@@ -11,6 +11,29 @@
version: 1 version: 1
transforms: transforms:
# Changes made in https://github.com/flutter/flutter/pull/59127
- title: "Migrate to 'label'"
date: 2020-07-09
element:
uris: [ 'material.dart', 'widgets.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: [ 'material.dart', 'widgets.dart', 'cupertino.dart' ]
constructor: ''
inClass: 'BottomNavigationBarItem'
changes:
- kind: 'renameParameter'
oldName: 'title'
newName: 'label'
# Changes made in https://github.com/flutter/flutter/pull/66043 # Changes made in https://github.com/flutter/flutter/pull/66043
- title: "Use withKind" - title: "Use withKind"
date: 2020-09-17 date: 2020-09-17
......
...@@ -123,4 +123,8 @@ void main() { ...@@ -123,4 +123,8 @@ void main() {
CupertinoTextField.borderless(maxLengthEnforced: false); CupertinoTextField.borderless(maxLengthEnforced: false);
final CupertinoTextField textField; final CupertinoTextField textField;
textField.maxLengthEnforced; textField.maxLengthEnforced;
// Changes made in https://github.com/flutter/flutter/pull/59127
const BottomNavigationBarItem bottomNavigationBarItem = BottomNavigationBarItem(title: myTitle);
bottomNavigationBarItem.title;
} }
...@@ -123,4 +123,8 @@ void main() { ...@@ -123,4 +123,8 @@ void main() {
CupertinoTextField.borderless(maxLengthEnforcement: MaxLengthEnforcement.none); CupertinoTextField.borderless(maxLengthEnforcement: MaxLengthEnforcement.none);
final CupertinoTextField textField; final CupertinoTextField textField;
textField.maxLengthEnforcement; textField.maxLengthEnforcement;
// Changes made in https://github.com/flutter/flutter/pull/59127
const BottomNavigationBarItem bottomNavigationBarItem = BottomNavigationBarItem(label: myTitle);
bottomNavigationBarItem.label;
} }
...@@ -174,4 +174,8 @@ void main() { ...@@ -174,4 +174,8 @@ void main() {
textField.maxLengthEnforced; textField.maxLengthEnforced;
TextFormField(maxLengthEnforced: true); TextFormField(maxLengthEnforced: true);
TextFormField(maxLengthEnforced: false); TextFormField(maxLengthEnforced: false);
// Changes made in https://github.com/flutter/flutter/pull/59127
const BottomNavigationBarItem bottomNavigationBarItem = BottomNavigationBarItem(title: myTitle);
bottomNavigationBarItem.title;
} }
...@@ -174,4 +174,8 @@ void main() { ...@@ -174,4 +174,8 @@ void main() {
textField.maxLengthEnforcement; textField.maxLengthEnforcement;
TextFormField(maxLengthEnforcement: MaxLengthEnforcement.enforce); TextFormField(maxLengthEnforcement: MaxLengthEnforcement.enforce);
TextFormField(maxLengthEnforcement: MaxLengthEnforcement.none); TextFormField(maxLengthEnforcement: MaxLengthEnforcement.none);
// Changes made in https://github.com/flutter/flutter/pull/59127
const BottomNavigationBarItem bottomNavigationBarItem = BottomNavigationBarItem(label: myTitle);
bottomNavigationBarItem.label;
} }
...@@ -91,4 +91,8 @@ void main() { ...@@ -91,4 +91,8 @@ void main() {
AnimatedList.of(context, nullOk: false); AnimatedList.of(context, nullOk: false);
SliverAnimatedList.of(context, nullOk: true); SliverAnimatedList.of(context, nullOk: true);
SliverAnimatedList.of(context, nullOk: false); SliverAnimatedList.of(context, nullOk: false);
// Changes made in https://github.com/flutter/flutter/pull/59127
const BottomNavigationBarItem bottomNavigationBarItem = BottomNavigationBarItem(title: myTitle);
bottomNavigationBarItem.title;
} }
...@@ -91,4 +91,8 @@ void main() { ...@@ -91,4 +91,8 @@ void main() {
AnimatedList.of(context); AnimatedList.of(context);
SliverAnimatedList.maybeOf(context); SliverAnimatedList.maybeOf(context);
SliverAnimatedList.of(context); SliverAnimatedList.of(context);
// Changes made in https://github.com/flutter/flutter/pull/59127
const BottomNavigationBarItem bottomNavigationBarItem = BottomNavigationBarItem(label: myTitle);
bottomNavigationBarItem.label;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment