Replace Material import with animation in semantics_and_children_test#185626
Conversation
The test in `packages/flutter/test/rendering/semantics_and_children_test.dart` imported `package:flutter/material.dart` only to transitively pull in `AnimationController`. Replace it with the narrower `package:flutter/animation.dart` import. No behavior change.
|
Test exemption note: this is a no-semantic-change refactor — the |
|
Sorry @victorsanni — I pushed a master-merge commit right after your approval, which auto-removed the |
|
@rkishan516 asking if could you add CI/CD lable please |
|
LGTM |
|
Hi @okorohelijah @gaaclarke @victorsanni @reidbaker |
|
autosubmit label was removed for flutter/flutter/185626, because This PR has not met approval requirements for merging. The PR author is not a member of flutter-hackers and needs 1 more review(s) in order to merge this PR.
|
|
@gaaclarke |
Part of #177412
Summary
packages/flutter/test/rendering/semantics_and_children_test.dartimportedpackage:flutter/material.dartonly to transitively pull inAnimationController. Replaces that with the narrowerpackage:flutter/animation.dartimport — no symbols from the material library were actually used.The two existing tests (
RenderOpacity and children and semantics) continue to pass unchanged.Pre-launch Checklist
///).Tests
./bin/dart analyze packages/flutter/test/rendering/semantics_and_children_test.dart./bin/flutter test packages/flutter/test/rendering/semantics_and_children_test.dart