Category "dart"

How to upload Multiple Images to rest API in Flutter?

I am trying to upload upload multiple images to Rest API in flutter. the code i have written is given below: final List<File> _image = []; Future<F

Flutter: go_router connect to flow_builder

go_router can't use declarative flow of steps. Like steps of registration, where you can fill the form and call goNext() But flow_builder can. It allows you to

Cannot run flutter application on newly set up environment

I've got a flutter app that has last been working on about two years ago and I wanted to pick it up from there and do some further changes. I installed flutter

Riverpod StateNotifierProvider depend on a FutureProvider

I have a StateNotifierProvider that depends on a FutureProvider. Currently they look like below. final catalogProvider = StateNotifierProvider<CatalogNotifie

stop watch timer on flutter. How can I print the time in the terminal while pressing a button?

What I would like to do is printing the current time on the terminal while pressing the reset button. ElevatedButton( onPressed: () {

pull to refresh freezes the WebView scrolling in flutter

After implementing the pull to refresh button on webview I'm facing the screen scrolling issue on webview. When I try to scroll the screen upwards or downwards

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