6,960 questions
0
votes
0
answers
56
views
On running my flutter app which uses llama_cpp_dart package. It is showing error loading model
I am trying to run a gguf model using llama_cpp_dart v^0.2.2 package. But it is showing model cannot be loaded. The initialize function is what runs these. I checked the llama_cpp folder in lib\src of ...
Tooling
1
vote
0
replies
88
views
Best way to generate an SBOM for a Flutter app?
Keeping in mind the versatility of Flutter as a framework I'm curious if there is any tool out there that integrates well with it to auto generate Bill of Material for a multi-module multi-platform ...
0
votes
2
answers
102
views
Container border is clipped despite Clip.antialias. How to fix?
My widget contains a TextField wrapped by a Container for styling and border. I must use filled: true within the InputDecoration of the TextField. Otherwise, the theme (flex_color_scheme) seems not to ...
1
vote
1
answer
102
views
Fix opaque rectangular wrapper widget around the CustomDropdown widget in Flutter
I am using flex_color_scheme in my app for the theming the app, and for implementing combo box, I needed to add the animated_custom_dropdown package and use its CustomDropdown widget. With these ...
3
votes
1
answer
72
views
My pipeline is searching for pubspec.yaml in the wrong directory
I am getting this error when trying to build macOS Flutter app on my pipeline:
Could not find a file named "pubspec.yaml" in "/Users/xxx/macos/Pods".
Of course it can't find it, ...
0
votes
2
answers
59
views
Flutter GetX app freezes on startup due to multiple controllers and heavy initialization work
I am working on a Flutter health management system app that uses GetX with an MVC architecture.
Current setup:
Around 20–25 GetX controllers
All API calls, Hive read/write operations, and business ...
1
vote
0
answers
23
views
Flutter pubspec.yaml error: “A dependency may only have one source” while adding packages
I am getting the following error while running flutter pub get:
Error on line 32, column 5 of pubspec.yaml:A dependency may only have one source.
I am trying to add google_fonts and cupertino_icons ...
1
vote
1
answer
86
views
Image_picker and open camera app crashed in Vivo device
final ImagePicker _publicDocPicker = ImagePicker();
RxBool isProductDocFile = false.obs;
Rx<XFile> productDocFile = XFile("").obs;
XFile? productDoc;
Future<bool> ...
0
votes
1
answer
87
views
How to include a piece of code only for one specific platform in Flutter?
I have a Flutter project where I am building outputs for both web and Android. The code includes classes that are specific to one target (used by web and not Android, and vice versa).
When building ...
0
votes
0
answers
67
views
MissingPluginException for nfcAvailability only in Android release build (works after restart)
I am getting error in Android release build
MissingPluginException (No implementation found for method
getNFCAvailability)
and NFC starts working again only after restart
Device : Samsung Galaxy A23
...
4
votes
1
answer
125
views
Schedule Notification is not properly working in flutter
Have anyone faced any issues when implementing schedule notifications?
I'm building a medicine reminder application where I had to schedule many Notifications based on local DB(Isar). If users added 3 ...
0
votes
0
answers
85
views
Profile sharing with flutter on Windows using share_plus and app_links
I am trying to implement profile sharing but on windows, when i use share_plus i get the error "“Try again, we couldn't show you all the ways you could share”
i believe it is a windows share ...
0
votes
0
answers
59
views
Camera infinity focus not working in Flutter (flutter_webrtc / ant_media_flutter)
I’m using flutter_webrtc with Ant Media(ant_media_flutter) Flutter for video broadcasting.
I’m trying to lock the rear camera focus to infinity so that distant objects remain sharp and autofocus does ...
4
votes
1
answer
136
views
TimeoutException (Future not completed) using pusher_client_socket with Laravel Reverb
I am experiencing a TimeoutException after 12 seconds when attempting to connect my Flutter app to a Laravel Reverb server.
dart
late final options = PusherOptions(
key: 'reverb-KEY',
host: '...
1
vote
0
answers
79
views
lookupResolvedPackageUris RPC result contained more results than the request in flutter in real device
how to solve this issue. when I run my app on my real device then I got this following error:
lookupResolvedPackageUris result contained more results than the request. See https://github.com/dart-...
0
votes
1
answer
131
views
Handling of installId given by age_range_signals package in devices with multiple Gmail accounts logged in?
I am using age_range_signals Flutter package to verify user age in my app. Consider the following code:
final result = await AgeRangeSignals.instance.checkAgeSignals();
// How should I use `result....
2
votes
1
answer
167
views
ObjectBox build_runner fails with "getInvocation() isn't defined for DartObjectImpl" error on Flutter 3.38.5
I'm trying to set up ObjectBox in my Flutter project but encountering a compilation error when running the build_runner. Here are my environment details:
Environment:
OS: macOS (latest version)
...
0
votes
1
answer
112
views
flutter build apk fails with resource linking error when using flutter_bluetooth_serial
I’m working on a Flutter app that uses Bluetooth Serial (flutter_bluetooth_serial).
When I run the app in debug mode with flutter run, everything works fine.
However, when I build the release APK ...
0
votes
1
answer
92
views
Agora Camera infinity focus not working android flutter
I have implemented the Agora in my flutter android application and it's working completely. now i want to set infinity camera focus so i have try agora in build method as below mention but it's not ...
2
votes
1
answer
127
views
Riverpod AsyncNotifier re-fetches API after logout and causes 401
I'm very new to Riverpod and I'm implementing a login/logout flow using AsyncNotifier.
I fetch the user profile after login and show the username on the home screen.
The issue is:
When I logout, the ...
Advice
0
votes
0
replies
81
views
Is there a lighter way to show AdMob ads in Flutter?
I have used the google_mobile_ads package in flutter, but it increases the app size by 2–4 MB. My app is small, so this size increase could cause issues.
Is there a lighter package or another approach ...
0
votes
0
answers
74
views
Why is App crashing while launching PayStack SDK
i am trying to use Paystack, but all is working perfectly on iOS, but Android keep crashing,
crash log
D/FirebaseSessions( 6563): App backgrounded on com.xxx.xxx
D/OneSignal( 6563): [main] ...
Best practices
1
vote
1
replies
172
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
0
answers
61
views
Google Maps Flutter camera center appears in top-left corner depending on Scaffold layout (extendBody / AppBar / bottomNavigationBar)
I'm building a custom map page in Flutter using `google_maps_flutter` (and a wrapper widget from `google_maps_drawing_tools`). I'm fighting a layout issue where the **camera target is not visually ...
1
vote
4
answers
2k
views
Flutter Google Sign-In [16] Account reauth failed on Android — need help troubleshooting
I’m trying to implement Google Sign-In in my Flutter app using google_sign_in: ^7.2.0 and Firebase Authentication, but I keep hitting the following error after selecting a Google account:
...
-3
votes
1
answer
144
views
My Flutter project runs fine in Android Studio, but VS Code and other platform shows configuration errors
I made a flutter project using Android Studio, but had to shift to using VS Code. When I tried running the build using VS Code, it started giving a configuration error (assembleDebug):
The error was ...
3
votes
1
answer
357
views
I recently upgraded from Riverpod 2.x to 3.0 and I'm getting a disposal error
Unhandled Exception: Cannot use the Ref of noteControllerProvider after it has been disposed. This typically happens if:
A provider rebuilt, but the previous "build" was still pending and ...
3
votes
0
answers
210
views
How to re-edit an image after saving in pro_image_editor?
I'm using the Flutter package pro_image_editor: ^11.12.1 for image editing in my app.
The editor works fine for the first edit. However, I’m having trouble re-editing an image after it’s been saved ...
2
votes
0
answers
69
views
Random Barcode Detections on Timeout When No QR Code Is Present (mobile_scanner)
I’m getting random barcode values when the scanner view closes due to timeout even though no QR code or barcode in front of the camera.
Each time this happens, the detected values are different.
Code :...
0
votes
1
answer
229
views
Mouse scroll wheel feels laggy and not smooth in my Flutter website
I'm building a website using Flutter Web, but when I scroll using the mouse scroll wheel, it doesn’t feel smooth it’s kind of laggy or jumpy compared to websites built with React or standard HTML/CSS.
...
0
votes
0
answers
241
views
Flutter 3.35 iOS build fails on Apple Silicon (M3/M4): 'Flutter/Flutter.h' file not found
I'm on a MacBook Air 2025 M4 (Apple Silicon) using Flutter 3.35.5 on channel stable, Xcode 26.0.1, and CocoaPods 1.16.2.
Actual Setup:
Component
Version
macOS
15.0 Sequoia
CPU
Apple M4 (ARM64)
Flutter
...
0
votes
0
answers
59
views
Flutter issue related to apk
Configure project :gradle
WARNING: Unsupported Kotlin plugin version.
The embedded-kotlin and kotlin-dsl plugins rely on features of Kotlin 1.8.10 that might work differently than in the requested ...
0
votes
0
answers
80
views
how do i disable toast messages that are hard coded in package?
I am using this package Flutter_pos_printer_platform_image_3 where it has predefined toast messages those are generally not a problem but right now what I am doing is periodically scanning and ...
0
votes
0
answers
193
views
Flutter 3.35 Android Release Build Crash – java.lang.NullPointerException: Attempt to invoke virtual method 'void Z2.j.D(...)' on a null object ref
I recently upgraded my Flutter SDK from 3.32.7 → 3.35.0.
Since then, my app works fine in debug mode, but crashes on launch in release mode with the following stacktrace:
FATAL EXCEPTION: main
E/...
1
vote
2
answers
257
views
How to implement Dynamic App Icon Change with flutter_app_icon_changer
Does anyone know the correct implementation of the flutter_app_icon_changer: ^0.1.1 library? and also what to place in the appIcons? What is the correct format of it? Does Anyone know the correct way ...
0
votes
0
answers
42
views
How to dynamically load multiple TensorFlow Lite models in a Flutter app instead of bundling them?
I am building a Flutter app where I have to execute three separate TensorFlow Lite models on-device:
An embedding model
An action video detection model
A DistilGPT2 RAG model
Currently, I bundle all ...
1
vote
1
answer
179
views
Search Text Field Animation in Flutter
I want to achieve this animation and accurate shadows to the button : -
the Tricky part would be getting shadow of the circular button , I tried using both foreground , and decoration property of ...
0
votes
0
answers
62
views
Getting "current target" error for "Flutter Run" on Android Emulator
After I added assets_audio_player package I started to get this error :
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':assets_audio_player:compileDebugKotlin'.
...
4
votes
0
answers
187
views
One Signal OnTap of Notification gives a collapsing effect
Whenever I tap on the notification that I receive , there is a black flash or a collapsing effect , I have tested on real device and on release mode , the bug that I want to fix: -
This is my xml : -
...
2
votes
1
answer
157
views
Animated TextField Flutter - How can I create a textfield in Flutter where the hint text animates with suggestions smoothly?
In some apps (e.g., BlinkIt, Swiggy, etc.), the search field shows animated suggestions instead of a static placeholder.
For example, the hint text rotates/animates between:
“Search fruits”
“Search ...
0
votes
1
answer
201
views
Flutter dependencies seem to be outdated
I'm brand new to Flutter and I'm having trouble getting my application to run. This is what I get:
warning: [options] source value 8 is obsolete and will be removed in a future release
warning: [...
0
votes
2
answers
80
views
Reading row from SQLite database with sqflite package in Flutter. Error: Unsupported operation: read-only
I am trying to fetch one User (row) from users table in SQLite in Flutter. I am using sqflite package for that. But, the fetchedUser Map is empty as a result of query and I am getting errors:
...
3
votes
0
answers
161
views
How to Publish a Flutter Package Without Exposing Source Code
I'm developing a Flutter SDK that I want to distribute to integrators without exposing my source code. I've seen packages like zolozkit_for_flutter on pub.dev that don't show their source code (GitHub ...
6
votes
3
answers
1k
views
flutter_native_splash issue on android 12 and plus
I am using flutter_native_splash in my Flutter project.
The splash screen works perfectly on Android 11 and below, but on Real Android 12 devices and above, the logo does not appear on the first app ...
-2
votes
1
answer
242
views
How to create a floating/overlay window in Flutter desktop app using window_manager package similar to Microsoft Clock app's Focus Sessions feature? [closed]
Questions:
I did try with window_manager either it is producing something that far from the result or something buggy .
How can I make the window borderless and floating?
Is it possible to create ...
1
vote
0
answers
89
views
Flutter Google Sign In 7.1.1 : Hosted Domain not working properly
do you have same problem about this one.
so i has been updated my google sign in package to 7.1.1 in my project.
but i have problem the hostedDomain that already registered in initialize google sign ...
0
votes
1
answer
76
views
How to replace flutter_adaptive_cards in Flutter with a maintained library for rendering Adaptive Cards?
I have a Flutter project that previously used the flutter_adaptive_cards package to render Microsoft Adaptive Cards.
The old code looked something like this:
final AdaptiveCard adaptiveCard = ...
0
votes
0
answers
121
views
How to handle random NFC session errors (500 & 409) in Flutter iOS during continuous NFC tag reading?
I'm developing a Flutter app that continuously reads NFC tags for attendance using the flutter_nfc_kit package. The reading loop works fine on Android and mostly fine on iOS, but on iOS devices I ...
0
votes
1
answer
132
views
iOS background location works in Debug but not in Release (Flutter)
I’m using Flutter with flutter_background_service and geolocator to get location updates in the background.
In debug mode, background location works fine even when the app is minimized or the screen ...
1
vote
1
answer
90
views
How to analyze Flutter iOS app size and see which plugins/assets take the most space?
I want to analyze my Flutter app size for iOS and find out:
Which pub.dev plugins are taking how much space.
How much space my assets contribute.
The size from my own Dart code (lib/) and native ios/ ...