vega_embed_flutter 0.6.3 vega_embed_flutter: ^0.6.3 copied to clipboard
A Flutter widget to embed vega-lite charts to flutter web. Works only in Flutter web as of now. This could be adapted to be used with flutter webview widget.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add vega_embed_flutter
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
vega_embed_flutter: ^0.6.3
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:vega_embed_flutter/vega_embed_flutter.dart';