Unverified Commit 8693824d authored by Alexandre Ardhuin's avatar Alexandre Ardhuin Committed by GitHub

fix the tree (#67668)

parent e0c0321e
...@@ -316,7 +316,7 @@ void main() { ...@@ -316,7 +316,7 @@ void main() {
BorderSide dividerBorder() { BorderSide dividerBorder() {
final BoxDecoration decoration = tester.widget<Container>( final BoxDecoration decoration = tester.widget<Container>(
find.descendant(of: find.byType(Divider), matching: find.byType(Container)).first, find.descendant(of: find.byType(Divider), matching: find.byType(Container)).first,
).decoration as BoxDecoration; ).decoration! as BoxDecoration;
return decoration.border!.bottom; return decoration.border!.bottom;
} }
......
...@@ -66,7 +66,7 @@ void main() { ...@@ -66,7 +66,7 @@ void main() {
await tester.pump(); // start gesture await tester.pump(); // start gesture
await tester.pump(const Duration(milliseconds: 200)); // wait for splash to be well under way await tester.pump(const Duration(milliseconds: 200)); // wait for splash to be well under way
final RenderBox box = Material.of(tester.element(find.byType(InkWell))) as RenderBox; final RenderBox box = Material.of(tester.element(find.byType(InkWell)))! as RenderBox;
expect( expect(
box, box,
paints paints
...@@ -118,7 +118,7 @@ void main() { ...@@ -118,7 +118,7 @@ void main() {
await tester.tapAt(tapDownOffset); await tester.tapAt(tapDownOffset);
await tester.pump(); // start gesture await tester.pump(); // start gesture
final RenderBox box = Material.of(tester.element(find.byType(InkWell))) as RenderBox; final RenderBox box = Material.of(tester.element(find.byType(InkWell)))! as RenderBox;
bool offsetsAreClose(Offset a, Offset b) => (a - b).distance < 1.0; bool offsetsAreClose(Offset a, Offset b) => (a - b).distance < 1.0;
bool radiiAreClose(double a, double b) => (a - b).abs() < 1.0; bool radiiAreClose(double a, double b) => (a - b).abs() < 1.0;
...@@ -194,7 +194,7 @@ void main() { ...@@ -194,7 +194,7 @@ void main() {
await tester.pump(); // start gesture await tester.pump(); // start gesture
await tester.pump(const Duration(milliseconds: 200)); // wait for splash to be well under way await tester.pump(const Duration(milliseconds: 200)); // wait for splash to be well under way
final RenderBox box = Material.of(tester.element(find.byType(InkWell))) as RenderBox; final RenderBox box = Material.of(tester.element(find.byType(InkWell)))! as RenderBox;
expect( expect(
box, box,
paints paints
...@@ -326,7 +326,7 @@ void main() { ...@@ -326,7 +326,7 @@ void main() {
await tester.sendKeyEvent(LogicalKeyboardKey.space); await tester.sendKeyEvent(LogicalKeyboardKey.space);
await tester.pump(); await tester.pump();
final RenderBox box = Material.of(tester.element(find.byType(InkWell))) as RenderBox; final RenderBox box = Material.of(tester.element(find.byType(InkWell)))! as RenderBox;
// ripplePattern always add a translation of topLeft. // ripplePattern always add a translation of topLeft.
expect(box, ripplePattern(30.0, 0)); expect(box, ripplePattern(30.0, 0));
...@@ -422,7 +422,7 @@ void main() { ...@@ -422,7 +422,7 @@ void main() {
await gesture.moveTo(const Offset(0.0, 0.0)); await gesture.moveTo(const Offset(0.0, 0.0));
await gesture.up(); // generates a tap cancel await gesture.up(); // generates a tap cancel
final RenderBox box = Material.of(tester.element(find.byType(InkWell))) as RenderBox; final RenderBox box = Material.of(tester.element(find.byType(InkWell)))! as RenderBox;
expect(box, paints..everything((Symbol method, List<dynamic> arguments) { expect(box, paints..everything((Symbol method, List<dynamic> arguments) {
if (method != #drawCircle) if (method != #drawCircle)
return true; return true;
......
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