flutter-desktop

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

纵然是瞬间 提交于 2020-05-29 06:45:31
问题 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

RawKeyEvent wrong characters in Windows10 [Flutter desktop]

廉价感情. 提交于 2020-04-18 06:09:20
问题 I'm testing RawKeyboardListener in a Flutter Desktop project (Windows 10). Events work fine, but i receive wrong keys label, as you can see below: Is it a "keyboard layout" issue, like if the app was expecting events from an android keyboard with different key positions (As you can see in the .gif i receive and "Unknown Android key code")? How can i fix that? Also, if i print event.isControlPressed it always return false even if i'm pressing it. This is the code i'm using: import 'dart:io';

Firebase Authentication plugin for Flutter Desktop Embedding

与世无争的帅哥 提交于 2019-12-11 05:39:06
问题 I'm trying to integrate Firebase Authentication for Flutter Desktop Embedding. Is there any Flutter plugin for Firebase Authentication for development in case Desktop Embedding. I have tried using the Flutter plugin, firebase_auth plugin. But this works only in case of Android and iOS Platforms, getting missing implementation error while running on Desktop Embedding, in my case Windows, as the plugin doesn't have the implementation for Desktop Embedding. info flutter.tools [ERROR:c:\b\s\w\ir

Can we use any kind of database in flutter desktop

十年热恋 提交于 2019-11-30 09:47:16
问题 After 2 weeks of UI code for my desktop app I just found out that firebase doesn't support flutter desktop, Sqflite doesn't work too.So I how can I access any kind of database for flutter desktop? I've already tried Sqflite and Firebase, and Rest API isn't enough. 回答1: According to this page: The Flutter desktop APIs are still in early stages of development, and are subject to change without warning . No backwards compatibility, either API or ABI, will be provided. Expect any code using these

Can we use any kind of database in flutter desktop

我只是一个虾纸丫 提交于 2019-11-29 18:42:38
After 2 weeks of UI code for my desktop app I just found out that firebase doesn't support flutter desktop, Sqflite doesn't work too.So I how can I access any kind of database for flutter desktop? I've already tried Sqflite and Firebase, and Rest API isn't enough. According to this page : The Flutter desktop APIs are still in early stages of development, and are subject to change without warning . No backwards compatibility, either API or ABI, will be provided. Expect any code using these libraries to need to be updated and recompiled after any Flutter update Writing plugins is supported on