get_web_renderer 1.0.0 copy "get_web_renderer: ^1.0.0" to clipboard
get_web_renderer: ^1.0.0 copied to clipboard

outdated

An easy way to get the current renderer (HTML or CanvasKit in Web platform and Other for other platforms).

Get Web Renderer #

This package help you to detect current web renderer.

How to use #

This package provide very basic apis to recognize current web renderer.

You just need to add get_web_renderer: ^any to your pubspec.yaml and this is all apis for you to use:

/// Return true if current renderer is HTML
bool _isHtmlRenderer = isHtmlRenderer;

/// Return true if current renderer is CanvasKit
bool _isCanvasKitRenderer = isCanvasKitRenderer;

/// Return true if current renderer is not the web platform
bool _isOtherRenderer = isOtherRenderer;

// return CurrentRenderer.html, CurrentRenderer.canvasKit, CurrentRenderer.other
CurrentRenderer _currentRenderer = getCurrentRenderer; 
0
likes
0
pub points
61%
popularity

Publisher

verified publisherlamnhan.dev

An easy way to get the current renderer (HTML or CanvasKit in Web platform and Other for other platforms).

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

More

Packages that depend on get_web_renderer