json_dynamic_widget_plugin_material_icons 4.0.1+5 copy "json_dynamic_widget_plugin_material_icons: ^4.0.1+5" to clipboard
json_dynamic_widget_plugin_material_icons: ^4.0.1+5 copied to clipboard

A plugin to the JSON Dynamic Widget to provide String name support for Material Icons

Table of Contents

json_dynamic_widget_plugin_material_icons #

Table of Contents #

Live Example #

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
0
likes
160
points
282
downloads

Publisher

verified publisherpeifferinnovations.com

Weekly Downloads

2024.08.20 - 2025.03.04

A plugin to the JSON Dynamic Widget to provide String name support for Material Icons

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

child_builder, flutter, json_class, json_dynamic_widget, json_theme, logging, material_icons_named, meta, uuid

More

Packages that depend on json_dynamic_widget_plugin_material_icons