ESC/POS printer with flutter desktop application? - flutter

Folks we are developing Flutter windows desktop application it is the Point of sale application in this main feature is printing we can find lots of resources on ESC/pos topic in the android flutter application or even through method channel we can access the printer but in windows its quite challenging where and how to start so far we have used https://pub.dev/packages/printing this library which prints but the length of the print is limited to the size of the A4, so even I have tried to run ESC/pos command through cmd using dart but no luck can anyone help me out where to start ????
Thanks in advance !!

Related

Run a Windows/Mac/Linux command from Flutter and read stdout

I am working on a new product, and I have developed a flutter application using Flutter Blue Plus for connectivity to a custom piece of hardware I designed. FBP currently only supports iOS and Android. Even though it is 2023, integrated BLE for Desktops is still a bit underdeveloped and I don't want to write platform specific BLE code yet. The solution is to use a USB Dongle that I have used in the past, which has the full stack and all the hardware to work on any OS with USB access (BLED112 by Silicon Labs). The customers will be required to buy the dongle for $15 until BLE support for desktops mature. I did this before and it was fine.
My question is how do I run an executable from Flutter, and read all of the standard output, without blocking?
I plan on using a simple Python script that interfaces to the dongle with the serial port and spits out GAP and GATT data in real time. I want to launch the Python script from Flutter when Linux/Windows/macOS is detected.
I want to make sure I am going down the correct path with this idea.
Use process_run package.
final shell = Shell();
await shell.run('''
# Display dart version
dart --version
# Display pub version
flutter doctor
''');

Is there any example to use twilio video with flutter linux

I am developing an application with flutter for Linux app, to connect calls using a room in Twilio.
I am using the twilio_programmable_video_platform_interface(https://pub.dev/packages/twilio_programmable_video_platform_interface/changelog) pub package but I didn't find any example for that.
When I checked their GitLab codebase they have only an example for programmable_video (which supports only android and ios - https://pub.dev/packages/twilio_programmable_video).
I didn't find any example for the twilio_programmable_video_platform_interface. Could anyone help with an example?
https://gitlab.com/twilio-flutter/programmable-video/-/tree/master/

Is it possibile to obtain better graphic quality on Android Studio using Flutter (bad antialias)?

When I test my Flutter app (default font) using Android Studio on Windows I see bad quality characters (chars with bad antialias). When I run the app on a phone the antialias is perfect (so it is not a debug mode problem). Is there a way to obtain the same good quality in the emulator on PC?
This seems like a common problem found on Android Emulators running on a windows machine.
I had a similar problem with a Windows Laptop of mine and solved it following this StackOverflow answer.
It should work even if you are using windows 11

Using brave browser to debug flutter web app

I just started-off with flutter web and I want to use brave browser to debug my flutter apps not chrome or edge.
When I use flutter devices command, it gives the following result.
No devices detected.
Run "flutter emulators" to list and start any available device emulators.
I'm using brave by using the link provided by web-server and it does not support hot reload.
So, how to configure browsers other than chrome or edge with flutter web for complete functionality.
I found this:
All you have to do, based on your Linux operating system (for Windows
and macOS the process is similar), is to modify your .bashrc file and
insert this line:
#Put your Brave installation location here
export CHROME_EXECUTABLE="/opt/brave.com/brave/brave-browser"
For MacOs,
export CHROME_EXECUTABLE="/Applications/Brave Browser.app/Contents/MacOS/Brave Browser"
You can use flutter run -d web-server to run your app like a server.
This means that you can just enter the URL on any browser of your choice to access your Flutter app !
Drawbacks:
Hot Restart/Reload from the terminal is not possible. You must refresh the page on your browser instead.
Advantages:
You can use any browser for developing flutter apps.
You can even use ngrok to forward your port to a HTTPS URL, and access your flutter app from anywhere (your phone, your desktop , someone else's device etc.)
PS: Credits to the Issue #77229 for helping me find this solution. I am aware that this workaround has already been suggested on this thread.
I just wanted to put out a simpler answer for the general viewer.
I've been diving in the same issue, it's known Brave it's Chromium-based, this will help u https://github.com/flutter/flutter/issues/77229

Publish Flutter to google play 64 bit issue

I am trying to close test a flutter app but I keep getting the error ----
"This release is not compliant with the Google Play 64-bit requirement
The following APKs or App Bundles are available to 64-bit devices, but they only have 32-bit native code: 21.
Include 64-bit and 32-bit native code in your app. Use the Android App Bundle publishing format to automatically ensure that each device architecture receives only the native code it needs. This avoids increasing the overall size of your app. Learn More"
I tried building it in 64 and 32 bit apk's and uploading them per this article - https://medium.com/#truongsinh/flutter-android-64-bit-so-what-the-fuss-15da6f8e3a46
but its still throwing the error. Whats the solution for this?
You can use codemagic and forgot all the things about upload your app to Google Play or AppStore manually