All Questions
Tagged with flutter-layout or flutter
201,071 questions
0
votes
1
answer
27
views
Flutter: ultralytics_yolo package build fails with CMake / NDK error — “undefined symbol: std::__throw_length_error”
I'm trying to use the ultralytics_yolo: ^0.1.42 package in my Flutter app, but the Android build fails with this CMake/NDK linking error.
I get this during assembleDebug:
FAILURE: Build failed with an ...
0
votes
1
answer
19
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 ...
0
votes
0
answers
25
views
How to create a grid view in this pattern in Flutter
I tried to create this pattern using but failed to do so, because in a grid view, all the items are aligned horizontally. I want to know how I can achieve this design. I tried to achieve this using ...
0
votes
0
answers
22
views
Supabase Edge Function returns "No user found for JWT" when deleting user from Flutter
I am trying to implement a "Delete Account" feature in my Flutter application using Supabase Edge Functions. I am calling the function from the Flutter client SDK, but the Edge Function ...
Advice
0
votes
0
replies
24
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 ...
1
vote
0
answers
28
views
Canvas Transform and Paint in Flutter
I want to achieve a transformation on the canvas using two fingers for rotation, scaling, and translation, while using one finger to paint in the correct position.
What I have so far:
import 'package:...
-7
votes
0
answers
31
views
Google ML Kit OCR fails to detect survey responses in Flutter (manual/auto capture + batch) [closed]
I’m building a Flutter mobile app that scans paper survey forms and extracts the answers.
I’m using Google ML Kit – TextRecognizer.
The app has 3 modes:
Manual capture (camera button)
Auto capture (...
0
votes
1
answer
37
views
Banuba SDK – Gradle 401 Unauthorized when resolving packages (GitHub Packages)
I was invited by my team leader to a private GitHub repo for a Flutter project.
The project runs successfully on his machine, but when I try to run it on my machine (Windows + Android Studio), I get ...
1
vote
0
answers
22
views
WebView video player fullscreen, orientation & watch-history sync issues in Flutter (webview_flutter 4.13.0)
Problem description
I am building a full-screen video player in Flutter using webview_flutter: ^4.13.0. The player must:
Start directly in landscape mode
Hide the WebView’s default fullscreen button
...
0
votes
0
answers
24
views
Why is App crashing while lunching 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] ...
1
vote
1
answer
76
views
An error occurred while preparing SDK package NDK (Side by side) 29.0.14206865: Not in GZIP format
An error occurred while preparing SDK package NDK (Side by side) 29.0.14206865: Not in GZIP format. While trying to test my application on an Android phone in Flutter, I encountered this error:
...
1
vote
0
answers
28
views
In-app purchases not working on TestFlight
On my app, while it is on TestFlight, the in-app purchases are not working.
Future<bool> buyNonConsumableProduct(PurchaseParam purchaseParam) async {
try {
if (!(await _iap.isAvailable())) ...
-3
votes
2
answers
35
views
Flutter Gradles build problem with redhat.java
Windows, with VS Code. Upgraded to latest flutter,
using gradle-8.12-all
But in build.gradles.kts kept on complaining
Could not run phased build action using connection to Gradle
distribution
'https:/...
0
votes
1
answer
44
views
razorpay_flutter crashes with "type 'String' is not a subtype of type 'Map'" on Android when device is offline
I am encountering a crash in my Flutter application using the razorpay_flutter package. The crash occurs specifically on Android devices when I attempt to initiate a payment (_razorpay.open) while the ...
0
votes
1
answer
57
views
Flutter RadioGroupPolicy can't be used for a radio group that allows multiple selection
I'm trying to migrate to the new RadioGroup API.
But I'm getting this error:
RadioGroupPolicy can't be used for a radio group that allows multiple
selection.
Here is my current code 👇
RadioGroup(
...
0
votes
2
answers
54
views
I am getting this error when I add camera plug in
I am getting this error when I add camera plug in in my pub spec. Yaml
error: Cannot attach type annotations @org.jspecify.annotations.NonNull to SurfaceRequest.mSurfaceRecreationCompleter:
class ...
0
votes
0
answers
26
views
Can't get correct polyline routes from pickup to dropoff location
when you accept a trip, the flow works alright; you get a route from rider to passenger pickup location, you actually see the confirmation sheet. Which means status has moved from accepted -> ...
1
vote
0
answers
64
views
Building a custom bottom bar with curved items
I'm working on a small project where the bottom bar is customized: the tabs inside should be curved, as attached in the screenshot
Till this moment, I did have any luck to achieve it, I tried many ...
2
votes
1
answer
43
views
Flutter White screen behind keyboard and screens stacking up
Flutter Web App
So I have this annoying bug where after a keybaord is opened in ANY screen/textfield in the app. There is a blank white space behind the keyboard when key is dismissed. It sort of ...
0
votes
2
answers
87
views
The button doesn't press, the modal doesn't open, and the function doesn't work
I'm creating a small menu for deleting/editing comments or posts in Flutter.
When I press an IconButton, a menu appears using CompositedTransformFollower and inside the menu, I've placed TextButtons ...
0
votes
1
answer
40
views
failed to remove .dart_tool on flutter clean command
I am getting this error on flutter clean cammand.
Failed to remove D:\Projects\FlutterProject\.dart_tool. A program may still be using a file in the directory or the directory itself. To find and ...
0
votes
0
answers
47
views
Terminal freezing when using flutter run
After running flutter run I can refresh a couple of times using hot reload, sometimes only 1 others like 15, but at some point the terminal stops reading my keyboard and it gets stuck. Not a key I ...
-1
votes
1
answer
41
views
How to correctly configure android app image using flutter? [closed]
I am building a new app in flutter and I want to add my app image, but I don't understand why my image is being cropped.
What I tried so far:
Using transparent background
Using white background
Using ...
-1
votes
0
answers
86
views
Play Store android app rejected due to suspected firebase auth 403 in review environment [closed]
Out of the blue, updates of our app have starting being rejected by the Play Store reviewers because they cannot log in using the supplied test credentials.
We use Firebase to manage our auth.
We ...
0
votes
0
answers
48
views
How to remove the border or padding from CustomDropdown in Flutter using Dart?
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 and right sides.
Without ...
1
vote
1
answer
74
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
56
views
Flutter (Xcode 26.1.1) error Command PhaseScriptExecution failed with a nonzero exit code [closed]
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
66
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
1
replies
46
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 ...
1
vote
1
answer
70
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
57
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
57
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
1
vote
1
replies
73
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 ...
-1
votes
1
answer
71
views
Google Sign-In fails with ApiException: 10 [closed]
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
63
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
1
replies
60
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
39
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
47
views
Can't rotate a video file with metadata in Flutter [closed]
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
48
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
95
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
41
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
71
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
50
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
59
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
32
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
46
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
66
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
51
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
55
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
70
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 ...