Skip to content

OdilonDamasceno/widgeto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

widgeto

A simple way to transform your widget into other formats

Add to pubspec.yaml

dependencies:
  widgeto: 0.0.1

Example

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,
    );
}

For StatelessWidget

...
  widgeto.pdf(MyStatelessWidget().build(null));
...

For StatefullWidget

...
  widgeto.pdf(MyStatefulWidget().createState().build(null));
...

About

Convert your widget to <dynamic>.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages