json_dynamic_widget_plugin_rive 4.0.0+6 copy "json_dynamic_widget_plugin_rive: ^4.0.0+6" to clipboard
json_dynamic_widget_plugin_rive: ^4.0.0+6 copied to clipboard

A plugin to the JSON Dynamic Widget to provide Rive support to the widgets

json_dynamic_widget_plugin_rive #

Table of Contents

Live Example #

Introduction #

Plugin to the JSON Dynamic Widget to provide Lottie support utilizing the lottie package.

Using the Plugin #

import 'package:json_dynamic_widget/json_dynamic_widget.dart';
import 'package:json_dynamic_widget_plugin_rive/json_dynamic_widget_plugin_rive.dart';

void main() {
  // Ensure Flutter's binding is complete

  // ...

  // 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
  JsonRivePluginRegistrar.registerDefaults(registry: registry);

  // ...