A simple way to transform your widget into other formats
dependencies:
widgeto: 0.0.1
import 'package:widgeto/widgeto.dart';
import 'package:flutter/material.dart';
void main() async {
Widgeto widgeto = new Widgeto();
await widgeto.pdf(Container(
height: 100,
width: 200,
color: Colors.red,
);
}
...
widgeto.pdf(MyStatelessWidget().build(null));
...
...
widgeto.pdf(MyStatefulWidget().createState().build(null));
...