Skip to content

Commit e601184

Browse files
PHKennyclaude
andcommitted
fix(example): force Skia renderer on Linux desktop
Impeller became the default desktop renderer in Flutter 3.47 but its general path SDF renderer is unfinished (flutter/flutter#183959), so filled Bezier curves in CustomPainter (Layo, the progress bar) render with aliased edges on Linux. Skia antialiases them correctly. Bridge until the SDF path renderer lands. See engineering/decisions.md D77. Co-Authored-By: Claude Opus 4.8 <[email protected]>
1 parent cd1c8db commit e601184

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎example/linux/runner/my_application.cc‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,13 @@ static void my_application_activate(GApplication* application) {
5858
fl_dart_project_set_dart_entrypoint_arguments(
5959
project, self->dart_entrypoint_arguments);
6060

61+
// Force the Skia renderer on Linux desktop. Impeller became the default in
62+
// Flutter 3.47 but its general path SDF renderer is unfinished
63+
// (flutter/flutter#183959), so filled Bezier curves in CustomPainter
64+
// (e.g. Layo, the progress bar) render with aliased edges on desktop.
65+
// Skia antialiases them correctly. Revisit when the SDF path renderer lands.
66+
fl_dart_project_set_enable_impeller(project, FALSE);
67+
6168
FlView* view = fl_view_new(project);
6269
GdkRGBA background_color;
6370
// Background defaults to black, override it here if necessary, e.g. #00000000

0 commit comments

Comments
 (0)