Skip to content
This repository was archived by the owner on Feb 19, 2025. It is now read-only.
/ widget_recorder Public archive

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

c269838 · Jan 21, 2020

History

6 Commits
Jan 6, 2020
Jan 21, 2020
Jan 6, 2020
Jan 21, 2020
Jan 6, 2020
Jan 6, 2020
Jan 6, 2020
Jan 21, 2020
Jan 6, 2020
Jan 21, 2020
Jan 6, 2020
Jan 21, 2020

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