Category "flutter"

I am getting this error while creating a new flutter project in android studio related to pubspec.yaml

name: i_am_poor description: A new Flutter project. publish_to: 'none' version: 1.0.0+1 environment: sdk: ">=2.16.2 <3.0.0" dependencies: flutter: sdk: fl

The operator '[]' isn't defined for the type 'Object'. Flutter Dart

Hello, could you help me with this error, I don't know how to solve it import 'package:firebase_database/firebase_database.dart'; class Users { String id;

How to fix this issue ? FAILURE: Build failed with an exception

I try to add a package name as new_version: ^0.2.3. After the terminal return the below error. How can I fix this? FAILURE: Build failed with an exception. Wher

The method '[]' was called on null. Receiver: null Tried calling: []("main") console error

Hi i am working on a weather app i learnt from a course, everything was working fine till i start with the refactoring and it just got complicated the code show

Positioning Row at bottom of stack Flutter

I have a stack with a fixed height, I want to place a row that contains multiple elements at the bottom of this stack. I wrapped my row that has mainAxisAlignme

Flutter : endDrawer icon hiden or actions button hiden

I had in my code a Drawer, and to hide the burger incon, i use "automaticallyImplyLeading = false". But now, i change to endDrawer and i dont know how the hide

Timer is not worked in background flutter

This code is not printed, when app go to background in iOS. Timer.periodic(Duration(seconds: 1), (timer) { print('timer'); } I need to save state to database a

Unable to update value: tween of TweenAnimationBuilder Flutter

I am trying to show countdown timer in my project app. First when user open a screen they can choose the duration of count down time by showing the radio button

I want to use custom font in Flutter Image.drawString

This is about Flutter, Dart, Image, specifically drawString function. First of all, what I am trying to do is watermark the picture taken with the address and t

Flutter Failure [INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION]

Recently, I used Flutter to reconstruct the previous Android project, but it could not be installed on some Android phones. The following is an error message: E

How to write an expression into a method?

How can I write the expression into a separate method for optimization: final listOfKeys= [_firstTabNavKey, _secondTabNavKey, _thirdTabNavKey] onWillPop: (

How to solve flutter web api cors error only with dart code?

It seems like CORS error is well-known issue in the web field. But I tried flutter web for the first time ever and I faced critical error. The code below worked

How to fix Chrome showing an empty / transprarent window for a Flutter web app on Linux?

When I run a Flutter web app in Chrome using Android Studio I only get an empty / transparent window on my Linux Mint 20.2 system. empty / transparent chrome wi

FlutterFire cli - how to switch between separate firebase consoles

I have two separate firebase consoles accessed from two separate google accounts. Firebase console "A" has three projects. Google account [email protected] Firebase c

Flutter: Using Proguard with Gradle 7.0.4

I just updated to Gradle 7.0.4 and upon build I now get the error. A problem occurred evaluating project ':app'. No signature of method: build_9gq7rvxos4tcg7upa

Bloc depends on unregistered type - Injectable

I'm using injectable lib according to a tutorial in youtube some of annotations replaced. but I visit injectable lib in pub.dev look to the changelog and replac

How to get OTP from SMS - autofill

I want to catch or read OTP of SMS messages automatically. I did some tests like this code : import 'package:flutter/material.dart'; void main() { runApp(MyA

Flutter and Firebase - How to sign in using username and password only

I just recently started working with firebase and I can't seem to figure out how to make a user sign up with an email, a username and a password so that later o

Changing the order of PlatformViews (iFrame) in a Stack causes the render to fail

A possible fix would be to avoid using Keys in the Positioned widget (L: 42) but this would cause the internal state of the HtmlElementView (or other displayed

late initilization error shared prefrences in flutter?

even after i have intitialized there is an error : Late initialization error displayName here is the code where i have set the value: var displayName=json