Questions tagged [flutter-desktop]

Dedicated to questions about Flutter desktop implementation. Use (flutter) instead for questions about flutter in general, or (flutter-web) if question are about issues using flutter to design web applications.

352 questions
0
votes
0 answers

How to make Flutter web and desktop app look exactly the same scale

Flutter widgets look way bigger in Chrome compared to app run on a desktop (in my case on Linux). I'd like to either scale down web or scale up desktop app to make all the widgets look exactly the same. I've already tried setting visualDensity or…
tomrozb
  • 25,773
  • 31
  • 101
  • 122
0
votes
1 answer

Running Java on Flutter Web/Desktop

I was looking for a way to possibly use a java library of my own inside of my Flutter App. I did some research but was only able to find information about how to integrate flutter with native Java libraries on Android exclusively. Is there a way to…
David Wicker
  • 73
  • 1
  • 1
  • 13
0
votes
1 answer

ScaleTransition anmation not giving smooth animation

I am working on flutter application. I want to to perform scale animation to Card widget and i am using ScaleTransition widget for that purpose. The animation is working but it is not smooth. All the descendent widget of Card widget (wgich are…
Dev94
  • 757
  • 6
  • 24
0
votes
1 answer

When a checkbox or button is clicked, how can I detect if a key is pressed?

For example is the user clicks a checkbox, how can I tell if the user was holding SHIFT, CTRL or any other key pressed ? Checkbox( value: checked, onChanged: (value) { setState(() { // do something }); }, ),
D. Joe
  • 573
  • 1
  • 9
  • 17
0
votes
1 answer

getLibraryDirectory not working for desktop app

i'm working on Flutter desktop application and got stuck at a point. I want to create local database for data storage. I'm using path_provider plugin to get path of directory for saving database file. the function getLibraryDirectory() not working…
Dev94
  • 757
  • 6
  • 24
0
votes
1 answer

Flutter Windows option disabled in IntelliJ IDEA

Windows option is disabled while creating a new Flutter project in IntelliJ IDEA. I've upgraded my Flutter to Flutter 2 stable channel but getting Windows option disabled whereas I've also installed Visual Studio 2019 in my PC. Here's my Flutter…
Feroz Khan
  • 2,396
  • 5
  • 20
  • 37
0
votes
1 answer

Flutter Listview not updating list items on UI

I'm working on a flutter app and using ListView.builder widget to show my data. I'm fetching data from database and showing it in listview. After i modify single listitem i want to refresh whole listview widget. Currently the problem is that data…
Dev94
  • 757
  • 6
  • 24
0
votes
0 answers

Flutter code not compiling after upgrade to version 1.27.0-8.0.pre

I'm trying to run my desktop flutter application. Since i've upgraded my flutter version to dev channel (flutter version 1.27.0-8.0.pre), code is not compiling after that. It shows following error on code compilation. Please help me out. Thanks
Dev94
  • 757
  • 6
  • 24
0
votes
0 answers

Exception throws while printing invoice in Flutter

i am currently working on printing invoice on desktop application using the following plugin. https://pub.flutter-io.cn/packages/printing When i execute print command to print invoice pdf, the code throws exception [ Unhandled Exception: Exception:…
Dev94
  • 757
  • 6
  • 24
0
votes
2 answers

How to edit plugin to make it working for Desktop Application

i'm working on a task for detecting USB connected devices (printers) for Flutter desktop application. I found many plugins but they are not working on desktop app. The code throws exception in detecting list of connected USB devices The exception it…
Dev94
  • 757
  • 6
  • 24
0
votes
1 answer

How can I listen all global key press events from my app running in the background?

I'm trying to develop a flutter desktop app which automatically tracks how we spend time on our devices. How can I listen all global key press events from my app running in the background?
Tom
  • 478
  • 1
  • 6
  • 17
0
votes
1 answer

Wrong full snapshot version, expected '71bf5.... found 'aec28...' the Dart compiler exited unexpectedly

Using Ubuntu 20 with ARM v8 Raspberry pi, flutter Linux desktop development and latest dart & flutter SDK. There are no errors while creating a project and also in flutter doctor, while trying to run the project I got stuck with this error. flutter…
balaji b r k
  • 65
  • 2
  • 6
0
votes
1 answer

What is the simplest way to list the files from a local folder?

I would like to read a path (not necessarily use a full blown file selector), and list the files in that path and be able to read their contents. I want it to run on desktop MacOS. I tried some stuff, but couldn't make it work. I would appreciate…
ccc
  • 2,129
  • 4
  • 24
  • 31
0
votes
1 answer

Does the latest version of, the flutter plugin, url_launcher supports opening of desktop(windows, macOS) directory in native file explorer?

I checked its source code, for both macOs and windows, here . Since, swift and c++ are not my strong languages but having a brief look at the code made me wonder if the support, for opening the directory in the native file explorer (of windows and…
rockaboy
  • 11
  • 3
0
votes
1 answer

How to use a String returned by a Future method in flutter?

I'm trying to read a json file's components using the following method: import 'dart:io'; class CharacterDataReader { Future read() async { final file = File('assets/data/character_data.json'); String data = await…
RikSantra
  • 81
  • 1
  • 10