Category "dart"

Cannot Select Checkbox List Tile Flutter

I've created a map of values to make checkboxes. The map consists of String and bools and when the value of the bool is changed, the check box value should chan

How to install Dart in Google Compute Engine (GCE)?

I am trying to learn both Dart and GCE. I already created a server at GCE, but I don't know how to install Dart since I can only use Linux commands on the Debia

Flutter/Dart: getters with a parameter

I can't understand how this works. In the class: Function(int) get myGet { return myStream.sink.add; } and its implementation in a screen: myObject.myG

Flutter doctor error - Android sdkmanager tool not found. Windows

I have been going round in circles with this issue, there are so many that people have issues similar to mine, but not one of them is the same. I am trying to g

How to verify certificate chain in Flutter?

I have a mobile app written in Flutter that stores an intermediate cert. Other mobile clients can send certificates to this device and it should decide whether

Flutter Firebase Auth: A network error (such as timeout, interrupted connection or unreachable host) has occurred

I am trying to integrate authentication on Flutter using firebase_auth. However, whenever I call the verifyPhoneNumber("+256XXXXXXXXXX") I get the error message

Close Navigation Drawer on Back Button Pressed in Flutter

I have a material designed Navigation Drawer in my very first flutter app. This work's fine but I did't find any way to close the Navigation Drawer on Back Butt

prefer const with constant constructor

I have an error that shows this message "prefer const with constant constructor" when i deleting const on below class splashscreen theres not showing any error

Flutter dropdown alignment not proper

I want the dropdown like this with flutter Expected: with flutter dropdownformfield I'm able to do something like As you can see, When I click the dropdown bu

Flutter Cannot run Project.afterEvaluate(Closure) when the project is already evaluated

Workaround way: Looks like there is dependecy of onesignal plugin on flutter_tools. The solution is to place onesignal plugin after it in the sequence in the "a

Either zero or 2 or more [DropdownMenuItem]s were detected with the same value

I am new to Flutter but I am trying to create a DropdownButtonFormField and it is not working. I am getting an error that says I have duplicate values. What is

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