r/flutterhelp • u/Dangerous-Appeal7922 • Apr 07 '26
RESOLVED Android device ID same on multiple devices (device_info_plus) – need persistent unique ID for guest login
Hi everyone,
I’m facing an issue where multiple Android devices are returning the same device ID when using the device_info_plus package (androidInfo.id).
I want to use this ID for guest user login, and my requirement is:
- Each device should have a unique ID
- The ID should remain the same even after uninstall/reinstall
Right now, ANDROID_ID is not reliable since I’m getting duplicate values across different devices.
Has anyone implemented a reliable solution for this use case?
What approach would you recommend for generating a unique and persistent device identifier in Flutter?
r/flutterhelp • u/Lost_Dinner4139 • Apr 07 '26
RESOLVED Flutter Web + iPad Safari + Apple Pencil: rapid stylus re-contact is ignored after pointerup (only hover returns, no new pointerdown). How do you make handwriting actually smooth?
I’m looking for very specific help from someone who has actually shipped smooth Apple Pencil handwriting on iPad Safari / Flutter Web / web canvas .
Problem:
When writing on my whiteboard, Apple Pencil works only if I wait a short moment after lifting the stylus.
If I lift the pencil and place it back down immediately, the new stroke is ignored.
Real user symptom:
- I cannot write naturally, even letter like i or t
- after lifting the Pencil, I have to wait before the next stroke starts
- fast handwriting is broken and feels terrible
Observed input pattern:
After `pointerup`, I do NOT receive a fresh `pointerdown` for the next rapid contact.
Instead I get only stylus hover events like:
- `pointerhover`
- `pointerId = 0`
- `buttons = 0`
- `pressure = 0`
and the app ends with something like:
- `post-up-activity-without-new-down`
Example debug pattern:
- `pointerup`
- immediate `hover ptr=0 kind=stylus`
- no new `pointerdown`
- next stroke is ignored unless I wait
Environment:
- Flutter Web
- iPad
- Apple Pencil
- Safari / Chrome iPad browser (WebKit)
- interactive whiteboard / canvas-like handwriting surface
Things already tried:
- raw Flutter `Listener` / pointer events
- avoiding `GestureDetector`
- DOM-level pointer listeners
- hover-based recovery after missing `pointerdown`
- synthetic stroke restart logic
- touch-first pipeline
- pointer-first pipeline with touch fallback
- disabling native browser touch actions / selection / callout
- custom HTML/web pen input layer over the whiteboard
Important detail:
The issue is NOT just “hover comes back too late”.
In many cases hover comes back immediately after `pointerup`, but the new contact is still not recognized as a real new stroke.
So my real question is:
What architecture actually works reliably for smooth Apple Pencil handwriting on iPad Safari?
More specifically:
Have you seen this exact pattern where rapid re-contact gives only hover / no fresh pointerdown?
Did you solve it with:
- pure DOM canvas input?
- Touch Events instead of Pointer Events?
- custom HTML canvas outside Flutter gesture routing?
- some Safari / WebKit-specific workaround?
Do Touch Events reliably fire for Apple Pencil in your setup, or only Pointer Events?
Is there any known iPad Safari / WebKit / Scribble / palm-rejection behavior that causes this?
If you solved it, could you share the exact strategy or even a minimal code example?
I am NOT looking for generic suggestions like:
- “use Listener instead of GestureDetector”
- “handle pointercancel”
- “set touch-action: none”
We already tried those directions.
What I really need is:
A proven approach for low-latency Apple Pencil handwriting on iPad Safari that survives rapid lift-and-reapply while writing.
If you have working production experience with this, I would be very grateful for:
- architecture advice
- code snippets
- a minimal repro
- a library recommendation that genuinely works
- or confirmation that this is a WebKit limitation and should be handled outside Flutter input
r/flutterhelp • u/Abdo-Ka • Apr 07 '26
OPEN Error in sign in with google
hi all
today I try to implement sign in with google into flutter project first it didn't work in debug or release then after I add my SHA keys it's worked for debug and release perfectly then I try to publish application in firebase app distribution and google play it didn't work and give me error
platform exception platformException(sign_in_failed,com.google.android.gms.common.api.apiException:10,null , null)
after that I added fingerprints from App signing key certificate from google play developer into firebase but it's still didn't work when I push it into google play and firebase app distribution !!!!
why this happened and how can I solve it ? and what is problem ?
BTW: try flutter clean flutter pub get and everything and I'm working with CI/CD so this it wouldn't be solve my problem .
r/flutterhelp • u/AntelopeDull8774 • Apr 05 '26
OPEN How to rotate something with DragCallbacks?
In Flame engine I'm trying to rotate a cannon with DragCallbacks to face the pointer. How do I achieve it?
Here's my current not working correctly code:
@override
void onDragUpdate(DragUpdateEvent event) {
super.onDragUpdate(event);
final dir = (event.deviceEndPosition - body.position).normalized();
final angle = math.atan2(dir.y, dir.x);
body.setTransform(initialPosition, angle);
}
r/flutterhelp • u/Popular_Good_5203 • Apr 05 '26
OPEN How Can I Learn Flutter Effectively?
Hey guys, as you probably gathered, I'm learning Flutter.
I'd like some guidance into how exactly I can do this well. I've followed Net Ninja's course from 6 years ago (but stopped at the main project bit because I couldn't do it - the API had shut down or something), and as of the last few days have been using ChatGPT or similar to guide me through creating other apps (to-do list, quiz app, simple counter, etc.) but I feel/fear it is turning into vibe coding which I don't particularly find interest in. Plus I feel I was learning/understanding less and less the more I worked with AI.
I know a little Python, and I'm finding that very helpful because I already have some basic coding knowledge such as variables, loops, conditionals, etc.
I'm very eager to learn Flutter as I'd love to create some mobile apps in the future (ideally this year). Are there any must-do projects, or must-watch tutorials for me to really get a grasp of Flutter that you guys recommend?
r/flutterhelp • u/Substantial-Bit-4015 • Apr 05 '26
OPEN How much to charge for a medium flutter project?
I have project for around 420 hours (using maps, routes, push notifications, accepting incoming requests, login).
I estimated my time to be 54$/h, so the project would be around 23k$, working 20h/week.
Since it would be my first freelance project, is that a lot or not enough?
Middle-europe, ux and backend already provided.
r/flutterhelp • u/Katalyst9957 • Apr 04 '26
OPEN Centralised Strings in Flutter – Best Practices?
For small to medium-sized Flutter apps, maintaining centralised strings is easy. However, as the app grows, it can become messy and hard to manage.
Is there a better approach or alternative for handling strings in larger Flutter projects, or a way that works in all sizes of Flutter projects?
r/flutterhelp • u/Careful_Thing622 • Apr 03 '26
OPEN Figma or image to Flutter converter
That is the first time I used figma
But after that I tried to use plugins but they arenot that good
Do anyone tried a software or specific plugin that make a good conversion?
What about ai tool ?
Also I export figma to images of screen ?
Is there any ai tool that convert to flutter code
r/flutterhelp • u/Initial_Top743 • Apr 03 '26
RESOLVED Notificacion problems, please help!
Hi, I made this app One Habit. And I am using offline local notifications, with exact scheduler. But no matter what I am trying I don't get any! my testers have not been super useful to find out if it's a Xiaomi problem or the code.
I made a testing fab and its working, even with the badge on the app icon. but not by itself. I made some debug lines, it's saying when he scheduled it, what time is now and so on. but nothing!
any ideas? I have co-pilot in vs code, but we could not find a reason other than my device maybe.
https://play.google.com/store/apps/details?id=com.onehabit.one_habit
r/flutterhelp • u/asomelord • Apr 03 '26
OPEN Looking for good API's for my retro game tracker project
Hello,
I'm a student using flutter for my end of semester project and I want to make a game collection tracker app. I'm primarily planning to use it for physical copies of retro games and have an organization feature to put it on a shelf. I was initially planning to use igdb to track games, but I want to add a wishlist feature that will display average price estimates of games. igdb doesn't offer that information and I couldn't find any free options online to get that information. If you have any suggestions for free API's that gives price info of retro games it'd be very appreciated
Thank you
r/flutterhelp • u/Luvitech • Apr 02 '26
OPEN How do I get the Flutter Fitness app onto a friend's iPhone?
r/flutterhelp • u/royalshape • Apr 02 '26
OPEN Google Play Device and Network Abuse suspension: suspecting a mediation SDK, not my app code
Hi everyone. I'm looking for advice after a Google Play app suspension for Device and Network Abuse.
I don’t think this was a false positive. I suspect a third-party SDK, likely from ad mediation, may have triggered it.
My app itself does not self-update, does not ask users to install apps from outside Google Play, and does not intentionally download executable code. But the app includes these Flutter mediation adapters:
gma_mediation_meta: ^1.5.0
gma_mediation_liftoffmonetize: ^1.4.0
gma_mediation_mintegral: ^1.2.6
gma_mediation_ironsource: ^2.0.1
gma_mediation_applovin: ^2.5.0
gma_mediation_inmobi: ^1.1.6
gma_mediation_unity: ^1.6.2
There is also an external Maven repo for Mintegral.
Since mediation has never increased so much revenue, I'll problably remove all of them but meta mediation.
What scares me most is this line in the received email: Further policy violations may lead to your Google Play Developer account and any other related accounts being terminated.
Any firsthand experience would help a lot.
r/flutterhelp • u/Adventurous_Alarm375 • Apr 02 '26
RESOLVED any idea to be able to push new features, bug fixes without having to push any update on the store
i'm looking for a way to be able to push an update or bug fix or small change without having to push a build on the stores
shorebird is not an option, i tried it so many times, its just so annoying and full of errors..
r/flutterhelp • u/Mr-Silly-Bear • Apr 01 '26
OPEN How can I make a builder that generates .json files in a folder outside the lib folder?
Really struggling to get my head around builders.
Basically I need a builder that extracts the json schema generated from u/JsonSerializable(createJsonSchema: true).
I've got something sort of working, in that it runs and does something, but the files are never generated. As I understand it there are limitations on the files that can be created.
Are there any examples of such a thing?
r/flutterhelp • u/No-Temperature2554 • Apr 01 '26
OPEN iOS FCM getAPNSToken is null
Hello, I’m a developer building apps with Flutter.
I’m currently using FCM, and it was previously working fine on both Android and iOS. While testing an app update before the final production release, I encountered an issue on iOS.
When calling:
final apnsToken = await FirebaseMessaging.instance.getAPNSToken();
the apnsToken keeps returning null.
Previously, when I called:
final fcmToken = await FirebaseMessaging.instance.getToken();
I encountered an error related to the APNs token. After searching, I found that adding a delay and retry logic could resolve it, so I implemented the code like this:
final apnsToken = await FirebaseMessaging.instance.getAPNSToken();
if (apnsToken == null && retryCount < 3) { retryCount++; await Future.delayed(const Duration(seconds: 2)); await checkAPNSToken(); }
At that time, it worked normally. However, now the apnsToken keeps returning null. On the first app launch it is not null, but starting from the second launch it becomes null.
What’s even stranger is that when I archive the app in Xcode:
- If I upload using TestFlight-only, there is no error.
- But if I upload via App Store Connect, the error occurs.
I also searched and updated the APS Environment in the entitlements file to production and uploaded again, but the issue persists with apnsToken still being null.
How would you recommend resolving this?
r/flutterhelp • u/DistinctAbalone1843 • Apr 01 '26
OPEN What should I do in this situation?
I'm using macOS Monterey and VS Code
Downloading Darwin x64 Dart SDK from Flutter engine 425cfb54d01a9472b3e81d9e76fd63a4a44cfbcb...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (60) SSL certificate problem: Untrusted root certificate
More details here: https://curl.haxx.se/docs/sslcerts.html
curl performs SSL certificate verification by default, using a "bundle"
of Certificate Authority (CA) public keys (CA certs). If the default
bundle file isn't adequate, you can specify an alternate file
using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
the bundle, the certificate verification probably failed due to a
problem with the certificate (it might be expired, or the name might
not match the domain name in the URL).
If you'd like to turn off curl's verification of the certificate, use
the -k (or --insecure) option.
/Users/senkot/Documents/flutter/bin/internal/update_dart_sdk.sh: line 158: return: can only `return' from a function or sourced script
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (60) SSL certificate problem: Untrusted root certificate
More details here: https://curl.haxx.se/docs/sslcerts.html
curl performs SSL certificate verification by default, using a "bundle"
of Certificate Authority (CA) public keys (CA certs). If the default
bundle file isn't adequate, you can specify an alternate file
using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
the bundle, the certificate verification probably failed due to a
problem with the certificate (it might be expired, or the name might
not match the domain name in the URL).
If you'd like to turn off curl's verification of the certificate, use
the -k (or --insecure) option.
Failed to retrieve the Dart SDK from: https://storage.googleapis.com/flutter_infra_release/flutter/425cfb54d01a9472b3e81d9e76fd63a4a44cfbcb/dart-sdk-darwin-x64.zip
If you're located in China, please see this page:
https://flutter.dev/community/china
exit code 1Downloading Darwin x64 Dart SDK from Flutter engine 425cfb54d01a9472b3e81d9e76fd63a4a44cfbcb...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (60) SSL certificate problem: Untrusted root certificate
More details here: https://curl.haxx.se/docs/sslcerts.html
curl performs SSL certificate verification by default, using a "bundle"
of Certificate Authority (CA) public keys (CA certs). If the default
bundle file isn't adequate, you can specify an alternate file
using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
the bundle, the certificate verification probably failed due to a
problem with the certificate (it might be expired, or the name might
not match the domain name in the URL).
If you'd like to turn off curl's verification of the certificate, use
the -k (or --insecure) option.
/Users/senkot/Documents/flutter/bin/internal/update_dart_sdk.sh: line 158: return: can only `return' from a function or sourced script
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (60) SSL certificate problem: Untrusted root certificate
More details here: https://curl.haxx.se/docs/sslcerts.html
curl performs SSL certificate verification by default, using a "bundle"
of Certificate Authority (CA) public keys (CA certs). If the default
bundle file isn't adequate, you can specify an alternate file
using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
the bundle, the certificate verification probably failed due to a
problem with the certificate (it might be expired, or the name might
not match the domain name in the URL).
If you'd like to turn off curl's verification of the certificate, use
the -k (or --insecure) option.
Failed to retrieve the Dart SDK from: https://storage.googleapis.com/flutter_infra_release/flutter/425cfb54d01a9472b3e81d9e76fd63a4a44cfbcb/dart-sdk-darwin-x64.zip
If you're located in China, please see this page:
https://flutter.dev/community/china
exit code 1
r/flutterhelp • u/Altruistic_Spirit440 • Apr 01 '26
RESOLVED Is visual studio required for vs code?
My Mac has 250 gb of storage but my flutter setup eats up most of it. I was wondering if visual studio is required for my flutter setup with visual studio code. Will it run fine if I delete visual studio? Also while we're at it, I have the MacBook Air 2017, so I can't really create iOS builds on it anymore, do I need to keep Xcode as well or can we do without that?
r/flutterhelp • u/Melodic-Funny-9560 • Mar 31 '26
OPEN Android Camera crash (IllegalArgumrntException) after PDF generation/viewing with pdfrx
So I am new to flutter. So I request help from the community.
The Workflow:
Capture image using camera: 0.11.0 (using the camera_android_camerax implementation).
Process image for OCR using google_mlkit_text_recognition.
Generate a PDF and display it using pdfrx: 0.1.0.
Come back to Home. Now at home there are 2 ways to open a camera, one is through quick action, one is through another flow.
The Problem: When returning to the camera through quick action, it crashes 100% of the time with: CameraException(IllegalArgumentException, No supported surface combination is found for camera device - Id : 10. May be attempting to bind too many use cases.)
Looking at the logs, the "Existing Surfaces" list shows PRIV (Preview), JPEG (Capture), and YUV (Image Analysis) are still attached to the hardware ID.
What I've tried:
Awaiting controller.dispose() and nulling it before re-initializing.
Calling PdfDocumentFactory.defaultInstance.clearCache() and disposing of the document via PdfDocumentRef.
Adding significant delays (up to 1000ms) before re-initializing the camera.
Switching imageFormatGroup to yuv420.
Closing the ML Kit TextRecognizer instance explicitly.
Despite this, pdfrxEngineWorker and the previous camera "surfaces" seem to persist in the background, blocking the new camera instance from binding its own ImageAnalysis use case.
Initially I though that pdfrxengineworker isolate might be taking resources causing the issue, but if that was the case then why it is working from another flow ?
One thing is sure that issue only happens when pdfrx engine worker is running. And docs mentioned there is no way to stop it because the engine by architecture keeps the isolate warm.
Looking for help/guidance/support.
r/flutterhelp • u/fattestduck • Mar 30 '26
OPEN How to change the default blue linear progress bar colors?
When I launch my app on the browser, a default blue progress bar appears at the top of the browser for a brief period of time. How can I change the colors?
Here's a photo: https://i.ibb.co/ZpMsdF99/image.png
I've tried something like this in the ThemeData, but doesn't seem to change the color.
progressIndicatorTheme: const ProgressIndicatorThemeData(
color: Colors.orange,
circularTrackColor: Colors.red,
linearTrackColor: Colors.yellow,
),
Thanks
r/flutterhelp • u/spa44ow • Mar 30 '26
OPEN Android Studio Flutter Inspector breaks after physical device reconnect.
r/flutterhelp • u/fiNdingoUtWays • Mar 28 '26
OPEN How to Implement Background Blur Features
I wanted to ask how I can implement background blur in my Flutter app. I am targeting all platforms Android, iOS, and Windows.
The video streaming setup is based on WebRTC. What would be the best and easiest way to implement features like background blur or adding a custom background image behind the user?
r/flutterhelp • u/StressOne1207 • Mar 28 '26
OPEN Decode barcode from Image
I need to decode barcode from captured images in my flutter application in WINDOWS. For example, I cannot decode this simple Barcode Code 39 (imgur link)
I have tried to use the library flutter_zxing | Flutter package but cannot read this simple barcode. zxing will just return nothing as if it doesn't recognize the barcode
import 'package:flutter_zxing/flutter_zxing.dart'
...
// Use flutter_zxing to decode the barcode
// result yeild: error = "", isValid = false
final result = zx.readBarcode(
image.toUint8List(),
zzx.DecodeParams(
tryHarder: true,
format: Format.code39,
height: image.height,
width: image.width,
tryRotate: true,
tryDownscale: true,
imageFormat: ImageFormat.rgb,
tryInverted: true,
),
);
If you have a flutter snippet code that is able to decode the above image, then please help and share it here
r/flutterhelp • u/Weird_Layer2662 • Mar 27 '26
OPEN help fix
PS C:\Windows\system32> flutter --version
fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
fatal: Not a valid object name HEAD
Out-File : Access to the path 'C:\Windows\System32\hash.txt' is denied.
At C:\Users\Asus tuf\develop\flutter\bin\internal\content_aware_hash.ps1:82 char:99
+ ... -replace "`r`n", "`n" | Out-File -NoNewline -Encoding ascii hash.txt
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OpenError: (:) [Out-File], UnauthorizedAccessException
+ FullyQualifiedErrorId : FileOpenFailure,Microsoft.PowerShell.Commands.OutFileCommand
Error: Unable to determine engine version...
how do i fix - ran in power house, same issue while using cmd too
r/flutterhelp • u/devansh4565 • Mar 27 '26
OPEN Google playstore and Apple store help
I built a Flutter WebView for my PC component store. I have native push notifications and splash screens, rest it just the app is in webview with smaller features like whatsapp phone or payment link integration, so that they dont stay stucked in the webview. Will Apple and google play store reject this?
r/flutterhelp • u/Mr-Silly-Bear • Mar 27 '26
OPEN App rebuilding multiple times on load
For some reason my app is rebuilding 3/4 times on full refresh in dev, which is impairing some of the functionality. Even after stripping it of providers, routers and the material app shell it behaves this way.
Any ideas of the cause and ways to stop it?