widget_recorder 0.1.0 widget_recorder: ^0.1.0 copied to clipboard
Generates images from a Widget.
Widget Recorder for Flutter #
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(
onSnapshotReady: (WidgetRecorderSnapshot snapshot) {
Uint8List bytes = snapshot.byteData.buffer.asUint8List();
Image image = Image.memory(bytes);
setState((){
_myImage = image;
});
}
)
),
...
- Examples:
-
Individual screenshots:
-
Recording: