native_image_plugin 0.1.1 copy "native_image_plugin: ^0.1.1" to clipboard
native_image_plugin: ^0.1.1 copied to clipboard

outdated

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
30
pub points
0%
popularity

Publisher

unverified uploader

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

Homepage

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on native_image_plugin