-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Closed
flutter/engine
#36193Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work liste: impellerImpeller rendering backend issues and features requestsImpeller rendering backend issues and features requestsengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.
Description
code
import 'dart:ui' as ui;
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
void main() {
WidgetsFlutterBinding.ensureInitialized();
runApp(
MaterialApp(
home: Container(
color: Colors.blue,
child: CustomPaint(
painter: MyPaint(),
),
),
),
);
}
class MyPaint extends CustomPainter {
@override
void paint(ui.Canvas canvas, ui.Size size) {
ui.Paint paint = Paint();
paint.color = Colors.red;
paint.imageFilter = ui.ImageFilter.matrix(Float64List.fromList([
1, 0, 0, 0, //
0, 1, 0, 0, //
0, 0, 1, 0, //
100, 100, 0, 1, //
]));
Rect rect = Rect.fromLTWH(0, 0, 100, 100);
canvas.drawRect(rect, paint);
}
@override
bool shouldRepaint(covariant CustomPainter oldDelegate) {
return true;
}
}
expected results
actual results
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work liste: impellerImpeller rendering backend issues and features requestsImpeller rendering backend issues and features requestsengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.

