widget_recorder 0.3.0 copy "widget_recorder: ^0.3.0" to clipboard
widget_recorder: ^0.3.0 copied to clipboard

Take images from any rendered `Widget` in the tree. Choose how to take the pictures using various controllers.

Widget Recorder for Flutter #

pub package

A Flutter package to create images from a Widget.

Usage #

  • Import the package:
import 'package:widget_recorder/widget_recorder.dart';
  • Use it:
...
WidgetRecorder(
    child: myWidget,
    controller: WidgetRecorderPeriodicController(),
    onSnapshotTaken: (WidgetRecorderSnapshot snapshot) {
        Uint8List bytes = snapshot.byteData.buffer.asUint8List();
        Image image = Image.memory(bytes);

        setState((){
            _myImage = image;
        });
    }
),
...
  • Examples:

Individual screenshots:

screenshots_example

Recording:

recording_example

12
likes
40
pub points
58%
popularity

Publisher

unverified uploader

Take images from any rendered `Widget` in the tree. Choose how to take the pictures using various controllers.

Repository (GitHub)
View/report issues

License

ISC (license)

Dependencies

flutter

More

Packages that depend on widget_recorder