Category "dart"

Cannot convert http.post from php to dart

I tried to convert this code from php <?php function sendjson($url, $array_params) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url);

ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: [core/duplicate-app] A Firebase App named "[DEFAULT]" already exists

Since im new in firebase, im having trouble with duplicated name already exists, and i need your help. E/flutter (21802): [ERROR:flutter/lib/ui/ui_dart_state.cc

How to reduce network speed in Flutter?

I am writing a networking app, In there I just want to control the speed of the network (Increase and Decrease). Are there any solutions to achieve this?

How can i change only the changing value in flutter signalr?

I cannot setup the logic. I have three values. You know signalr only changing value comes. When i tried to change, every values change. Here is my code part=>

Flutter error: No CMAKE_CXX_COMPILER could be found

I am new to Flutter. When I want to run my Flutter application on Windows, I get this error: Launching lib\main.dart on Windows in debug mode... CMake Error at

Flutter Error: WidgetsBinding.instance!.addPostFrameCallback((_) {

After upgrading to 3.0.0. i keep getting this error about WidgetsBinding.instance!.addPostFrameCallback((_) { here is the image of the error.

Graphql_flutter runMutation's QueryResult is returning null, though the mutation is executing correctly

I'm using graphql_flutter 3.1.0 and have started the authentication for my app and am needing to set the user in my Provider state on successful creation. My mu

How do i define < operator on dart?

when i run the program,it shows "Failed to build basics1_dart:basics1_dart: bin/basics1_dart.dart:38:12: Error: The operator '<' isn't defined for the class

"Bad state: Cannot call `when` within a stub response", "type 'Null' is not a subtype of type [...]"

I wrote a few unit and widget tests for my Flutter app. They all pass when called from the testing window out of VSCode: But when I call flutter test from the

No `Podfile' found in the project directory

I'm trying to run pod install command in android studio but terminal outputs the following error : [!] No Podfile' found in the project directory.

Getting XMLHttpRequest error while fetching data from website in Flutter

So I got this "XMLHttpRequest" error and I've been trying to fix it for hours without any results. Here is my code: var response = await http.get(Uri.https('sig

json_serializable enhanced enums not working. This requires the 'enhanced-enums' language feature to be enabled

I'm using the latest version of all these packages. dependencies json_annotation: ^4.5.0 dev_dependencies: json_serializable: ^6.2.0 build_runner: ^2.1.1

A problem was found with the configuration of task ':app:processDebugManifest' in first project

[I just Installed Everything for flutter...and run the first default app...but this problem is showing] Like picture below: FAILURE: Build failed with an except

How to implement twitter login without firebase in flutter?

I want to implement twitter login in my app without firebase but I found most tutorials used firebase. I read docs of package twitter_login but could not implem

How to display cards on a board (for a card game)?

I'm implementing a phone app for playing UNO using flutter (and dart), and I'm stuck with how I should display the cards on the board. This is what I would like

dart show documentation from another method in another file

Is it possible to show the documentation of a function in the documentation of another function residing in a different file? Macros are only valid in their own

Can't manage to fetch data from a second JSON file

I'm trying to use a fetched data from a JSON file to make another fetch on a second screen. Let's say I have a JSON file that was fetched via www.fruits.com/dat

Exception in thread "main" java.util.zip.ZipException: error in opening zip file When testing the application

In Android Studio the application was running on Real device, it was exported in ABK format .. But after a while, this error appears I read about gradle but did

Difference between Thread, Isolate and Process in Dart

What's the difference between Thread, Isolate and a Process in Dart? As far as I know Dart is a single-threaded language, but it can spawn many isolates which d

Create flutter chart with json api data

I'm creating a flutter app to receive data from the Yahoo finance API and show this data in a chart widget. This is my detail page, getting the "Symbol"-Informa