Table of Contents
Plugin to the JSON Dynamic Widget to provide SVG support utilizing the websafe_svg backed by flutter_svg.
import 'package:json_dynamic_widget/json_dynamic_widget.dart';
import 'package:json_dynamic_widget_plugin_svg/json_dynamic_widget_plugin_svg.dart';
void main() {
// Ensure Flutter's binding is complete
WidgetsFlutterBinding.ensureInitialized();
// ...
// Get an instance of the registry
var registry = JsonWidgetRegistry.instance;
// Bind the plugin to the registry. This is necessary for the registry to
// find the widget provided by the plugin
JsonSvgPluginRegistrar.registerDefaults(registry: registry);
// ...
}