Category "flutter"

When / where is the best time / location to "open" HiveDB boxes in a Flutter app?

According to the HiveDB docs, when you "open" a box using Hive.openBox<E>('testBox'); all the data contained within the box is loaded into memory for imme

Is it possible to use Flutter to make Android app that implemented Accessibility API?

Have anyone had the experience in using Flutter to make Android app that utilize the Android accessibility API? Is this possible?

My youtube Video Player is not working with listview.builder

when i tried youtube credential for youtube video player with list view it is not working. showing The following error: NoSuchMethodError was thrown building H

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 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