Category "flutter"

"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

Flutter Firebase messaging - push notification is not showing when app is open

I'm new to flutter and I'm just trying to receive firebase push notifications to my flutter app. Push notifications are receiving when the app is closed and in

Flutter ElevatedButton Custom style

I want to make an elevated button like the one below in flutter. I have tried a few things like a border but did not succeed in it. Anybody help me to make it i

How to make flutter desktop app goes fullscreen when move to top of the screen

When I move my app to the top of the screen I want to make it look like this and then file explorer goes fullscreen

What went wrong: Execution failed for task ':flutter_facebook_auth:compileDebugJavaWithJavac'. flutter

FAILURE: Build failed with an exception. What went wrong: Execution failed for task ':flutter_facebook_auth:compileDebugJavaWithJavac'. Multiple build operatio

Parse additional data in push notification by OneSingal by flutter

Please help me for this case. I implement feature - push notification by OneSignal. My situation as belows: Android devices: Receive notification: App close: op

How to return list of post model in flutter

This is example of my json response [ { "userId": 1, "id": 1, "title": "sunt aut facere repellat provident occaecati excepturi optio

How to keep the state of each page when using PageTransitionSwitcher?

I am trying to add the animation library to my project, but I am having problems. The previous code is like this Widget _buildScaffold(BuildContext context)