96,218 questions
206
votes
55
answers
286k
views
CocoaPods not installed or not in valid state
Launching lib/main.dart on iPhone 11 Pro Max in debug mode...
Warning: CocoaPods is installed but broken. Skipping pod install.
You appear to have CocoaPods installed but it is not working.
This ...
8
votes
1
answer
3k
views
How to set the current working directory in Dart?
In a dart console application, how do I set the current working directory?
1
vote
0
answers
18
views
How to integrate a candlestick chart like stockmarket app in a Flutter App
I am working on a stocktrading app where i need to integrate a candlestick chart into application.
i have tried material_charts and still looking for some stable package or custom widget for the same.
...
0
votes
0
answers
17
views
How to extract a specific column information from a pdf using flutter
I have a pdf file which has a table. Inside the table I have multiple columns. I want to extract the data from a specific column for all the entries. The pdf might contain multiple pages.
I am able to ...
0
votes
3
answers
3k
views
Flutter pushing two page to navigator sequentially
I want to push two pages to the flutter navigator one after another, so that going back from 2nd page redirects me to the first page. The code for this action will look somewhat like below -
Navigator....
2
votes
2
answers
612
views
Package new_version_plus:android references com.codesfirst.new_version_plus:android as the default plugin, but the package does not exist,
Hello I just upgraded my flutter application to 3.6.0, previously I was using new_version package to show the update popup but as it is no longer maintained I just switched to new_version_plus but I ...
4
votes
4
answers
2k
views
Flutter complains that it "Could not prepare isolate"
The error looks like this:
E/flutter ( 3378): [ERROR:flutter/runtime/dart_isolate.cc(144)] Could not prepare isolate.
E/flutter ( 3378): [ERROR:flutter/runtime/runtime_controller.cc(422)] Could not ...
0
votes
3
answers
808
views
how to solve flutter bar code package problem
I try to build a release apk for my project, but I face an exception:
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':flutter_barcode_scanner'.
>...
1
vote
1
answer
45
views
I published flutter web on iis server and when reload or refresh link gives 404 error
i am using flutter as a web when publish as a release mode on iis server gives HTTP Error 404.0 - Not Found when reload with url,but ok with click on links.
but localhost work fine, there no any ...
8
votes
4
answers
523
views
Why are trailing commas auto deleted and not formatted in flutter?
The trailing commas used to be auto formatted now does not format it but instead it deletes them. The same happens in Android Studio. What might cause this?
This is the dart settings:
"[dart]&...
0
votes
0
answers
19
views
Unable to Fetch and Display Admin, Passengers, and Drivers Chats from Firebase Firestore in Flutter
I am working on a Flutter project where I need to display chat messages between admin, passengers, and drivers. The chat data is stored in Firebase Firestore under the admin_chats collection. Each ...
0
votes
1
answer
26
views
Dart: Recursive Algorithm Composition
Looking for some guidance on method composition in Dart. I am working on a recursive event processor in Dart for a game. My recursive method has several inputs that then requires I pass along, ...
1
vote
6
answers
842
views
Why won't my mysql1 queries in dart return any results?
I have recently started developing a flutter/dart project getting some basic pages set up and navigation.
I have a MySQL database that I would like to incorporate and I found the mysql1 package to ...
19
votes
11
answers
83k
views
Another exception was thrown: 'package:flutter/src/widgets/navigator.dart': Failed assertion: line 2216 pos 12: '!_debugLocked': is not true
My app was running good I just update the code in one file and I am receiving this error before that error every page was navigating perfectly and now all the pages are good to work instead of this ...
-4
votes
0
answers
26
views
what is the reason the database is locked for 10 seconds? [closed]
Warning database has been locked for 0:00:10.000000. Make sure you always use the transaction object for database operations during a transaction
0
votes
0
answers
32
views
Cannot pass function as argument to constructor of class extended ChangeNotifier
I'm trying to write a provider class with ChangeNotifier. Because the class is designed to be generic so the data inside is generic, so I thought of passing detail extraction function to this provider ...
20
votes
13
answers
30k
views
Why do I get white screen when building flutter web
I want to build a flutter web app, so I enter 'webdev build' command and after the operation finishes, I open the 'index.html' file located in build directory and it's just a white screen.
I tried it ...
1
vote
1
answer
27
views
The named parameter 'documentSnapshot' is required, but there's no corresponding argument
I want to navigate from a page not using Firebase to another page that I used Firebase, I could not know what the right argument.
This is a non-firebase page, the error in the tourist() route.
class ...
2
votes
2
answers
251
views
Why don't my AsyncNotifier and AsyncNotifierProvider get along?
I am writing a Flutter app in Dart on Android Studio and using Google Gemini to assist in coding.
I have reams of code in two dozen files and spend most days reworking code written by Gemini until it ...
1
vote
1
answer
24
views
Capture PowerShell Output in Dart and Flutter when Running Commands as an Administrator using Start-Process and -Verb RunAs
I am trying to run a Powershell command with admin privileges in Flutter/Dart.
The command runs a .ps1 file inside the temp directory.
I found this article, which I implemented and it works fine.
...
0
votes
1
answer
32
views
flutter_libserialport 0.5.0 Build failed SDKVersions suppressError=21
I have this error:
FAILURE: Build failed with an exception.
What went wrong:
A problem occurred configuring project ':flutter_libserialport'.
[CXX1110] Platform version 16 is unsupported by this NDK....
43
votes
18
answers
57k
views
Flutter Launcher icon not getting changed?
Am new to Flutter. I gone through the flutter documentation and followed the steps to configure custom launcher icons for my flutter project but app Launcher icon is not getting changed? Not sure what ...
1
vote
3
answers
2k
views
How to create a border like this in Flutter?
How to create a border like this:
0
votes
0
answers
33
views
Widget with different appearances but same memory
In Flutter/Dart I would like to create a stateful widget that has two different layouts.
That means that the widget can save the current state (e.g. the variables) but that
different return functions ...
3
votes
4
answers
16k
views
Trim String/Text in Flutter
Hi I tried to trim a link in flutter
Currently I am looking into regexp but I think that is not possible
This is the link in full:
http://sales.local/api/v1/payments/454/ticket/verify?token=...
1
vote
0
answers
36
views
Unverified breakpoints running Flutter web in a workspace
Situation:
The project uses the new dart workspaces feature.
There are 2 Flutter applications in this project.
Example project as reference:
https://github.com/TijlIvens/flutter_with_wokspace
Problem:
...
131
votes
24
answers
258k
views
Looking up a deactivated widget's ancestor is unsafe
I am new in Flutter and I am trying to receive data with a Dialog.
When i click in textField the error of image2 appears...
show(BuildContext context){
var dialog = Dialog(
child: ...
0
votes
2
answers
356
views
Https in flutter -post do not accept integer
I tried a lot to pass the int to the id via post but it didn't work and I used tostrin() but the api refuses to be an id string so what is the solution
http.Response response = await http.post(url,...
0
votes
0
answers
46
views
How to make SVG elements interactive in Flutter to make Floor Map (Tap & Zoom)?
I am working on a Flutter application where I need to parse and manipulate an SVG file. The SVG contains different elements like polygon, rect, and path. Here an example snippet.
<svg xmlns="...
3
votes
3
answers
4k
views
Flutter : how to get newly added record from firebase real time database?
I'm using below code to retrieve all the data from my firebase chat room
void readDataFromFireBase() {
var databaseReference =
FirebaseDatabase.instance.reference().child("messages");
...
4
votes
3
answers
11k
views
Get data from subcollection in firestore flutter
In the 1st screen shot there are many documents in collection users. Each documents contains further collection jobPost and that collection contains further documents and its meta data.
What I want ...
6
votes
2
answers
9k
views
responsive Ui in flutter
In Ui margin, padding, text and image sizes are given constant values. I didn't use Fractional box and Constraint box etc..I need to set according to the screen size via media query
I used media ...
39
votes
10
answers
59k
views
How to save an image to the photo gallery using Flutter?
My flutter app uses the camera package to take a photo, which I save to the application's data directory (obtained from path_provider and the getApplicationDocumentsDirectory() function).
How can I ...
42
votes
18
answers
84k
views
Flutter Gradle task assembleDebug failed with exit code 1 zip END header not found
Hello I am new to Flutter I have setup flutter with android studio 4.2.1, and every thing is fine. When I try to run it; it show me following error
I see too much questions but it is not helpfull for ...
1
vote
1
answer
29
views
Navigator.of in flutter
hi guys I am not able to navigate in my flutter pages:
when I run this command on FLOATINGACTIONBUTTON onPressFunction (
onPressed: () {
Navigator.of(context).pushNamed('/new_note');
...
0
votes
2
answers
4k
views
I got error while using ''image_gallery_saver'' in flutter
this is the error:
''
The android Gradle plugin support only kotlin Gradle plugin version 1.5.20 and higher.
The following dependencies do not satisfy the required version:
project ':...
0
votes
1
answer
1k
views
A problem occurred configuring project ':image_gallery_saver'
when i tried to build flutter project i get this error :
FAILURE: Build failed with an exception.
What went wrong:
A problem occurred configuring project ':image_gallery_saver'.
Could not create an ...
0
votes
0
answers
26
views
Render widget content to PDF or render html to widget and PDF consistently
In a few words, my problem is that I need to render HTML to a flutter widget and also be able to print it (e.g. to PDF) and both look the same.
A flutter app fetches simple HTML-formatted content from ...
0
votes
1
answer
182
views
Flutter: type '_Map<String, dynamic>' is not a subtype of type 'List<dynamic>' in type cast
I have something like this: I make an API call and set a Specialist()
Specialist(
...
closestTimes: specialist['closestTimes'],
),
This closest time in response is like this:
"...
230
votes
12
answers
353k
views
How do I open a web browser (URL) from my Flutter code?
I am building a Flutter app, and I'd like to open a URL into a web browser or browser window (in response to a button tap). How can I do this?
0
votes
3
answers
915
views
When i use BoxShadow Colors.grey.withOpacity(0.5) with opacity it show error
import 'package:flutter/material.dart';
void main() {
runApp(MaterialApp(
home: Scaffold(
appBar: AppBar(
title: const Text('Welcome'),
),
body: Center(
child: ...
0
votes
2
answers
479
views
Using DTLS within Dart
I am working on a Flutter application which needs to communicate using DTLS. As far as I can see there is no current support for DTLS in the Dart APIs, only TLS.
Can anyone recommend what I can do? ...
0
votes
2
answers
79
views
Fixing issue for CustomScrollView for flutter
@override
Widget build(BuildContext context) {
return Scaffold(
body: RefreshIndicator(
onRefresh: () async => refreshControllers(),
child: Stack(
children: [
...
0
votes
1
answer
40
views
Can’t cancel a stream subscription
I have this code:
import 'dart:async';
import 'dart:math';
class TestService {
Random random = Random();
StreamController<double> streamController = StreamController<double>();
...
-1
votes
1
answer
217
views
how can i close a Get overlay in flutter?
I have an async function in my application and the user should wait unlit the operation is completed but there should be a button that cancels the operation and restest the operation in the app
the ...
0
votes
0
answers
38
views
How to refactor a string into a ARB resource in Dart/Flutter?
I am working on a legacy Flutter app which does not have translations.
I need to create many resource entries in the ARB file and then replace the text by AppLocalizations.of(context).something.
Is ...
19
votes
15
answers
73k
views
Flutter - Warning (CocoaPods not installed Skipping pod install) Even While Installed
I am trying to build a Flutter app with Geolocator plugin on Android Studio.
When I am running the app I have the following warning - that prevents the app from running:
Warning: CocoaPods not ...
17
votes
3
answers
31k
views
how to send an SMS without users interaction in flutter?
I am actually trying to send SMS from my flutter app without user's interaction.
I know I can launch the SMS app using url_launcher but I actually want to send an SMS without user's interaction or ...
0
votes
0
answers
24
views
How to disable invalid_annotation_target warning?
Context
I released a package to pub.dev. The model classes were built with freezed. After release, I noticed that pana (the pub.dev's analysis tool) complaining about the following warnings and the ...
5
votes
4
answers
2k
views
Flutter conflicting dependency when running integration tests
I have imported two libraries which have classes of the same name. I have tried to reslove the conflict by aliasing the imports across the project where used. I have also tried creating a small blank ...