Last updated:
0 purchases
get web renderer
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 = WebRenderer.isHtmlRenderer;
/// Return true if current renderer is CanvasKit
bool _isCanvasKitRenderer = WebRenderer.isCanvasKitRenderer;
/// Return true if current renderer is not the web platform
bool _isOtherRenderer = WebRenderer.isOtherRenderer;
// return CurrentRenderer.html, CurrentRenderer.canvasKit, CurrentRenderer.other
CurrentRenderer _currentRenderer = WebRenderer.getCurrentRenderer;
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.