Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: enhances comment
  • Loading branch information
josh-burton committed Jun 4, 2024
commit 9a156fbf4b45c020b3ad0fcaf4e1c985a4b4055d
3 changes: 3 additions & 0 deletions flutter/lib/src/renderer/html_renderer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ bool get isCanvasKitRenderer {
return _windowFlutterCanvasKit != null;
}

// These values are set by the engine. They are used to determine if the
// application is using canvaskit or skwasm.
//
// See https://github.com/flutter/flutter/blob/414d9238720a3cde85475f49ce0ba313f95046f7/packages/flutter/lib/src/foundation/_capabilities_web.dart#L10
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could also add the comment fron the link as decriptions.

// These values are set by the engine. They are used to determine if the
// application is using canvaskit or skwasm.
// 
// See https://github.com/flutter/flutter/blob/414d9238720a3cde85475f49ce0ba313f95046f7/packages/flutter/lib/src/foundation/_capabilities_web.dart#L10

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great idea

@JS('window.flutterCanvasKit')
external JSAny? get _windowFlutterCanvasKit;