Skip to main content
Filter by
Sorted by
Tagged with
1 vote
0 answers
47 views

Looking for flutter navigation package that supports current position provider and predefined full route path [closed]

I'm developing a Flutter navigation application and need a package that can handle both: Current Position Provider : Real-time GPS location tracking (not from the phone's GPS; I need to supply the ...
GNassro's user avatar
  • 1,081
0 votes
0 answers
29 views

Having issues with Stream.periodic and Timer.periodic in dart for sending stream events to the HttpClient

I am having issues with the code below, Stream.periodic(duration,callback) does not work even if the Duration() is all 0, but Timer.periodic(duration,callback) works if the duration is instantiated as ...
Sameer Ahmed's user avatar
0 votes
0 answers
52 views

Flutter SharedPreferences & FlutterToast MissingPluginException

I'm facing an issue after building my Flutter app (especially in release mode). The app crashes or throws the following errors related to SharedPreferences and FlutterToast plugins. I/flutter (10569): ...
Usama Qadeer's user avatar
1 vote
1 answer
81 views

Images inside assets folder not loading after restarting the app

I have a Flutter project and I added some images inside: assets/images/ I also added the folder in pubspec.yaml: flutter: assets: - assets/images/ The images load correctly the first time when ...
Moaz Yahya's user avatar
3 votes
1 answer
40 views

Access denied when downloading file written to OneDrive using Microsoft Graph API with Files.ReadWrite.All scope

I have a mobile app (Flutter) where I'm allowing the user to backup their data to their personal OneDrive, so if they lose their device they can restore data from their OneDrive. I'm using a delegated ...
James Allen's user avatar
  • 7,317
2 votes
1 answer
55 views

Token refresh with dio fails (sometimes)

This is the code of AuthInterceptor which I use for triggering token refreshing. For safety (that I the interceptor of main dio instance won't attach accesstoken to refresh token api) I even use a ...
Sowban Muhammad's user avatar
-1 votes
1 answer
124 views

How to make a CustomClipper like this folder-shaped card? [closed]

I have this design (screenshot below). It looks like a rounded rectangle with a small tab on the top — like a folder. I need to create the same shape using CustomClipper so I can clip a container. How ...
Mayvas's user avatar
  • 1,258
0 votes
1 answer
43 views

Flutter Android keyboard insets Xiaomi HyperOS

On Android only, while the keyboard is opening, my views anchored at the bottom of the screen do not move up in sync with the keyboard. They remain partially under the keyboard during the animation, ...
montauvergne's user avatar
1 vote
1 answer
77 views

Fast way to select large files?

When I use a file_picker or image_picker on a 2 GB file, it takes about 25 seconds until the process after selecting a file is finished. That is quite a long time for users to wait. As far as I know, ...
dkl1203's user avatar
  • 140
6 votes
1 answer
1k views

YouTube video shows “Video unavailable (Error 15 / 153)” using youtube_player_iframe

I’m trying to play a YouTube video in my Flutter app using the youtube_player_iframe package. Here’s a simplified version of my code: _controller = YoutubePlayerController.fromVideoId( videoId: '...
Rishbh Dixit's user avatar
-1 votes
0 answers
28 views

Struggling with Vertical PageView + Horizontal Carousel Slider in Flutter – Swipe Issues [closed]

I’m building a Flutter app where I have a vertical PageView.builder to scroll through videos and, within each page, a horizontal carousel using the carousel_slider_plus package for images. The problem:...
Sergio Miramontes's user avatar
-2 votes
1 answer
70 views

How do I manage multiple pages in one tab? [closed]

I'm trying to create a login/signup page using the tab bar, but the number of pages is greater than the tab bar. So I'm trying to put multiple pages in one tab bar, but it doesn't work. I want to ...
choi's user avatar
  • 7
0 votes
0 answers
39 views

laggy keyboard animation while appearing

Problem is when clicking on textfield the keyboard appears laggily. it does not appears in instant like it does on whatspp or any other application no matter how big size of application is , it will ...
Tushar Kaul's user avatar
-2 votes
0 answers
86 views

Is support simultaneous multi-channel viewing for audience role Flutter? [closed]

I have try to simultaneous multi-channel viewing for audience role in my Flutter app. but not getting success. if one stream play so another stream will not start and getting the “AgoraRtcException(-...
Alpit Panchal's user avatar
0 votes
1 answer
98 views

LateInitializationError not appearing in debug mode

I build my app with debug mode, then unplug it and use the app. So after some hours when I open the app, this error appears: LateInitializationError: field "someservice" has already been ...
Sowban Muhammad's user avatar
1 vote
0 answers
79 views

What is dartaotruntime and why does it query some endpoint?

I am reading dartaotruntime documentation and it doesn't mention connecting to network at all: https://dart.dev/tools/dartaotruntime I wonder if someone knows why would the latest flutter's ...
Nik's user avatar
  • 9,523
1 vote
1 answer
73 views

Why I couldn't run my flutter project on the Android Studio emulator? [closed]

I have created a new flutter project using android studio. I want to run it on the emulator but I have get this error: FAILURE: Build failed with an exception. * What went wrong: Execution failed for ...
Mariam Ashraf Abdel Rahman Ahm's user avatar
-1 votes
0 answers
82 views

I am not able to validate required form fields

this is the Form i am trying to validate fields but not able to do it. i have tried sequences of widgets and also autoValidation.onUserInteraction, but nothing is working. When i try to debug it is ...
Harmeet Singh's user avatar
0 votes
0 answers
49 views

My Flutter project using GetX no longer recognizes GetX reactive variables — the error: 'There isn't a setter named 'value' in class 'RxObjectMixin'

since last night I’ve been having the problem that my Flutter project can no longer be built because I’m getting compile errors in IntelliJ. My code looks as follows class GuestBookingDetailController ...
Ertan's user avatar
  • 1
1 vote
1 answer
58 views

Is it safe to Log from 'dart:developer' in production build(Flutter)

As I understood: log(): only writes when a debugger is attached and very light weight. print(): writes to the console and can impact performance. is it safe to leave log() in production or it is ...
Pierre Huret's user avatar
0 votes
0 answers
124 views

Parse string with comma to double on Linux

I want to show double numbers with "," as decimal separator and have to convert strings to double considering the same issue. I do this using the intl package. Get Locale: String myLocale = ...
ProtonFisher's user avatar
0 votes
1 answer
53 views

mDNS discovery works on iOS simulator but not on real device (SocketException errno = 65)

I’m using Flutter’s multicast_dns package to discover Android TVs on the local network using mDNS. The code works perfectly on the iOS simulator, but fails on a real iPhone with the following error: [...
shakti goyal's user avatar
0 votes
0 answers
37 views

flutter: providing Bloc using get_it make cubit not accessible through context

I'm using cubit to manage state and get_it to store mostly used objects, here the initialization of get_it: final sl = GetIt.instance; Future<void> init() async { // Cubits sl....
A-E's user avatar
  • 3,401
0 votes
1 answer
92 views

How do I configure signingConfigs in build.gradle.kts for a Flutter Android app?

I have difficulties configuring the signingConfigs in the build.gradle.kts Below is my build.gradle.kts file plugins { id("com.android.application") id("kotlin-android") ...
Akumbom's user avatar
  • 21
0 votes
2 answers
114 views

What is a guard clause?

What is a guard clause? i read the documentation but it seems a new concept to me, my first time trying Dart. I would be really grateful if someone can help explain this concept to me, i came from PHP,...
Raymond Seger's user avatar
3 votes
1 answer
310 views

Error: The method 'getInvocation' isn't defined for the type 'DartObjectImpl'

Android Studio Latest, Flutter 3.35.6, sdk: ^3.9.2, Microsoft Windows 11 25H2, Flutter Doctor without warnings. Create a new Flutter project (Android & iOS) and without touching the generated code,...
user3262353's user avatar
1 vote
1 answer
67 views

flutter vscode stuck after built apk

When I run my Flutter project from VS Code, the build process completes successfully, but the app stack in flutter logo It gets stuck after the message: ✓ Built build/app/outputs/flutter-apk/app-debug....
Kareem Sobhy's user avatar
-1 votes
1 answer
125 views

What does underscore / _ mean in a switch?

What does underscore / _ means in this Dart code? I know it's a switch that seems to take an enum, and if it's red / yellow or blue it will return true for isPrimary, but what about _ => false? ...
Raymond Seger's user avatar
0 votes
0 answers
34 views

How do i interpret this inference-using-bounds dart code coming from PHP/Java/Python?

How do i read these code? it's called "inference-using-bounds", seems complex, it's on the documentation of Dart https://dart.dev/language/type-system#inference-using-bounds class A<X ...
Raymond Seger's user avatar
0 votes
1 answer
56 views

How to remove inline debug tooltips in VS Code for Dart?

How to remove annoying information in VS Code for Dart? Unfortunately, I don't know what it's called or why someone decided to enable the option to show this information instead of me and for me. I ...
mezoni's user avatar
  • 11.3k
2 votes
0 answers
106 views

When i run this command flutter build apk --release in my flutter app it throws error unexpectedly

I am getting this problem from too many days and i tried to fix this but not getting the problem the error is this it prints this when i run flutter build apk or flutter build apk --release Warning: ...
Tanu Purohit's user avatar
1 vote
0 answers
46 views

Not receiving any callback from midtrans payment

Please help, I'm using midtrans_sdk 1.0.1 and successfully paid the items, but I'm receiving nothing from midtrans, only something like flutter: type 'Null' is not a subtype of type 'String' in type ...
1988's user avatar
  • 357
6 votes
0 answers
88 views

Flutter iOS Picture-in-Picture not showing when app goes to background (works only via button)

I'm building an OTT video streaming app using Flutter and the video_player package. I want to implement Picture-in-Picture (PiP) on iOS. Flutter doesn’t provide native PiP support for iOS directly, so ...
Rupam Das's user avatar
3 votes
2 answers
216 views

Flutter camera plugin records dark/black videos on Android - preview is fine but recorded video is dark

I'm developing a Flutter app with video recording functionality using the official camera package (version ^0.10.6). The camera preview looks perfect with correct brightness, but when I record and ...
sonic boom's user avatar
1 vote
1 answer
87 views

Blank screen after QR code scan and returning result using Navigator.pop

I'm building a Flutter app using the qr_code_scanner_plus package. The QR scan works, and I’m able to retrieve the scanned result, but after scanning, the app navigates back and shows a blank screen (...
mlodhi's user avatar
  • 754
0 votes
1 answer
72 views

Null values of username are showing in my firebase console and flutter app

when i save in firebase, the data like username, phone number, and status are lost, leaving only the uid persistent. I'm using cubit for state management. The code for creating user: Future<void>...
dungu's user avatar
  • 133
0 votes
1 answer
73 views

How to debug code generator files (that runs with `build_runner`) in flutter dart and android studio?

I am crating a custom code generator with the source_gen package. I want to add break points in the generator class and debug my code when I running dart run build_runner build command. Is there any ...
amir_a14's user avatar
  • 2,171
0 votes
0 answers
32 views

mDNS (multicast_dns) not discovering Android TV on real iOS device but works in iOS Simulator

I’m building a Flutter app that discovers Android TVs on the local network using mDNS via the multicast_dns Problem On the iOS Simulator, it successfully discovers Android TVs advertising ...
shakti goyal's user avatar
1 vote
0 answers
89 views

The Android APK is not built from the Python Flet project

I wrote a simple app that retrieves, displays, and modifies data from a JSON file. The app uses BS4, requests, and Flet=0.29.3 (I'm not upgrading to a higher version, as this is the most optimal for ...
Denis's user avatar
  • 1
1 vote
1 answer
54 views

widget tests for .isExecuting failing

When writing widget tests for an MVVM architecture using the Command_It package, how do you mock the "isExecuting" state successfully to test for ui in that state. I've been trying some ...
Gaby Torres's user avatar
0 votes
1 answer
52 views

Does the Map container in Dart preserve insertion order?

Consider the following code: void main() { final m = {}; m['a'] = 1; m['b'] = 2; m['c'] = 3; print(m); // {a: 1, b: 2, c: 3} } In this demo, all Keys are in the same order as that of their ...
Ardent Coder's user avatar
  • 4,095
0 votes
1 answer
313 views

Why does my project fail to build after updating to Flutter's latest version?

I made some fixes, committed the changes and everything worked. I wanted to update the project to the newest version of Flutter and dependencies but now even if I discard all changes I still can't run ...
Dimnik's user avatar
  • 79
1 vote
1 answer
270 views

Swift Compiler Error (Xcode): Unable to find module dependency: 'Flutter'

I'm stuck at this trying to run my flutter app. Runs good in android. flutter doctor, all green and good. I'm using VS Code. Swift Compiler Error (Xcode): Unable to find module dependency: '...
user14866294's user avatar
0 votes
0 answers
30 views

How to get audio duration in Flutter without interrupting current playback when using just_audio_background?

I'm using the just_audio and just_audio_background packages to handle audio playback in my Flutter app. Because just_audio_background supports only one global AudioPlayer instance, I can’t create a ...
Vladislav Izmailov's user avatar
1 vote
1 answer
60 views

I want to use OutlineInputBorder to add only top and bottom borders

final enableBorder = OutlineInputBorder( borderRadius: BorderRadius.circular(8), borderSide: BorderSide(color: PuddingColor.white, width: 1), ); final feedEnableBorder = Container( ...
choi's user avatar
  • 7
5 votes
2 answers
129 views

Why does dart create an unawaitable Future?

Here is a simple dart code example: Future<Object?> fetchDataTypesFirst() async { return getRequest(); } Future<Object> fetchDataTypesSecond() async { return getRequest(); } Future&...
Marcin Chołuj's user avatar
1 vote
0 answers
90 views

Agora Flutter video call works on Android but crashes instantly on iOS

I’m implementing a video call feature using Agora Flutter SDK. Everything works fine on Android, but on iOS, the app instantly crashes when I try joining a channel. I’m using: agora_rtc_engine: ^6.5.3 ...
Michael Ogundipe's user avatar
1 vote
2 answers
82 views

How to invoke showdialog in asynchronous contexts?

I am making a flutter app to interact with SQLite database. As I was implementing the feature to add a record(a row), I wanted to add the row to the database if it follows the constraints, but if ...
B1LLP4RK's user avatar
0 votes
0 answers
45 views

Ghost pushing in flutter app with push notifications

I created a flutter app with push notifications enabled, and I'm using firebase FCM HTTP v1 API to send push notifications to my device. Here's my FCM API POST payload. { "message": { &...
azdev's user avatar
  • 1
0 votes
0 answers
69 views

My App Flutter app isn't producing the required products in the widget, i'm using cubit for state management

Stream<List<PhysicalProductEntity>> getAllProducts() { final productsCollection = firestore .collection('items') .where('type', isEqualTo: 'product'); ...
dungu's user avatar
  • 133

1
2 3 4 5
1918