Expand Stack fix to more exporting libraries (#74077)

This commit is contained in:
Kate Lovett
2021-01-19 14:24:04 -06:00
committed by GitHub
parent e9a91521f3
commit 7a413e715f
5 changed files with 22 additions and 2 deletions

View File

@@ -365,7 +365,7 @@ transforms:
- title: 'Migrate to clipBehavior'
date: 2020-09-22
element:
uris: [ 'widgets.dart' ]
uris: [ 'widgets.dart', 'material.dart', 'cupertino.dart' ]
field: 'overflow'
inClass: 'Stack'
changes:
@@ -376,7 +376,7 @@ transforms:
- title: 'Migrate to clipBehavior'
date: 2020-09-22
element:
uris: [ 'widgets.dart' ]
uris: [ 'widgets.dart', 'material.dart', 'cupertino.dart' ]
constructor: ''
inClass: 'Stack'
oneOf:

View File

@@ -28,6 +28,11 @@ void main() {
buildContext.rootAncestorStateOfType(TypeMatcher<targetType>());
buildContext.ancestorRenderObjectOfType(TypeMatcher<targetType>());
// Changes made in https://github.com/flutter/flutter/pull/66305
const Stack stack = Stack(overflow: Overflow.visible);
const Stack stack = Stack(overflow: Overflow.clip);
final behavior = stack.overflow;
// Changes made in https://github.com/flutter/flutter/pull/61648
const Form form = Form(autovalidate: true);
const Form form = Form(autovalidate: false);

View File

@@ -28,6 +28,11 @@ void main() {
buildContext.findRootAncestorStateOfType<targetType>();
buildContext.findAncestorRenderObjectOfType<targetType>();
// Changes made in https://github.com/flutter/flutter/pull/66305
const Stack stack = Stack(clipBehavior: Clip.none);
const Stack stack = Stack(clipBehavior: Clip.hardEdge);
final behavior = stack.clipBehavior;
// Changes made in https://github.com/flutter/flutter/pull/61648
const Form form = Form(autovalidateMode: AutoValidateMode.always);
const Form form = Form(autovalidateMode: AutoValidateMode.disabled);

View File

@@ -27,6 +27,11 @@ void main() {
buildContext.rootAncestorStateOfType(TypeMatcher<targetType>());
buildContext.ancestorRenderObjectOfType(TypeMatcher<targetType>());
// Changes made in https://github.com/flutter/flutter/pull/66305
const Stack stack = Stack(overflow: Overflow.visible);
const Stack stack = Stack(overflow: Overflow.clip);
final behavior = stack.overflow;
// Changes made in https://github.com/flutter/flutter/pull/61648
const Form form = Form(autovalidate: true);
const Form form = Form(autovalidate: false);

View File

@@ -27,6 +27,11 @@ void main() {
buildContext.findRootAncestorStateOfType<targetType>();
buildContext.findAncestorRenderObjectOfType<targetType>();
// Changes made in https://github.com/flutter/flutter/pull/66305
const Stack stack = Stack(clipBehavior: Clip.none);
const Stack stack = Stack(clipBehavior: Clip.hardEdge);
final behavior = stack.clipBehavior;
// Changes made in https://github.com/flutter/flutter/pull/61648
const Form form = Form(autovalidateMode: AutoValidateMode.always);
const Form form = Form(autovalidateMode: AutoValidateMode.disabled);