Category "flutter"

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

Positioning widgets at specific image coordinates

I have a set of x/y coordinates which I'd like to use to show widgets on top of an Image widget at those specific coords, relative to the original image dimensi

Firebase security rules (.read)

I have a question about Firebase Database security rules. I want only some documents to be reflected in the application. I tried to create a "published" field i

Flutter health package - access denied! - Google fit

I am developing an app in Flutter with Health package, but my app isn´t working. I download the google-services.json, already edited the manifest file wit

Flutter initialization failed, java.lang.UnsatisfiedLinkError: dlopen failed: library "libflutter.so" not found

The app runs properly on iOS, but when I try to run it on an android I get the following error E/FlutterLoader( 9150): Flutter initialization failed. E/FlutterL

Why does xCode cannot build my flutter app with 'sqflite' not found error

I'm trying to build my Flutter app for iOS using xCode and got error: .../ios/Runner/GeneratedPluginRegistrant.m:10:9: Module 'sqflite' not found When I'm tryi

Removing button and load data

Hey guys I need help with removing this button and load data from json file without need to click on that button Here's code List _items = []; // Fetch content

How can i solve the red warnings in flutter when i start to to run

i have everything up to date in flutter and dart. and i have no issues when i run flutter doctor . everything sound good but i still get these red warnings line

How to injest javascript in

I'm working on a Flutter web project. The web/index.html file is injecting a JavaScript script which could be simplified as: <script> window['dataLayer'

Record Audio and upload file to firebase storage Flutter Web

I am using the flutter_sound package to record and play audio. On Flutter Web, on stopping the recording the recorder returns a path/URL of this type: blob:http

Have anyone tried using rule engine for dart?

I'm still new in developing mobile apps so I'm struggling to understand how to use it since there's no examples of people using it. I want to use a rule engine