Category "flutter"

Custom Dropdown Button and MenuItems Flutter

I am trying to build my own drop down button with separated and condensed menu items, like the image below: here's the code I have tried so far, I got the dr

Failed to transform moshi-1.13.0.jar (failed for task biometric_storage:kaptGenerateStubsDebugKotlin)

I pulled a team's project that is made in Flutter from Git and for some reason when building the app (pressing the green arrow in Android Studio and running mai

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

When phone is rotated to landscape mode, the bloc builder is building again

I am using better_player package for showing video from an api. The video url is fetched through bloc. Suppose, I am watching the video and reached halfway, whe

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

Failed to open /qemu.conf, err: 2

I got this error while using windows command prompt to connect a android virtual device to visual studio code. However opens the android virtual device but stil

Failed to open /qemu.conf, err: 2

I got this error while using windows command prompt to connect a android virtual device to visual studio code. However opens the android virtual device but stil

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

Error: Either zero or 2 or more [DropdownMenuItem]s were detected with the same value I/flutter (18363): 'package:flutter/src/material/dropdown.dart':

Error code Hi I'm new to flutter and have a question about dropdownbutton regarding using the same values for multiple dropdownbutton. From my understanding fr

Flutter || W/DynamiteModule( 4887): Local module descriptor class for com.google.android.gms.providerinstaller.dynamite not found

When I fetch data from Firebase Firestore, data is not shown. And it gives me this problem. Is it related to Firebase or anything else? W/DynamiteModule( 4887):

The Google Fonts Package in Flutter app is not working

First, I added the google_fonts package to your pubspec dependencies. dependencies: flutter: sdk: flutter cupertino_icons: ^0.1.2 google_fonts: ^0.2

iOS - CocoaPods requires your terminal to be using UTF-8 encoding - after latest flutter upgrade

I am getting this error after I upgraded flutter. Before upgrading everything was working normal on both iOS and android. Now my project is not building in iOS.

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

"Error running com.example.flutter_launcher

package identifier or launch activity not found. Please check E:\udemy_flutter\android\app\src\main\AndroidManifest.xml for errors. No application found for Tar

iOS - CocoaPods requires your terminal to be using UTF-8 encoding - after latest flutter upgrade

I am getting this error after I upgraded flutter. Before upgrading everything was working normal on both iOS and android. Now my project is not building in iOS.

"Error running com.example.flutter_launcher

package identifier or launch activity not found. Please check E:\udemy_flutter\android\app\src\main\AndroidManifest.xml for errors. No application found for Tar