Category "dart"

The getter 'password' isn't defined for the type 'Icons'

The icons I selected appear to be undefined even though they are in the class. What is the reason for this? Icon( Icons.password, color: iconColor,

How to share an image from gallery with my flutter app?

Can anyone point me to a library or advice on how I can go about sharing an image from the gallery with my app using the share button? I want to have my app app

Flutter: Unable to load asset

I cant Upload image as a background to a container, i have added the image in assets folder and added it to pubspec.yaml and showing me that error : I/flutter

Why do we use the dispose() method in Flutter Dart code?

Why are we using dispose() method? I'm little confused about it. what will be issue occurs If we don't use it and what's the benefit of using it? @override v

Flutter cannot delete build folder when flutter clean is executed

Whenever I try to clean my flutter project by using the command flutter clean I get an error saying Failed to remove build. A program may still be using a fi

Canceling Google Sign In cause an exception in Flutter

I am trying to implement Google Sign In in my android flutter app, but I have this problem: When user cancel Google sign in (tap on back button) this exception

Flutter cannot delete build folder when flutter clean is executed

Whenever I try to clean my flutter project by using the command flutter clean I get an error saying Failed to remove build. A program may still be using a fi

Error: Not found: 'dart:js' import 'dart:js';

I am creating a PopupMenuButton() in the AppBar section. This is my file: import 'dart:js'; import 'package:bfdi_app/settings.dart'; import 'package:cached_n

Invalid argument(s): Input buffer too short AND Invalid or corrupted pad block

I am trying to encrypt and decrypt chat messages for my app using this code String decrypt(String encrypted, {String key, String iv}) { final key = Key.fromUt

How to share a file using flutter

I am wondering how to share a file in a flutter app? I saw some old references to using Intents with mojo, but that no longer seems to be present. This seems

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?