shaxxx / flutter_barcode_listener

Flutter widget to listen for scanned barcode via hardware scanners
MIT License
45 stars 46 forks source link

Remove green border #15

Closed berrybana closed 2 years ago

berrybana commented 2 years ago

Hi, Thanks for this library. In my case, green border appears after scanning the barcode. Is there any way to remove this?

danielroek commented 2 years ago

Hi @berrybana, I'm not quite sure what green border you mean. Would you be able to provide us with some code to reproduce the issue and your flutter doctor output?

berrybana commented 2 years ago

Green border like screenshot below. I think green border is focus highlight. So I added this code to style.xml <item name="android:defaultFocusHighlightEnabled">false</item> then, border disappeared!!

KakaoTalk_Photo_2022-02-24-00-51-15

shaxxx commented 2 years ago

Green border is focus assist setting on device you're running the app. However, I've migrated example project to new Flutter build system, and checked on emulator and device, there's no green border. So I assume this is fixed with https://github.com/shaxxx/flutter_barcode_listener/commit/05196d6197d1a6ba062615e893a39f3ec8134dca Please try it. I'm closing this, if you still have this issue please reopen.