widgets_to_image 1.0.0 copy "widgets_to_image: ^1.0.0" to clipboard
widgets_to_image: ^1.0.0 copied to clipboard

A simple package to convert any widgets into an image, everything in flutter is rendered pixel by pixel.

Widgets To Image #

A simple flutter package to export your widget to image with flutter

Installation #

  1. Add this to your package's pubspec.yaml file:
dependencies:
  widgets_to_image: any
copied to clipboard
  1. Get the package using your IDE's GUI or via command line with
$ pub get
copied to clipboard
  1. Import the widgets_to_image.dart file in your app
import 'package:widgets_to_image/widgets_to_image.dart';
copied to clipboard

Usage #

// WidgetsToImageController to access widget
WidgetsToImageController controller = WidgetsToImageController();
// to save image bytes of widget
Uint8List? bytes;

WidgetsToImage(
  controller: controller,
  child: cardWidget(),
),

final bytes = await controller.capture();
copied to clipboard

Screenshots #

Mobile devices #

phone

Web #

phone

MacOS #

phone

179
likes
160
points
18.2k
downloads

Publisher

verified publishermohamed-abdo.com

Weekly Downloads

2024.09.19 - 2025.04.03

A simple package to convert any widgets into an image, everything in flutter is rendered pixel by pixel.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on widgets_to_image