I am developing an app for school project using flutter and it should have a feature of printing a PDF document over WI-Fi (using WI-FI printers).
I didn't find any tutorials on printing using flutter so I want to know if flutter supports such thing and if not, is there a way around it?
Thanks in advance
It looks like there is a printing package available for flutter here that might be what you need:
https://pub.dev/packages/printing
They even have example code that you can use:
https://pub.dev/packages/printing#-example-tab-
Related
I try to send some data String or binary from my Application N°1 from devis N°1 to the same Application from My devis N°2.
I search and i search and there is no good tutorial who explain step by step how to use bluetooth in flutter, there is only COPY/PAST without any explication and i found much undeclared variable...
the flutter_blue not show my smartphone devis but the flutter_bluetooth_serial show me the devis (I use the exemple code but i dont know how it work) so i dont know how i Add this devis and how i send data from this devis...
by the way can i use JAVA code ? the old java android programming because i know how use bluetooth in the old Android application but with flutter i dont found any good tutorial.
I'm trying to implement a feature based on the background/foreground status of a Flutter app.
Does anyone know of a way to detect if the notification/system try on a device is pulled down over the app?
Thanks.
Welcome to SOF
You can detect this using special permission in Android (https://developer.android.com/reference/android/Manifest.permission#EXPAND_STATUS_BAR).
But you need native code to run in Flutter.
There is a similar (almost) package out there, you may fork it:
https://pub.dev/packages/notification_shade
I have trouble in setting flutter and running an app on a real device in vs code. I want to run my apps on physical device and I do not want to use emulators. Is it going to be possible?
Yes, this is very possible. In fact, many flutter developers use physical devices in order to test features like Maps,Camera, etc. I always recommend following a video tutorial to set up environments for development. But you should try the following:
First of all, I recommend the flutter docs https://flutter.dev/docs/development/tools/vs-code to set up vscode.
After this, all you need does not have anything to do with VSCode any longer. You should check https://flutter.dev/docs/get-started/install/windows to connect a physical device.
Im not sure if you have already setup flutter on your machine to start with. If you haven't use this link how to install flutter
the next part is easy just install dart and flutter extensions in vscode.
walla!
I have an application, written in flutter, that is heavily dependent on the feature of scanning pdf-417 type codes. In the Android port, it works easily, using the qr_code_scanner 0.0.13 library from pub.dev. I need a web application, for various reasons, and I want to implement the scanning functionality in it. I have tried searching librarys that support the web also, but couldn't find anything relevant. I tried creating a html/js scanner webpage, with zxing-js, that works in a normal browser, but not in the flutter webview, which uses the easy_web_view pub.dev package. It seems from the errors, that it cannot access the camera. What should be the easiest way of solving this? Thanks in advance for your answers.
You can use this package that support web, android and IOS in flutter.
Also see this link
Is there any way that I can print a receipt on a Bluetooth thermal printer, as I really struggling finding the solution on flutter? Anything could help, I really appreciate those answers
I have tried esc_pos_bluetooth package and it's not working for Bixolon bluetooth printer.
I'v found blue_thermal_printer library and it worked for me on Android but this library doesn't support iOS until now:
https://pub.dev/packages/blue_thermal_printer
Currently you need to write your own logic using Bluetooth packages.
There is package available which currently supports WiFi POS printer.
Take a look
https://pub.flutter-io.cn/packages/esc_pos_printer
Have you tried this package: esc_pos_bluetooth(https://github.com/andrey-ushakov/esc_pos_bluetooth)?
Not much luck on my end either (on ios). Unfortunately, esc_pos_bluetooth doesn't detect my Epson TM-T88VI so that's a little bit of a road block...
There are three major bluetooth printing plugins, i have tried them all and so far this package is the best one esc_pos_bluetooth is the best on my case.
Some useful Flutter SDKs for Thermal Printer:
bluetooth_thermal_printer - This is a Flutter plugin that allows you to use a Bluetooth thermal printer on Android device.
blue_print_pos - This is a Flutter plugin that enables you to use a
POS (point of sale) system on both Android and iOS device.
This is the updated forked blue_print_pos SDK which I used in Dec, 2022. You can use it without facing any issues.
How to integrate SDK: Detailed Stackoverflow Answer