All Questions
Tagged with flutter-desktop or flutter
201,055 questions
0
votes
0
answers
17
views
How to remove the border or padding from CustomDropdown in Flutter using Dart?
enter image description here
I'm using the animated_custom_dropdown library version 3.1.1.
I've run into this problem:
By default, CustomDropdown comes with a transparent padding or border on the left ...
-3
votes
0
answers
28
views
Looking for Flutter (Dart) courses [closed]
Всем привет, нужна ваша помощь, ищу курсы чтобы создавать приложения на фреймворке Flutter. Только не знаю как обучиться, я посмотрел курс на ютубе и уже прошел. Теперь хочу взять более мощный курс ...
0
votes
1
answer
33
views
Is there any issue using Get snackbars & loaders and closing them using Get.back() in flutter sdk v3.38.3?
I recently upgraded to flutter v3.38.2 from v3.29.2 and found an issue that Get.back() & get.closeAllSnackbars() throwing some LateInitializer error for Controllers. Facing this issue post upgrade ...
-1
votes
0
answers
29
views
Flutter (Xcode 26.1.1) error Command PhaseScriptExecution failed with a nonzero exit code
I'm encountering this error while building the iOS app with Flutter:
Command PhaseScriptExecution failed with a nonzero exit code
I've tried all the available solutions.
If anyone knows how to resolve ...
Advice
1
vote
2
replies
52
views
Flutter build issues
I have a old laptop and I started my journey in flutter .The problem is with flutter build .every time I run flutter build command firstly it takes much time I also tried to change my local. ...
Tooling
1
vote
0
replies
34
views
What is the current recommended way to run integration tests in Flutter (since integration_test is discontinued)?
I’m setting up integration tests in a Flutter project and noticed an inconsistency between the official documentation and the current state of the packages.
The official Flutter documentation still ...
0
votes
0
answers
38
views
Flutter Google Maps always follows system theme on Android (can’t force light mode)
I’m experiencing an issue with the Google Maps Flutter Navigation SDK on Android.
I want my map to always stay in light mode, regardless of the device’s system theme. My app is forced to light mode ...
0
votes
0
answers
48
views
Turnstile on Android Version 9 with webview 66.0.3359.158
(sorry for poor english)
So, I'm working on integrating cloudflare turnstile into a flutter application that is used in Kiosk machine. The machine has android version 9 and webview version 66.0.3359....
-2
votes
0
answers
50
views
SignalR not working in flutter for my colleague - Hub connection is getting disconnected [closed]
Hub connection is getting disconnected , its working in local , but when deployed to cloud its not working , but there is no issue from server end because the same thing i working fine in Web ...
Best practices
0
votes
1
replies
52
views
How to build an OCR system in Flutter that can extract structured data from multiple bill formats?
I am trying to build an OCR feature in my Flutter app that can read hotel bills in multiple formats. The challenge is that these bills do not follow a fixed layout. From each bill, I need to extract ...
0
votes
1
answer
50
views
Google Sign-In fails with ApiException: 10
i am new to Flutter + Firebase Auth and I’m having a strange intermittent issue with Google Sign-In.
Sometimes it works perfectly, and sometimes I get these errors:
PlatformException(channel-error, ...
0
votes
0
answers
57
views
My Flutter app in the emulator can't acess the localhost [closed]
Enter image description here
My Flutter app can't access the local host. Before I delete the app in the emulator and built againt, it's still running normally?
I also check the data in Postman, and I ...
Best practices
0
votes
0
replies
38
views
How to force Flutter ShowCaseView to scroll a highlighted widget to the top instead of the center?
I am using the showcaseview package in Flutter to highlight sections of a long scrollable page.
The problem is:
When a widget is highlighted, ShowCaseView automatically scrolls it only to the middle ...
0
votes
0
answers
29
views
Huawei devices open Huawei Pay instead of my Flutter NFC app when scanning a tag during on my app
I’m building an NFC app in Flutter, and on Huawei devices I have a problem:
when I scan any NFC tag, Huawei Pay automatically opens, and my app goes to the background.
My app receives the NFC event, ...
-1
votes
0
answers
42
views
Can't rotate a video file with metadata in Flutter
I need to be able to rotate a video in Flutter without re-encoding it.
In Flutter I’m using the ffmpeg_kit_flutter_new 4.1.0 plugin, and for the rotation I’m trying the following command:
ffmpeg -i ...
0
votes
1
answer
40
views
Flutter and Android Studio: "Lost connection to device" (emulator) after a random number of minutes (Windows Home 11)
I have this issue where the connection to device is lost after a random number of minutes, there is no error or anything, this is what the terminal shows:
flutter run --flavor staging -t lib/...
-1
votes
1
answer
84
views
Flutter app shows black screen on iOS device (works on Android, no errors)
I'm trying to run my Flutter app on a real iOS device.
The app installs successfully, Firebase initializes, and logs show normal navigation (Splash → Onboarding).
But the screen becomes completely ...
0
votes
0
answers
38
views
Flutter build failing with cannot write output
I am working on a Flutter app where I use the plugin https://pub.dev/packages/photo_manager for querying the entries of the gallery on Android (and in the future on iOS). At first, I ran into the ...
2
votes
0
answers
64
views
Full-screen notifications downgraded on Wear OS (Pixel & Samsung) when minifyEnabled=true, despite ProGuard keep rules
I’m debugging - with ChatGPT since I am not very expert - a Wear OS app with a Flutter plugin that triggers a full-screen feedback screen via a Foreground Service and a FullScreenActivity.
Everything ...
-2
votes
0
answers
41
views
Command PhaseScriptExecution failed with a nonzero exit code or "Improperly formatted define flag" [closed]
Final Working Solution (after struggling with this bug for a long time)
I ran into this issue after reinstalling Android Studio (I use it for Flutter).
For a long time I tried to fix the error by ...
2
votes
0
answers
51
views
flutter version 3.38.2 slow api calls
A dio.get() call that takes only 150 ms with curl blocks for 6–8 seconds on the client side.
The pause happens before Dio prints the first REQUEST log line, so the delay is not caused by DNS, TLS, or ...
0
votes
0
answers
30
views
Build Failure: checkDebugAarMetadata – Plugin requires compileSdk 34+
Build Failure: checkDebugAarMetadata – Plugin requires compileSdk 34+
Execution failed for task ':flutter_ringtone_player:checkDebugAarMetadata'.
> A failure occurred while executing ...
Advice
0
votes
1
replies
36
views
Flutter: how to make window corners rounded like in macOS 26?
I can’t figure out how to make the window corners on macOS look rounded like in macOS 26.
Flutter
Could you please tell me how to achieve this?
Best practices
1
vote
2
replies
61
views
How to avoid passing groupValue and onChanged to both RadioGroup and child widget in Flutter?
I’m using RadioGroup and a custom radio button widget.
Right now, I’m forced to pass groupValue and onChanged twice — once to RadioGroup and again to my _buildRadioButton widget.
RadioGroup<bool>...
0
votes
0
answers
49
views
Force InteractiveViewer to show full width (e.g. BoxFit.fitwidth) of image regardless of screen size
TLDR: how to fitWidth on an image inside an InteractiveViewer
I am using an InteractiveViewer in my flutter app to display a photo of the page of a book.
Previously, I was just using a ...
0
votes
0
answers
53
views
How to expand SliverPersistentHeader when reaching top of page if floatHeaderSlivers = true?
When scrolling down the page, the top part of the SliverPersistentHeader widget (topPanel) is hiding, and when scrolling up, it is shown (NestedScrollView.floatHeaderSlivers = true). The topPanel ...
0
votes
1
answer
62
views
How to attach the debugger for Flutter Web WASM?
I'm trying to debug a Flutter Web app compiled in WASM mode, but the debugger (DevTools) won’t attach; WebStorm keeps showing Waiting for debug connection... indefinitely.
For context, I'm compiling ...
1
vote
0
answers
106
views
Android 15 & 16 - 3 Button Navigation - Icon Color Problem
Is there a way to change the icon color of the 3-button navigation bar on Android 15 & 16? I’ve already changed the background color of the status bar, the icon color of the status bar, and the ...
-1
votes
2
answers
68
views
I'm trying to display a SnackBar using GetX in Flutter, but it is not showing. What could be the reason, and how can I fix it?
Get.snackbar(
easy.tr("missing_information"),
easy.tr("enter_email_password"),
backgroundColor: AppColors.redColor,
colorText: AppColors.whitetextColor,
snackPosition: ...
Tooling
0
votes
2
replies
45
views
Minimise and Max Size the Container widget and Text
[making smaller and bigger the containerI tried to find this but didn't get any solution that how to min size or max size the container widget like this only when pressed on the button using a button ...
-1
votes
1
answer
98
views
Flutter App Crashes on iOS 26 Physical Device with "mprotect failed: Permission denied" Error
Problem:
My Flutter app crashes immediately on launch when running on an iOS 26 physical device. The app works fine on iOS Simulator but fails on real devices with the following error:
mprotect failed:...
0
votes
0
answers
33
views
Firebase background handler on iOS runs inconsistently (works on Android)
I’m building an end-to-end encrypted chat app using Flutter.
When a Firebase push notification arrives, my background message handler (_firebaseMessagingBackgroundHandler) connects to my WebSocket ...
0
votes
0
answers
43
views
libpyjini.so not found - White screen on smartphone
I'm trying to generate an APK build, and I'm getting the following error:
#Resumo do Erro:
nativeloader: Load libpyjni.so using class loader ns clns-4 (...) dlopen failed: library "libpyjni.so&...
-1
votes
1
answer
67
views
How to stop Lottie animation when Flutter web app finishes loading?
How to stop Lottie animation when Flutter web app finishes loading?
I'm trying to display a Lottie loading animation while my Flutter web app loads, and hide/stop it once the app is ready. The ...
0
votes
1
answer
59
views
Re-render issue with Getx and ScreenUtil
This code shows the issue of re-renders caused when a TextField gets focussed (or when keyboard pops up) only in flutter web when opened on mobile.
If I remove screenutil I can delete the ...
0
votes
0
answers
50
views
Text inside Row doesn’t truncate correctly when resizing (IntrinsicWidth + Flexible causes inconsistent behavior)
I have two pill-style containers inside a Row, and each container shows text. I want each container to use only as much width as its text needs, and when the window becomes tight, both sides should ...
0
votes
2
answers
69
views
Local Notification not working for android
i am creating a app, in which i want the app to send a notification at a particular time.
I am using flutter_local_notification plugin: 17.2.1.
the notification is getting scheduled , but never gets ...
1
vote
0
answers
61
views
Flutter APK in Android Studio “Analyze APK” shows 16KB page size warning for libwebcrypto.so
I recently updated my Flutter project to version 3.38.1.
Google Play now requires APKs and AABs to use a 16 KB page size for native libraries.
I have verified the alignment in:
zipalign -c -v -P 16 &...
Advice
0
votes
3
replies
86
views
How to convert a color string (hex or named color) to Color in Flutter?
I have a string in Flutter that represents a color. The string can be:
A hexadecimal color code like #FFFFFF or #000000
A named color like "white", "black", "red"
I ...
0
votes
0
answers
57
views
How to make my Flutter (SDK 3.10) app and dependencies compatible with a "16 KB page size" limit (can't upgrade SDK)? [closed]
Goal
I need a clear, step-by-step process I can follow to make the app + dependencies compatible with that 16 KB page-size constraint without upgrading Flutter SDK. I am looking for concrete actions I ...
0
votes
1
answer
37
views
How to display a slect nicely in an ARB file (Flutter translation files) [duplicate]
I have a slect with many options, so I want to display on a new line to make make code more readable, like this:
"typeStation": "{type, select,
train{Station}
plane{Airport}
...
0
votes
0
answers
49
views
Double highlight in Flutter Web
When highlighting texts in Textfield => It shows two highlights and when scrolling, the other highlights remain at the same position
When highlighting texts:
When scrolling:
This only happens on ...
-4
votes
0
answers
245
views
How to install android emulator on Google Antigravity? [closed]
I can only run the emulator on Android Studio right now. But I want to preview directly in antigravity. How can I do that? Btw my project is Flutter.
0
votes
2
answers
95
views
Close a Card or some other widget inside a Dialog? It closes the Dialog itself
Perhaps it is a flaw of my design but as it is, I am showing a flutter_map inside a Dialog, using showDialog(...){...}. On that map I have several markers which when clicked a Card with some text pops ...
0
votes
0
answers
29
views
Javascript notificationclick is not called on Flutter web app debug build
I want to open a new page on notification click in my Flutter web app. Here is my service worker:
console.log("SW: test.js loaded");
self.addEventListener("push", event => {
console.log("SW: ...
0
votes
0
answers
89
views
What is the correct way to perform relative navigation in GoRouter?
I’m trying to use relative routing in GoRouter, but I’m running into a confusing issue.
Here is my code:
final GoRouter routerConfig = GoRouter(
initialLocation: '/',
routes: [
GoRoute(path: '...
-4
votes
1
answer
67
views
How to make flutter calculator [closed]
Title: Flutter Calculator Layout Issue - Buttons Not Displaying Correctly
Description:
I'm building a calculator app in Flutter and facing layout problems with the button grid. The calculator ...
1
vote
1
answer
54
views
SearchAnchor.openView() : change (inherited) width of SearchBar?
On my flutter_map I have an IconButton which it should cause a SearchBar to appear only when clicked. When search is done, the SearchBar can go into hiding again and only said icon be visible.
I have ...
-2
votes
0
answers
48
views
Can i give a value to a variable inside of an abstract class? [closed]
i know that we can not write code or return something inside a method in abstract class (well becuse its abstracted!)
what about variables inside of abstract class ? can i for example define a 'x' ...
-3
votes
0
answers
34
views
Does go_router actually call toJson() on extra parameters in mobile apps, or just check for its existence? [closed]
I'm using go_router in a Flutter mobile app (iOS/Android, not web) and getting this warning:
An extra with complex data type LocationProductSelectParams is provided without a codec.
The Mystery
...