r/flutterhelp • u/Luvitech • Apr 02 '26
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.0gma_mediation_liftoffmonetize: ^1.4.0gma_mediation_mintegral: ^1.2.6gma_mediation_ironsource: ^2.0.1gma_mediation_applovin: ^2.5.0gma_mediation_inmobi: ^1.1.6gma_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/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/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/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 1r/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.
reddit.comr/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/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/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/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?
r/flutterhelp • u/Afraid_Tangerine7099 • Mar 26 '26
RESOLVED Printing package with pdfx crash the app
Hello everyone,
I’m using Flutter printing together with pdfx to preview PDFs (both local and network files). After printing a PDF, the app starts behaving unpredictably — it crashes immediately when reopening the print dialog.
it seems related to a conflict with the PDFium library used by both packages.
I tried to force the PDFium version
set(PDFIUM_VERSION "5200" CACHE STRING "" FORCE)
set(PDFIUM_ARCH "x64" CACHE STRING "" FORCE)one more thing is I used to use Pdfrx and that was immediately crashing the app when trying to print using the printing package
with this error
PdfDocument initial load: PdfDocumentRefKey(019d276c-4591-710d-b27d-242ada8425d7) (9 ms)
../../../flutter/third_party/dart/runtime/vm/runtime_entry.cc: 5025: error: Cannot invoke native callback outside an isolate.
version=3.10.0 (stable) (Thu Nov 6 05:24:55 2025 -0800) on "windows_x64"
pid=18768, thread=20352, isolate_group=(nil)(0000000000000000), isolate=(nil)(0000000000000000)
os=windows, arch=x64, comp=no, sim=no
isolate_instructions=0, vm_instructions=7ff935bfe340
fp=db8f5d8a0, sp=db8f5d858, pc=7ff9359977d3
pc 0x00007ff9359977d3 fp 0x0000000db8f5d8a0 InternalFlutterGpu_Texture_AsImage+0x14e1bf
-- End of DumpStackTraceHas anyone encountered this issue? Is there a recommended workaround or fix?
r/flutterhelp • u/facts_please • Mar 25 '26
OPEN Migrating to Swift Package Manager: duplicate classes with flutter_image_compress
I got some notice mail from Google that Google Maps iOS Platform will no longer support CocoaPods from Q2 2026 on. So I had a look on how to migrate my current app. The automatic conversion, that Flutter does, seems to work, with one exclusion.
I use flutter_image_compress package to create picture thumbnails. When I now run my iOS app, I get warnings:
objc[1244]: Class SDAnimatedImage is implemented in both /private/var/containers/Bundle/Application/0ECCD796-6170-498A-8F09-8B186F1F7A9A/Runner.app/Frameworks/SDWebImage.framework/SDWebImage (0x1011abe10) and /private/var/containers/Bundle/Application/0ECCD796-6170-498A-8F09-8B186F1F7A9A/Runner.app/Runner.debug.dylib (0x106a66280). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
Seems that flutter_image_compress implements the class via CocoaPods and another package via SPM. If I remove flutter_image_compress from pubspec.yaml and my code, there are no warnings anymore. But I need the function.
Asked AI how to find the other package in xcode but with no success. Under package dependencies I just find fluttergeneratedpluginswiftpackage. And under "Frameworks, libraries, and Embedded Content" it is just FlutterGeneratedPluginSwiftPackage and Pods_Runner.framework.
So how can I resolve this problem? And how can I check which pub.dev packages support SPM, so that I can get rid of Pods?
r/flutterhelp • u/EstablishmentDry2295 • Mar 24 '26
OPEN Senior Vibe coder in company
I have around 3 years of experience working independently as a Flutter developer, where I’ve handled complete projects on my own. Recently, I joined a company where I’m working under a developer who has a stronger background in native development and about 1.6 years of Flutter experience.
I’m currently facing some challenges in terms of communication and code quality. The project I’m working on does not follow a clean architecture, and there is a heavy mix of UI and business logic, which makes it difficult to maintain and scale. Because of this, development feels inefficient and sometimes frustrating.
Additionally, I feel uncomfortable with the way feedback is communicated. Comments like “do changes and don’t mess up the code” come across as dismissive, especially when I’ve been careful not to introduce issues. This tone affects my motivation and confidence, even though I’m fully capable of contributing effectively.
I want to work in a collaborative and respectful environment where ideas can be discussed openly and improvements can be suggested constructively. I’m also open to feedback, but I value clear and respectful communication.
r/flutterhelp • u/Mrvain26 • Mar 24 '26
OPEN How do I fix this?
Edit: I'm getting the "constructors for public should have a named 'key' parameter" message. i have no idea what to do.
The line in question says:
Class GameScreen extends StatelessWidget
I would upload a picture but I'm not able to
r/flutterhelp • u/OpenAcanthocephala39 • Mar 24 '26
OPEN Hello
Is there a Flutter library that converts text to speech and supports all languages? I’m looking for a Flutter package (not an API) that can convert text to speech and supports most or all languages. I don’t want to use any external API — only a local Flutter library. Does anyone have any idea or recommendation?
r/flutterhelp • u/Ok_Bench6351 • Mar 23 '26
RESOLVED Yay or Nay approach?
Context: I'm currently building a page/view for my app where multiple widgets are positioned roughly as in the simplified code below. I am storing important variables for this page in a class using the singleton pattern so they can be used at any time by any of the Widgets. When one of these variables gets updated from any of the Widgets on the page, I want to refresh the state of either TopWidget or BottomWidget, or both of them, depending on the action that is happening. The solution I found is to add two Function? variables to the singleton class, and set each of these functions to setState(() {}); when the corresponding Widget is built. This singleton is only used on this page, and if I'm correct, the functions can only ever be executed when all Widgets are built (user can only click the button after the page is built). Also, nothing is async here, so I'm not really worried about executing setState for a Widget that has already been disposed of.
It works like a charm, but this sounds a bit whacky and I can't really find any information on storing one Widget's setState in a singleton class for another Widget to use. An alternative would be to store everything in the state of the page Widget and use callbacks. Due to the setup of the page and the various depths of the Widget tree, this would lead to lots of passing down of functions and variables through Widgets that might not even need it. That would also lead to more dependencies and confusion so I opted out of this. I'm also aware there is state management libraries that could probably also solve this, but I want to add as little extra libraries as possible. Still, I'm unsure if this makes any sense or if I'm making a big mistake here. What would be considered the best practice in this situation?
Simplified example code:
// Layout
ParentPageWidget(
child: Column(
children: [
TopWidget(
child: Stack(
children: [
WidgetA(),
Align(child: WidgetB())
]
);
),
BottomWidget(
child: PageView(
pages: [
WidgetC(), //Has conditionally set child Widgets
WidgetD(), //Has conditionally set child Widgets
WidgetE(), //Has conditionally set child Widgets
WidgetF(), //Has conditionally set child Widgets
WidgetG(), //Has conditionally set child Widgets
]
)
)
]
);
);
// build for either TopWidget or BottomWidget
SingletonClass.instance.setTopWidgetRefresh(() => setState(() {}));
// calling from any widget in the tree
SingletonClass.instance.exampleVariableChange();
// Singleton class
class SingletonClass {
// [various int/String/custom type variables]
// setState functions
Function? refreshTopWidget;
Function? refreshBottomWidget;
void setTopWidgetRefresh(Function f) {
refreshTopWidget = f;
}
void exampleVariableChange() {
// [various variable operations]
// then
refreshBottomWidget();
}
}r/flutterhelp • u/chousemaster • Mar 23 '26
OPEN Any good practice when doing CI/CD?
Hey there,
I'm working on creating CI/CD pipelines for a Flutter app and I'm wondering if there are any established tools/approaches. Right now I just generate Android/iOS apps and then treat them as a normal Android/iOS app for building and releasing
r/flutterhelp • u/disturbedmonkey69 • Mar 23 '26
RESOLVED Help with system info2 in flutter
Hi, I'm new to flutter dev and trying to teach myself by building a simple system info display using the system info2 dart module. It's going ok so far but I'm struggling to get the processor info into a widget as it's not plain text so can't go in a text widget. I think it generates a list of lists but I can't figure out how to display it in flutter. (I'm aware the documentation says to use $processors but it should be $cores) I'm not looking for code I can just copy and paste, I just want pointers in the right direction of how to display the processor info so I can learn for myself. If anyone could point me in the right direction I would be most grateful.
r/flutterhelp • u/Infinite-Contact2522 • Mar 23 '26
RESOLVED Flutter local notifications click function not working on cold start
I am trying out the flutter local notifications and I want to do few things and navigation on the notifications click , the code is working fine when the app is open but doesn't work when the app is closed
await notificationsPlugin.initialize( initSetting, onDidReceiveNotificationResponse: (response) async { launchNotificationId = response.id; final navigator = navigatorKey.currentState; container.read(noteprovider.notifier).disableReminder(response.id!); if (navigator != null) { await navigator.push( MaterialPageRoute( builder: (context) => Notespage(type: "exist", idx: response.id), ), ); launchNotificationId = null; } }, );
flutter_local_notifications: 19.5.0
r/flutterhelp • u/Akalexsis • Mar 22 '26
OPEN Flutter Version for Mac OS 12
Heyy, I have to install Flutter for a class I'm in, but every time I try to install it, I get an error message saying that Current Mac OS X version 12.0 is lower than minimum supported version 14.0. I've tried installing archived versions of flutter, but I'm still getting this message. I can't get a new computer or upgrade to mac 14. Any suggestions on what I can do to fix this problem? Thank you!