Category "flutter"

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 to create an image from a widget in Flutter-web?

To display custom widgets on google maps google_maps_flutter I use a very convenient function that translates any Widget (including those containing images) int

Flutter - running command "flutter _____" instantly closes terminal

Dealing with some significant frustration trying to set up my environment variables just to run Flutter. in my path, I've tried many suggestions to try setting

Open flutter app windows by a custom schema

Some windows apps like telegram, can open with custom schema url by browser. When I install telegram on my windows pc and enter tg:// in browser, It can maximiz

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

How to navigate tab from another dart file button tap event?

How to navigate tab from another dart file button tap event? I am using Tabmanager. It only works with the same dart file. I am having error in TabManager._myTa

Flutter iOS: How to fix "Could not build module `firebase_core`"?

I have a flutter projecct. First it had to work on android and its working! Everything is cool. Time to make it work on iOS but I get the following error when I

"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

Set background color in flutter chart

I am using charts_flutter to build a bar chart, but having a hard time setting the background color. The char is working fine, but I cannot seem to find the opt

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.

how to change the gradle version for all newly created flutter projects?

I'd like to change the default Gradle version in all my newly created flutter projects. Right-Now I have to change the Gradle version manually in distribution-U

This is the case for List in my StatefulWidget

Flutter import 'package:country_house/pages/Country.dart'; import 'package:dio/dio.dart'; import 'package:flutter/material.dart'; class AllCountries extends St

Connect a python-run PostgreSQL database to a flutter web app

I am currently developing a flutter web app for tracking the information in students classes. The app is basically a task management app curated for students. I

auto_route redirect with declarative routes

I have an iOS app with auto_route which uses declarative routes as in this example for the root router: https://autoroute.vercel.app/advanced/authentication. I

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

One to One chat using socket.io in Nestjs

Please let me know if the code I have written for one-to-one chat is correct? and how do I know that messages are emitting from the backend here I am assigning

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

How to build a custom image provider in flutter?

I want to write an image provider for my own image class. Let's take the widget below as a sample for an image class. This widget can be used whenever a image i

App crashes on iOS simulator when forced to Sign In With Apple ID

I have been testing my app successfully for months now. Within the last week when I launch my app on the simulator I get a "Sign In With Apple ID" prompt. Wheth

firebase_messaging/unknown: An unknown error has occured on Flutter IOS

Everything was working fine before but now firebase can't seem to create a new token. I'm trying to call await FirebaseMessaging.instance.getToken(); but gettin