DavBfr / dart_barcode

Barcode generation library
https://pub.dev/packages/barcode
Apache License 2.0
134 stars 39 forks source link

Error to generate barcode #16

Closed luissouza closed 4 years ago

luissouza commented 4 years ago

Im using this code to generate barcode:

`final image = Image(300, 150);

fill(image, getColor(255, 255, 255));

drawBarcode(image, Barcode.ean13(), "1064992311055.svg ", font: arial_24);`

And I got this error:

type '() => (_SyncIterator< BarcodeText >) => bool' is not a subtype of type '() => (_SyncIterator< BarcodeElement >) => bool'

What I did wrong? Im using barcode_image version 1.0.3 and my flutter sdk is 1.20.0-2.0.pre

luissouza commented 4 years ago

I downgrade version 1.20.0-2.0.pre(dev) to Flutter 1.17.5 (stable) and it works now!

DavBfr commented 4 years ago

I pushed a new version 1.1.0 that works with Flutter 1.20.0