Skip to content

Generates an image from a Widget following the provided schedule.

License

Notifications You must be signed in to change notification settings

RanfiCD/widget_recorder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Generates an image from a Widget following the provided schedule.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published