Widgets To Image | Coderz Repository

widgets_to_image

Last updated:

0 purchases

widgets_to_image Image
widgets_to_image Images

Free

Languages

Categories

Add to Cart

Description:

widgets to image

Widgets To Image #
A simple flutter package to export your widget to image with flutter

Installation #

Add this to your package's pubspec.yaml file:

dependencies:
widgets_to_image: any
copied to clipboard

Get the package using your IDE's GUI or via command line with

$ pub get
copied to clipboard

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 #

Web #

MacOS #

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product: (if this is empty don't purchase this product)

Customer Reviews

There are no reviews.