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.
Questions tagged [flutter-desktop]
352 questions
1
vote
1 answer
Disable high DPI scaling for flutter on desktop
Is it possible to disable the high dpi scaling for a flutter app?
My layout works well, but when the scale factor is set to something very high the app becomes tiny.
Or is there atleast a way to take the scaling into account?

CaptainDario
- 83
- 1
- 7
1
vote
1 answer
How to set max/min size app in flutter desktop?
I am developing a Windows flutter application. By default, the user can make the app too small to overflow the text, or too large to disrupt the design of the app.
How can I solve this issue ?

GAMA
- 13
- 4
1
vote
1 answer
Flutter, local SQLite database and Role based access control
I am new in Flutter and still learn basics and my next step is to create user role-based authorization Flutter desktop app using local database (SQLite).
In the web I can't find any resources about this approach. Most of them is about Firebase…

Matteoni
- 87
- 1
- 11
1
vote
3 answers
Not able to debug desktop in flutter
I am trying to start Windows app for first time with default Flutter Project but it's showing this error,
Launching lib\main.dart on Windows in debug mode...
lib\main.dart:1
Can't load AOT data from…

Panth
- 35
- 6
1
vote
1 answer
Flutter desktop save pdf in user selected location
I need to save a invoice as pdf. The PdfServide is as below:
class PdfService {
static Future saveDocument({
required String name,
required Document pdf,
}) async {
final bytes = await pdf.save();
final dir = await…
user14709104
1
vote
1 answer
how to make local mysql connection open at the start of computer(windows)?
am trying to create an standalone desktop application in flutter which uses mysql as local database.
my problem is when i need to use database from my application i need to open mysql command line client and enter my password to start service( or…

mayur acharya
- 21
- 1
- 8
1
vote
1 answer
how to connect flutter desktop app to mysql database?
am trying to build an flutter standalone desktop application which should use local database
for storing and manipulating data.
how can i achieve this result?
i have used mysql_utils package, but some developers say that its not good to…

mayur acharya
- 21
- 1
- 8
1
vote
2 answers
Flutter desktop app for MacOS using extra binaries crashes when exported
I want to distribute a Flutter desktop app outside of App Store. The app includes some extra binaries using the assets key in pubspec.yaml. The binaries end up in this directory inside the…

Rafał G.
- 1,529
- 22
- 35
1
vote
1 answer
How to allow popup menu to go outside application window bounds in flutter desktop?
I don't even think this is possible but, what I'm looking for is to allow the showMenu() popup to go beyond the application window.
Currently, I'm using:
showMenu(
context: context,
items: [
PopupMenuItem(
…

exceptionsAreBad
- 573
- 2
- 5
- 17
1
vote
2 answers
How to get flutter windows desktop users screen width at runtime
So, normally I can get screen size by using MediaQuery.of(context).size, however I don't have access to context at runtime. Is there any package or API I can tap into to accomplish this ?
EDIT: Accepted @smorgan answer. Adding the pubspec.yaml entry…

exceptionsAreBad
- 573
- 2
- 5
- 17
1
vote
0 answers
Flutter GridView not showing equally spaced items
This is my code and it's supposed to create a uniform pattern:
GridView.builder(
physics: const NeverScrollableScrollPhysics(),
gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
crossAxisCount 30),
…

Shahzad Akram
- 4,586
- 6
- 32
- 65
1
vote
0 answers
Flutter - Prevent child Listener from triggering parent Listener
I want to implement a right click menu in flutter and the code look like this:
Listener(
onPointerDown: (event) {
if (event.buttons == 2) {
double dy = event.position.dy.ceilToDouble();
double dx =…

BookShell527
- 176
- 2
- 8
1
vote
3 answers
How to get the ScreenSize from a Flutter App for Windows Desktop?
WidgetsBinding.instance.window.physicalSize.width / WidgetsBinding.instance.window.physicalSize.height;
is 1024.0*1898.0,
and DesktopWindow.getWindowSize();
is Size(0.0, 0.0)
on a 4K monitor.
How can I get the real screen size?
(should be 2160*3840)

derChris
- 726
- 8
- 19
1
vote
1 answer
RawKeyboardListener not working on Flutter for Windows
I'm currently working on a Flutter app for Windows, and I try to detect keyboard inputs (like space, arrows, enter...).
For that purpose, I use RawKeyboardListener in my widget:
class _WaveformWidgetState extends State
{
FocusNode…

matteoh
- 2,810
- 2
- 29
- 54
1
vote
1 answer
Flutter Windows app crashes without error while loading multiple images from local disk
I created a multi image selector form field widget to use within a form with validation and so on, and it works fine; however, when I select 8 or more images from a file picker at once and add them to the selected images list, which would be…

Arin Faraj
- 358
- 2
- 14