mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Fix prefer_final_in_foreach analysis errors (flutter/engine#42971)
This is now failing the engine roll for some reason https://ci.chromium.org/ui/p/flutter/builders/try/Linux%20analyze/58456/overview
This commit is contained in:
parent
9474fbd337
commit
6ddcc5c032
@ -5511,7 +5511,7 @@ abstract class Canvas {
|
||||
/// void paint(Canvas canvas, Size size) {
|
||||
/// Paint paint = Paint();
|
||||
/// canvas.drawAtlas(spriteAtlas, <RSTransform>[
|
||||
/// for (Sprite sprite in allSprites)
|
||||
/// for (final Sprite sprite in allSprites)
|
||||
/// RSTransform.fromComponents(
|
||||
/// rotation: 0.0,
|
||||
/// scale: 1.0,
|
||||
@ -5523,7 +5523,7 @@ abstract class Canvas {
|
||||
/// translateY: sprite.center.dy,
|
||||
/// ),
|
||||
/// ], <Rect>[
|
||||
/// for (Sprite sprite in allSprites)
|
||||
/// for (final Sprite sprite in allSprites)
|
||||
/// Rect.fromLTWH(sprite.index * 10.0, 0.0, 10.0, 10.0),
|
||||
/// ], null, null, null, paint);
|
||||
/// }
|
||||
@ -5554,7 +5554,7 @@ abstract class Canvas {
|
||||
/// void paint(Canvas canvas, Size size) {
|
||||
/// Paint paint = Paint();
|
||||
/// canvas.drawAtlas(spriteAtlas, <RSTransform>[
|
||||
/// for (Sprite sprite in allSprites)
|
||||
/// for (final Sprite sprite in allSprites)
|
||||
/// RSTransform.fromComponents(
|
||||
/// rotation: sprite.rotation,
|
||||
/// scale: 1.0,
|
||||
@ -5566,10 +5566,10 @@ abstract class Canvas {
|
||||
/// translateY: sprite.center.dy,
|
||||
/// ),
|
||||
/// ], <Rect>[
|
||||
/// for (Sprite sprite in allSprites)
|
||||
/// for (final Sprite sprite in allSprites)
|
||||
/// Rect.fromLTWH(sprite.index * 10.0, 0.0, 10.0, 10.0),
|
||||
/// ], <Color>[
|
||||
/// for (Sprite sprite in allSprites)
|
||||
/// for (final Sprite sprite in allSprites)
|
||||
/// Colors.white.withAlpha(sprite.alpha),
|
||||
/// ], BlendMode.srcIn, null, paint);
|
||||
/// }
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user