Category "dart"

A Firebase App named "[DEFAULT]" already exists

I have my flutter App integrated with firebase, everything was fine but when I migrated firebase project to client firebase console, added his google services f

A Firebase App named "[DEFAULT]" already exists

I have my flutter App integrated with firebase, everything was fine but when I migrated firebase project to client firebase console, added his google services f

Undefined class 'AuthResult' in Flutter

I have been trying to implement Google login screen using Flutter. final AuthResult authResult = await _auth.signInWithCredential(credential); The editor, f

CupertinoTabView casusing Assertion failed: _history.isNotEmpty is not true on Navigator.pop() (web only)

So I have an app that Pops the current screen once an event happens. The code works fine on iOS and Android. But on the web I get the following error: Assertion

Flutter: Get ListView size to create dynamic item sizes

I'm trying to create a ListView in Flutter where the total sum of its items' width is the width of the ListView itself. In other words: I have 24 items, and I

2 positional argument(s) expected, but 1 found. and The argument type 'String?' can't be assigned to the parameter type 'List<Object>'

I have been able to open my files using the file picker package but I am to save the result path to the pdfFile variable. This is the variable File? pdfFile; I

Flutter Chat App or Messaging App Notification

I am making a chat app with flutter. I used StreamBuilder to receive messages and store them in Firestore. StreamBuilder<QuerySnapshot<Map<String, dyn

Flutter with Sqflite + Getx data update issues

I am currently using GetX and Sqflite within Flutter and encountering the issue of data update after insert. Firstly, there is a LoadingScreen which checks if t

Clone a List, Map or Set in Dart

Coming from a Java background: what is the recommended way to "clone" a Dart List, Map and Set?

HTTPS with SSL Certificate in DART HTTP Server

Does the Dart HTTP Server support HTTPS? If so, how do you specify the certificate? If not, are there any alternatives such as community created packages?

Flutter run returns: A problem occurred evaluating project ':app'." ">ASCII"

I'm trying to follow the "Add firebase to flutter" tutorial (https://firebase.google.com/docs/flutter/setup) . I've done this with many prior version. Now on F

How to split the elements in a list according to range of numbers in flutter

Am working on a project and I need to break down a list to a new list eg I need to break down this kind of list [{ name: rice, quantity: 87, price: 8700}, {name

The linked framework 'Pods_Runner.framework' is missing one or more architectures required by this target: x86_64

I am getting the below error while building my flutter app in IOS simulator via M1 Macbook pro. I am using VS code for editing. I have no issues with the buildi

error with PhotoView : Looking up a deactivated widget's ancestor is unsafe

I have read few stackoverflow posts about "Looking up a deactivated widget's ancestor is unsafe" error but couldn't find an answer which work. I've tried to set

Flutter - How to download files in WebView?

I am using flutter_webview_plugin: ^0.3.8 but I have the same problem with webview_flutter: ^0.3.13. In webview, I want to make use of a website which triggers

how use regexp in flutter?

I want this format.see at photo. I use this code RegExp(r'^(?=.*[0-9])(?=\\S+$).{8,40}$').hasMatch(text). This code is ok for java but not for dart.I don't

Insert element at the beginning of the list in dart

I am just creating a simple ToDo App in Flutter. I am managing all the todo tasks on the list. I want to add any new todo tasks at the beginning of the list. I

Flutter Horizontal List View Dot Indicator

I have multiple images each with their own redirect link. Currently this works fine at displaying using a list view build to display the images inside a gesture

How to use JWT with WebSocketChannel in Flutter

I have an existing Websocket Channel which needs authenticate user by his JWT in order to send/receive messages using this socket connection. The problem is - I

How to include multiple fonts into single text

I have an Arabic text in a pdf file. When I copy the text into Text Widget it becomes weird characters. When I checked the pdf file properties I found that it u