Skip to main content
33,265 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
16 votes
1 answer
1k views

VSCode Quick Fix : Fix using copilot is my only option

I am programming in Dart/Flutter, using VSCode. I also use Copilot, of course. I love Copilot's auto suggest, but when VSCode highlights an error and I hover on it to "Quick Fix" the problem,...
kris's user avatar
  • 12.6k
15 votes
1 answer
6k views

Multiple targets and multiple build configurations in flutter

We are planning to move our codebase to flutter, but we have some specific requirements and trying to validate them before moving all our codebase to flutter. With same codebase we are producing ...
tolgatanriverdi's user avatar
14 votes
1 answer
2k views

Flutter Google Play Console Resource Name for Tests

I developed an app in Flutter and I'm posting to Google Play, though, I would like to know how / where I can set the widget name information so that I can enter as login credentials on the Play ...
Augusto's user avatar
  • 323
13 votes
8 answers
5k views

MissingPluginException(No implementation found for method file on channel video_thumbnail)

I am using video_thumbnail 0.2.4 package to get thumbnail form video url. If I uploaded video from android device then its working perfect but If I used iPhone device, Always get the error ...
Govaadiyo's user avatar
  • 6,082
11 votes
1 answer
2k views

Flutter Plugin containing static library (.a File) is not linked correctly

I have a Flutter Plugin, which for iOS uses a static library (.a file). If I add the plugin to my pubspec.yaml and install it via flutter pub get, it installs a pod, which I can see in my app`s XCode ...
最白目's user avatar
  • 3,654
11 votes
1 answer
1k views

StreamBuilder Controls and Firestore Pricing

I have a two-part question. After reading through Firestore pricing, it says that you are charged based on the number of documents you read and write and the operations you perform such as deleting ...
Uma's user avatar
  • 987
11 votes
1 answer
602 views

Overriding Dart's local time zone

Dart's DateTime only supports UTC and "local" time. Is there a way to specify a local time zone when running tests, short of changing the time zone on the machine running the tests (or replacing ...
ejain's user avatar
  • 3,624
11 votes
4 answers
5k views

How to use an ellipsis overflow with multiline Text in Flutter

When I configure a Text widget with a maximum of 1 line and an overflow set to ellipsis, the widget shows correctly. Text( "Last summer, I was working on a prototype for an AR app that ...
matwr's user avatar
  • 1,571
10 votes
1 answer
4k views

Could not load source 'dart:core-patch/errors_patch.dart': <source not available>

When you run testWidgets in flutter_test.dart errors_patch.dart is automatically opened and Could not load source 'dart:core-patch/errors_patch.dart': <source not available>. and the test fails ...
iori tobeta's user avatar
10 votes
0 answers
1k views

How to keep Flutter app running between integration tests

Follow the example of integration test Problem: after each test is done, the app is destroyed, need to call app.main() on every test which is quite time-consuming. Expected: only run app.main() once ...
dante's user avatar
  • 1,254
10 votes
1 answer
644 views

How to avoid nested fold in when calling multiple Future with DartZ?

I have a piece of code that look like this: final Either<Failure, Unit> resA = await deleteA(); resA.fold( (failure) => handleFailure(), (success) async { final Either<Failure, ...
Manu's user avatar
  • 422
10 votes
2 answers
2k views

HiTouch_PressGestureDetector error, limitied touch pointer

I'm working on flutter project. I'm using singleChildScrollView and listView for scrolling. But when I want to scroll in any screen in app I face to this error: W/HiTouch_PressGestureDetector(20161):...
Reza Mojed's user avatar
  • 1,077
10 votes
2 answers
8k views

Tried to send a platform message to Flutter, but FlutterJNI was detached from native C++. Could not send. Channel: flutter/textinput. Response ID: 0

I am trying to create a user in Firebase using Flutter, but when tried to send email and password the app crashes. and this is the code snippet: void validateAndSubmit() async { if (...
Mohamed Nader's user avatar
10 votes
1 answer
2k views

Flutter - How to Send location updates to back-end in real-time, periodically, running in background. (on both android and IOS)

I want to send the user's location updates, periodically, to our back-end service, in real-time, in the background ( even if the App is not running / terminated ). Currently we are sending location ...
Ahmed Ibrahim Mah.'s user avatar
10 votes
1 answer
2k views

How to set up In App Purchases for Non consumable

I've set up AdMob ads on my app and want to set up In-App Purchases so that people can pay to disable the ads if they want to. I looked around for some guides on how to do it but they are all for ...
Hasen's user avatar
  • 12.3k
9 votes
0 answers
971 views

go_router causing all screens in the Navigation stack to rebuild on each push-and pop operation

I'm using go_router 10.0.0 and it rebuilds every screen in the navigation stack every time I do push or pop. All screens are StatlessWidget and declare it as const constructors as I'm saving the state ...
Anas-Qasem's user avatar
9 votes
0 answers
2k views

How to get `Uint8List` from `ImmutableBuffer`?

The new Flutter 3.3 deprecates the method load of class ImageProvider and now some my code became not working because load had a parameter bytes of type Uit8List but loadBuffer has a parameter buffer ...
BambinoUA's user avatar
  • 7,110
9 votes
1 answer
2k views

Flutter - Animated text kit, how to stop animation, so it only fades in and shows the text, instead of fading in and out and gone?

So I installed an animated text kit but I'm running into some issue that I can't solve it, the animation fades in, scales in, then fades out and scales out. I want it to just fade and scale in and ...
Bn Minki's user avatar
  • 185
9 votes
0 answers
4k views

Unable to load tensorflow tflite model in android studio

I have trained a TensorFlow model and convert it to TensorFlow lite using the below code: # Convert the model import tensorflow as tf import numpy as np # path to the SavedModel directory is ...
learner's user avatar
  • 959
9 votes
1 answer
1k views

Remove url bar from chromeSafariBrowser in flutter_inappwebview

I am using ChromeSafariBrowser class of flutter_inappwebview to show the webview which contains videos. I am using this class cause it supports pip and also shows media controls on video play which ...
Trend74X's user avatar
  • 192
9 votes
1 answer
2k views

TextSelectionThemeData is not changing selectionHandleColor in flutter

Tested on Both physical device and simulator. As we all know textSelectionHandleColor is deprecated. So, I decided to make some changes in my app code, unfortunately, selectionHandleColor is still ...
Idesh's user avatar
  • 373
9 votes
1 answer
4k views

Flutter create Generic Function with T extending an interface

Context In my code, I have an interface called AbstactDataModel that is used as a starting point for all the data model classes. This is implemented so that i know that whatever xyzModel class I may ...
Mike's user avatar
  • 165
9 votes
1 answer
1k views

Reset FlutterFragment content using Flutter Engine while using FlutterFragment

I am using a Flutter module inside my Android Application. I have defined a global Flutter Engine in a pre heated state in my Activity and is attaching it to a FlutterFragment as and when required in ...
Nitant Sood's user avatar
9 votes
1 answer
6k views

How to run Flutter application on web with an https address and not http:

I'm trying to port an App I made with Flutter for Android and iOS and run it on web as well. Due to the fact that I use Google and Facebook login frameworks there is a need to use an 'https' address ...
Emil Adz's user avatar
  • 41.1k
9 votes
1 answer
2k views

In Freezed is it possible to create union cases from already existing freezed dataclasses

I am using the freezed package to create my json parsers and data classes. As of now I am using dartz's package to create Union cases and handle them in Flutter widgets. For example some of my Union ...
Abhilash Chandran's user avatar
9 votes
3 answers
4k views

How can I focus a TextField without showing the keyboard?

I need to focus on a TextField but without showing the keyboard. The keyboard needs to be shown only if the user taps on the TextField. I tried 2 ways. First attempt: This way the keyboard shows ...
Davide Bicego's user avatar
9 votes
2 answers
1k views

Flutter bloc emmitInOrder doesn't emit initial state, but it does

So I'm trying to unit test a bloc My test is simple test("When loading patients, bloc should emmit [Loading], [OwnersLoaded]", (){ //arrange var owners = [Owner(id: "TestId")]; ...
Cate Daniel's user avatar
9 votes
1 answer
3k views

Flutter Web - http StreamedResponse as client to receive SSE

Have a Flutter App that is able to receive SSE text/event-stream events when running on mobile but it is not receiving the same SSE text/event-stream events when running on the chrome web. import '...
Going Bananas's user avatar
9 votes
1 answer
2k views

Unable to find TextField text data

I'm trying to write a test for a TextField where I'm using an IconButton as the TextField's suffixIcon so that, when pressed, it will toggle the TextField's obscureText property. The widget itself ...
kqcef's user avatar
  • 547
9 votes
1 answer
9k views

How to solve duplicate classes issue for Flutter?

after adding location: ^1.4.1 to my dependencies in pubspec.yaml: dependencies: flutter: sdk: flutter # The following adds the Cupertino Icons font to your application. # Use with the ...
miloss's user avatar
  • 1,768
9 votes
1 answer
3k views

C++ call Dart function in Flutter

Flutter can binding to native code using dart:ffi. In other words, Dart can call C ++ methods, but can C ++ call Dart methods? as follows:
Liu Silong's user avatar
  • 5,532
9 votes
1 answer
2k views

Flutter CameraPreview is blurry, noisy, and zoomed in

I have a Google Pixel 3 and am using Flutter's camera plugin at version 0.8.1. CameraPreview is blurry, noisy, zoomed in, and generally looks worse than Android's camera app. Android Camera App: ...
Fred's user avatar
  • 666
9 votes
1 answer
8k views

How to find absolute path fo the "assets" folder of the Flutter app?

Here is the setup in side of my pubspec.yaml ... path_provider: ^0.4.1 assets: - assets/ - assets/a.txt ... I try to find way to access to the "assets" directory to read content of ...
Sotheayuth's user avatar
8 votes
0 answers
1k views

showSoftInput() view=io.flutter.embedding.android.FlutterView{d9d3093 VFE...... .F....ID 0,0-1440,2956 #1 aid=1073741824} flags=0 reason=SHOW_SOFT_INP

after trying to input text in textfromfield emulator keyboard dosen't shows up also not taking any text. using flutter version - 3.10 tried updataing permission but didn't work code class LoginScreen ...
Rabbi H's user avatar
  • 81
8 votes
0 answers
1k views

How to embed social media post with flutter

I have been trying to embed videos and post from facebook,twitter and instagram into my flutter application but i was not able to do so. I have tried this social_embed_webview but it does not work ...
Onyema_Anthony's user avatar
8 votes
0 answers
2k views

How to work with flutter_bloc 8+, go_router +6 and refreshListenable

I'm using go_router for navigation and flutter_bloc for my state management. I would like to use refreshListenable and listen to my AuthBloC events in my GoRouter configuration, however, I don't have ...
Phil's user avatar
  • 723
8 votes
0 answers
860 views

how to add divider to NavigationRail in flutter

I need to add a divider between each NavigationRailDestination. inside NavigationRail there is destinations where we add NavigationRailDestination. it's only accept children from the type ...
Osama Alnajm's user avatar
8 votes
0 answers
567 views

ERROR:ssl_client_socket_impl.cc(980)] handshake failed; returned -1, SSL error code 1, net_error -202

I am try to develop a flutter project using url_launcher plugin where i encounter with this issue E/chromium(11062): [ERROR:ssl_client_socket_impl.cc(980)] handshake failed; returned -1, SSL error ...
Mohammad Zakir Raza's user avatar
8 votes
1 answer
708 views

Flutter - How to find username and password resource ID for Google Play Console App Access?

On the last version of my Flutter mobile application, Google Play Console requires App Access credentials(Action Required: Provide instructions for app access), because the app is written in Dart, I ...
Dorin Ciocian's user avatar
8 votes
0 answers
559 views

How to read audio file in dart flutter?

In Python, It's possible to read an audio file as an array of samples and receive its sample rate with: array_of_samples, samplerate = librosa.load('filename.mp3') also: array_of_samples, samplerate =...
AJITH PINNINTI's user avatar
8 votes
1 answer
7k views

Flutter : error: package io.flutter.embedding.engine.plugins does not exist

How to Fix This Error I try to (Flutter Run)Debug my Code & Test App in flutter showing this error... before this i have Gradle Build error i fix it after that showing Minimum supported Gradle ...
Muhammad Anus's user avatar
8 votes
0 answers
433 views

How can I use dart:ui in a command line Dart application?

I know that dart:ui contains "Built-in types and core primitives for a Flutter application". I'd like to use Color and other functionality from this package (computeLuminance) in a command-...
TechAurelian's user avatar
  • 5,821
8 votes
0 answers
2k views

How to Create Web Components in Dart

1. Context Creating Web Components is possible in vanilla JS by: Creating a class that extends HTMLElement And then registering it: window.customElements.define('app-drawer', AppDrawer); Since I ...
psygo's user avatar
  • 7,603
8 votes
1 answer
2k views

Flutter back navigation doesnt trigger RouteAware didPop()

My goal is to track routes being presented and dismissed for analytics purposes like described on this article: https://medium.com/flutter-community/how-to-track-screen-transitions-in-flutter-with-...
Scaraux's user avatar
  • 4,172
8 votes
1 answer
2k views

Not launching the app on notification click? Flutter Local Notifications

I am working on a project, I have used Flutter Local Notifications to show periodic notifications, I'm trying to figure out if there is a way to not to launch the app on notification click, for ...
Madhavam Shahi's user avatar
8 votes
0 answers
719 views

Flutter Android Logs Are In Excess And Verbose

When I run an app on the Android Emulator, or, on a physical device, the logs are huge, and often overwhelming... I wanted to know how to get only relevant output and, not unnecessary logs like this ...
XtremeDevX's user avatar
  • 1,802
8 votes
1 answer
947 views

Flutter AWS : how to authenticate IAM role user of bucket and get AWS S3 object of hls video file and play in video player?

how to authenticate IAM role user by region, bucket id,access key and sceret key and get video file object and play in video player. Actually we have uploaded video files in AWS S3 and given access ...
Jai Techie's user avatar
  • 1,957
8 votes
0 answers
2k views

Flutter Cupertino/Material combined Theme / shared font family

I've been trying to solve a couple of problems using both Material and Cupertino widgets. 1) I can't seem to figure out how to globally define a font family for both. Either I use a CupertinoApp and ...
Jordan Dearsley's user avatar
8 votes
0 answers
1k views

Flutter - How to fetch data from website that has Cloudflare DDOS protection

I'm trying to fetch data from my website. But when I print response.body I get the body of Cloudflare DDOS protection design's body. Here is my code: var url = 'https://example.com/mycontroller/...
Furkan's user avatar
  • 81
8 votes
1 answer
1k views

GoogleAPI with Google Sign In Account

I've implemented google sign in with firebase auth in my application. I'm trying to implement GmailAPI with signed in google account but was unable to find anything regarding both of them together. I'...
codekls's user avatar
  • 189

1
2 3 4 5
666