I am new to flutter and am wondering about QR code reader.

1,036 views
Skip to first unread message

hoek

unread,
Sep 3, 2018, 3:37:02 PM9/3/18
to Flutter Dev
Hi All.
I'm considering Flutter for an Android / iOS app.

Does the QR code scanner work well/perfect on both platforms?

Mahalo for any help!




Olaide Nojeem Ekeolere

unread,
Sep 3, 2018, 3:41:54 PM9/3/18
to lon...@gmail.com, Flutter Dev
Hi hoek,
    I am currently working on a flutter project that will need QrCode integration in a few weeks. I have identified  https://pub.dartlang.org/packages/qr_mobile_vision or https://pub.dartlang.org/packages/qr_reader libraries to use so i am sure it will be fine.

--
You received this message because you are subscribed to the Google Groups "Flutter Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

hoek

unread,
Sep 3, 2018, 4:12:04 PM9/3/18
to Flutter Dev
Thank you Olaide.

I am also looking at
It seems promising. What do you think?
(IDK much, so not a suggestion.)

Brian Oney

unread,
Sep 3, 2018, 4:30:51 PM9/3/18
to hoek, Flutter Dev
I will also be implementing this soon. In addition the mentioned packages, here's another, which is a bit more versatile and just wraps two open source code scanners.


I know the android barcode scanner works well and not just with qr-codes.

HTH

hoek

unread,
Sep 3, 2018, 4:43:10 PM9/3/18
to Flutter Dev
It helps for sure.
It will be interesting to see if anyone has got this (or other) tested on iOS.

Olaide Nojeem Ekeolere

unread,
Sep 4, 2018, 6:19:18 AM9/4/18
to lon...@gmail.com, Flutter Dev
Hi hoek,
    I will update u after usage. I am using firebase in the current project so i am sure the MI kit will be fine.

hoek

unread,
Sep 4, 2018, 4:02:10 PM9/4/18
to Flutter Dev
Thank you Olaide.
Very helpful.
When I know QR codes work on iOS then I will develop the app with flutter.

Peter Murray

unread,
Sep 4, 2018, 5:32:14 PM9/4/18
to lon...@gmail.com, flutt...@googlegroups.com
Hi gang,

I've been developing with QR code scanning using flutter.  I've used this package: https://pub.dartlang.org/packages/qr_mobile_vision 

It's a bit herky jerky to get going on iOS, but it does work.  The big difference between it an some of the other qr scanners is that you can put the camera image inside your u/i rather than switching out the entire page for the scanner widget.

I've forked that repo at https://github.com/yarrumretep/flutter_qr_mobile_vision and made some modifications - but will need to get my thoughts organized to see about submitting a PR.  Mainly trying to fix some timing issues during initialization.

Best,

pete
--
-pete
peter m. murray
pe...@pmurray.com

Gary Hunter

unread,
Sep 4, 2018, 5:53:13 PM9/4/18
to pe...@pmurray.com, lon...@gmail.com, flutt...@googlegroups.com
Hi,
I'm using https://pub.dartlang.org/packages/fast_qr_reader_view for reading QR codes on iOS. 
It uses the native iOS scanning api (AVFoundation) & like the qr_mobile_vision package allows you put the camera inside a non full screen widget. Works really well.
Unfortunately, the Android scanner in this package is a work if progress (i.e. crashes ). The Android scanner hooks up MLKit to the Camera plugin package for realtime images.

For now on I'm going with https://pub.dartlang.org/packages/barcode_scan for scanning on Android. It's based on https://github.com/dm77/barcodescanner but needs to run full screen :(

I tried https://pub.dartlang.org/packages/qr_mobile_vision but as Peter put it so beautifully, found it a bit herky jerky

Eventually they'll be a great package that hooks up the camera to MLKit but (as far as I know) we're not there yet.

Cheers,
Gary

hoek

unread,
Sep 4, 2018, 8:46:32 PM9/4/18
to Flutter Dev
Thanks much. This is the info I was looking for ;)

hoek

unread,
Sep 6, 2018, 4:05:51 AM9/6/18
to Flutter Dev
Since we are on the QR code topic:
Any suggestions how to best generate QR code images?

Kevin Segaud

unread,
Sep 6, 2018, 4:19:49 PM9/6/18
to Flutter Dev

hoek

unread,
Sep 6, 2018, 4:27:11 PM9/6/18
to Flutter Dev
Looks good.
Thanks Kevin.

hoek

unread,
Sep 23, 2018, 5:02:37 PM9/23/18
to Flutter Dev
I got the two packages running in two different sample apps.
They work great ;)

I want to use them both in one app:

Do you pick one or the other at runtime?
Or build time?

Runtime maybe:
final ios = Theme.of(context).platform == TargetPlatform.iOS;

If build time, then IDK much.

Any and all help greatly appreciated.


Thanks!





On Tuesday, September 4, 2018 at 11:53:13 AM UTC-10, Gary Hunter wrote:
Reply all
Reply to author
Forward
0 new messages