alexzhirkevich / custom-qr-generator

Android library for creating QR codes with logo, custom shapes, colors, background image. Powered by ZXing
MIT License
173 stars 18 forks source link

Flutter support #4

Closed RoyalCoder88 closed 1 year ago

RoyalCoder88 commented 2 years ago

Hi Alex,

Thanks for this amazing example project, can you add support for Flutter for Custom Qr Generator? I think will be amazing for pub.dev community!

Thanks in advance!

alexzhirkevich commented 2 years ago

Hi Alex,

Thanks for this amazing example project, can you add support for Flutter for Custom Qr Generator? I think will be amazing for pub.dev community!

Thanks in advance!

HI, Dorin.

Thanks for your support. I have a prototype written in pure Kotlin (without dependencies) with Kotlin Multiplatform support. But I don't have experience in developing and publishing flutter packages. If you want, I can publish this prototype and you can help me to rewrite it to Dart and publish it

RoyalCoder88 commented 2 years ago

@alexzhirkevich I will be glad to help with what I can ;)

RoyalCoder88 commented 2 years ago

Hi @alexzhirkevich , any news? Thanks!

alexzhirkevich commented 2 years ago

Hi @alexzhirkevich , any news? Thanks!

Hi, @RoyalCoder88. KMM prototype doesn't work now. I think I made mistake somewhere during converting ZXing java classes to kotlin. Generated codes are unscannable. Besides, I used abstract ARGB bitmap in common code and converting it to IOS UIImage takes too long time (about 20 sec on real device). And some more bugs on IOS like black logo sometimes turn green... Maybe it is easier to write dart version of it instead of trying to use KMM. As I see, dart also has zxing library

alexzhirkevich commented 2 years ago

Do you really need a flutter version of it for some project?

RoyalCoder88 commented 2 years ago

Hi @alexzhirkevich ,

Yes, I really need asap this kind of QR Generator for Flutter, and I think will be an amazing package on pub.dev! Have a great day my friend, and keep up the good work!

alexzhirkevich commented 2 years ago

Hi @alexzhirkevich ,

Yes, I really need asap this kind of QR Generator for Flutter, and I think will be an amazing package on pub.dev! Have a great day my friend, and keep up the good work!

Ok, i'll check what i can do. It would be good if you give me an equivalent of android Bitmap in flutter, which can be displayed, mb saved to file and important with optimized pixel by pixel processing ability

RoyalCoder88 commented 2 years ago

Hi Alex, do you mean a QR Viewer or Image generator?

RoyalCoder88 commented 1 year ago

Hi @alexzhirkevich , hope you're well any news about the flutter version? Thanks in advance!

RoyalCoder88 commented 1 year ago

Hi, @alexzhirkevich any progress?

alexzhirkevich commented 1 year ago

Hi, @RoyalCoder88

You can find preview here

RoyalCoder88 commented 1 year ago

Great job Alex, thanks!

RoyalCoder88 commented 1 year ago

Hi @alexzhirkevich ,

I tested you did a great job, please add support for adding the logo image in the center of the code, thanks in advance!

alexzhirkevich commented 1 year ago

Hi, @RoyalCoder88,

Thanks.

Why don't just place logo widget on top of qr code widget?

And please make future enhancement suggestions in flutter repo.