-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
flutter/engine
#36140Labels
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
Gradients are not working as expected on master channel.
code
import 'package:flutter/material.dart';
void main() {
runApp(CustomPaint(painter: Painter()));
}
class Painter extends CustomPainter {
@override
void paint(Canvas canvas, Size size) {
final Paint paint = Paint();
paint.shader = const LinearGradient(
colors: <Color>[Color(0xFF00FF00), Color(0xFF0000FF)],
tileMode: TileMode.repeated
).createShader(const Rect.fromLTRB(0, 0, 300, 300), textDirection: TextDirection.ltr);
canvas.drawRect(Rect.fromLTWH(0, 0, 300, 300), paint);
}
@override
bool shouldRepaint(covariant CustomPainter oldDelegate) => true;
}
expected result
actual result
borjandev
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.

