native_image_plugin 0.1.2

Flutter Android iOS

It's a simple flutter plugin to get image data from native side.

native_image_plugin #

It's a simple flutter plugin to get image data from native side.
The plugin is not made for pure Flutter project, but for the mix project.
When we add flutter as a module to an existing project, we need to use previous icons sometimes. It's not unwise to add repeat icon to flutter again, cause that may make the larger apk/ipa even more larger.
Since Flutter has provided Platform Channel to transform data with native platform. We can use the tech to transform image data from native platform to Flutter.

Getting Started #

You can use the plugin to get platform image data.

Future<Uint8List> loadImage(String imageName) async {
  var imageData = await NativeImagePlugin.getNativeImage(imageName);
  return imageData;
}

And use the Image.memory(imageData), you can present the image on your Flutter view.

0
likes
90
pub points
0%
popularity

It's a simple flutter plugin to get image data from native side.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

zhanymx@gmail.com

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on native_image_plugin