flutter-desktop

flutter desktop build fails with `com.apple.xcode.tools.swift.compiler`

蓝咒 提交于 2021-02-11 12:22:59
问题 I try to build and run flutter for desktop and I get the bellow error when I use ~/dev/flutter/bin/flutter run -v Objects-normal/x86_64/GeneratedPluginRegistrant~partial.swiftmodule -emit-dependencies-path /Users/myuser/tmp/flutter-desktop-embedding/example/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runner.build/ Objects-normal/x86_64/GeneratedPluginRegistrant.d -emit-reference-dependencies-path /Users/myuser/tmp/flutter-desktop-embedding/example/build/macos/Build

Flutter desktop - send PDF to a printer

*爱你&永不变心* 提交于 2021-02-08 04:23:29
问题 I have a requirement to print PDF on the printer from the Flutter app. Is there a chance to have a possibility to do so right now? I mean that my application is going to fetch the PDF file from the server and then I would like to put it directly to the printer, so it can be printed instantly. The platform that I am targetting is windows. If this is not possible then is there a chance to execute .bat script using flutter? In the case that there would be no such possibility I could make the

Flutter desktop - send PDF to a printer

余生长醉 提交于 2021-02-08 04:23:08
问题 I have a requirement to print PDF on the printer from the Flutter app. Is there a chance to have a possibility to do so right now? I mean that my application is going to fetch the PDF file from the server and then I would like to put it directly to the printer, so it can be printed instantly. The platform that I am targetting is windows. If this is not possible then is there a chance to execute .bat script using flutter? In the case that there would be no such possibility I could make the

Flutter Desktop - flutter-desktop-embedding how to save file to a hard drive

我怕爱的太早我们不能终老 提交于 2021-01-27 19:11:56
问题 I am working with the Flutter desktop for a while and everything is going fine with the implementation. Till now I was only implementing the UI, networking and in-memory cache. Now I started to face a real problem that I am not able to to find the solution for. Is there a chance that there is some out of the box possibility to save files to a hard drive? I have got to process the base64 that contains a PDF file and put it somewhere on the hard drive. Should I use functions that are prepared

flutter-desktop-embedding how to build exe file

柔情痞子 提交于 2020-12-03 07:12:32
问题 in flutter-desktop-embedding , I am a windows environment, I can run it, but I don't know how to build an exe file. I want to know what to do. 回答1: If you flutter build or flutter run a desktop project, you're already building a .exe; that's what's being launched by flutter run . You can find it in the build directory of the project (e.g., build\windows\x64\Debug\Runner\Flutter Desktop Example.exe for the FDE example app). 回答2: First check the build options with flutter build -h Then run

flutter-desktop-embedding how to build exe file

时光毁灭记忆、已成空白 提交于 2020-12-03 07:10:29
问题 in flutter-desktop-embedding , I am a windows environment, I can run it, but I don't know how to build an exe file. I want to know what to do. 回答1: If you flutter build or flutter run a desktop project, you're already building a .exe; that's what's being launched by flutter run . You can find it in the build directory of the project (e.g., build\windows\x64\Debug\Runner\Flutter Desktop Example.exe for the FDE example app). 回答2: First check the build options with flutter build -h Then run

Flutter desktop - plugin for windows

寵の児 提交于 2020-07-10 00:14:39
问题 I am looking for help with the plugins in the flutter desktop. I am using https://github.com/google/flutter-desktop-embedding to develop the desktop app. Till I was using only the functions that come out of the box with the Flutter all was working fine. Now I have to implement a missing part (printing the file using the external printer). I am struggling because the examples in the github repositories do not give a full vision of how to do that. There is a windows directory where the code

Flutter desktop - plugin for windows

巧了我就是萌 提交于 2020-07-10 00:12:07
问题 I am looking for help with the plugins in the flutter desktop. I am using https://github.com/google/flutter-desktop-embedding to develop the desktop app. Till I was using only the functions that come out of the box with the Flutter all was working fine. Now I have to implement a missing part (printing the file using the external printer). I am struggling because the examples in the github repositories do not give a full vision of how to do that. There is a windows directory where the code

Flutter - http.get fails on macos build target: Connection failed

筅森魡賤 提交于 2020-05-29 06:46:11
问题 I started porting my Flutter app to macos Desktop . The UI started fine. However, as soon as the app makes a network call, it fails instantly with Connection failed (OS Error: Operation not permitted) . Running a one-liner: final response = await http.get('https://jsonplaceholder.typicode.com/posts/1'); fails with: Unhandled Exception: SocketException: Connection failed (OS Error: Operation not permitted, errno = 1), address = jsonplaceholder.typicode.com, port = 443 #0 IOClient.send (package