json_dynamic_widget_plugin_material_icons

Last updated:

0 purchases

json_dynamic_widget_plugin_material_icons Image
json_dynamic_widget_plugin_material_icons Images
Add to Cart

Description:

json dynamic widget plugin material icons

Table of Contents

json_dynamic_widget_plugin_material_icons

Table of Contents
Live Example
Introduction
Using the Plugin




json_dynamic_widget_plugin_material_icons #
Table of Contents #

Live Example
Introduction
Using the Plugin

Live Example #

Web

Introduction #
Plugin to the JSON Dynamic Widget to provide named support for Material Icons.
Using the Plugin #
import 'package:json_dynamic_widget/json_dynamic_widget.dart';
import 'package:json_dynamic_widget_plugin_material_icons/json_dynamic_widget_plugin_material_icons.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
JsonMaterialIconsPlugin.bind(registry);

// ...
}
copied to clipboard
The icons can be referenced by name ising the new material_icon type such as:
{
'type': 'material_icon',
'args': {
'icon': 'arrow_up'
}
}
copied to clipboard

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.