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

Ultimative converter between Dart & Flutter images: ui, widgets, package image, ImageProvider, raw bytes, Base64 string. Works in any direction.

Flutter Image Converter #

Cover - FlutterImageConverter

GitHub License Pub Package Code Size Publisher

Build Status Pull Requests Issues Pub Score

Well tested and easy-to-use Dart & Flutter image transformer package: ui, widgets, image, ImageProvider, bytes, and base64 string. Works in any direction as extensions. You no longer have to worry about writing code to convert images in different formats. Feel free to use it in your awesome project.

Share some ❤️ and star repo to support the project.

Usage #

Raw bytes from File to Flutter Widget #

File('1.jpg').widgetImage

Supports all formats from the package image.

Package Image to Flutter Widget #

Image(...).widgetImage

ImageProvider to raw bytes #

AssetImage('nature.webp').uint8List

Supports the image providers:

  • AssetImage
  • FileImage
  • MemoryImage
  • NetworkImage
  • any providers from pub.dev inherited from ImageProvider

See folders example and test for more use cases.

Available Converters #

import 'dart:ui' as ui;
import 'package:flutter/widgets.dart' as widget;
import 'package:image/image.dart' as image;
extension name image.Image ui.Image widget.Image ImageProvider Base64String Uint8List
image.Image imageImage
ui.Image uiImage
widget.Image widgetImage
ImageProvider imageProvider
Base64String base64String
Uint8List uint8List

Screenshots #

Welcome #

Requests and suggestions are warmly welcome.

This package is open-source, stable and well-tested. Development happens on GitHub. Feel free to report issues or create a pull-request there.

General questions are best asked on StackOverflow.

TODO #

  • Explane Image, ImageProvider, etc. 1
  • Extensions for transform images to any formats?

Created with ❤️

4
likes
0
pub points
80%
popularity

Publisher

verified publishersyrokomskyi.com

Ultimative converter between Dart & Flutter images: ui, widgets, package image, ImageProvider, raw bytes, Base64 string. Works in any direction.

Repository (GitHub)
View/report issues

Topics

#converter #image #widget #ui #bytes

License

unknown (LICENSE)

Dependencies

flutter, image

More

Packages that depend on flutter_image_converter