Category "flutter"

returning null value when flutter http get request(Instances of _<Future> dynamic)

i am trying to get a data from a flask rest api but it keeps returning null value when it converted toString() it displays "Instances of _ dynamic" getPass() as

Android Manifest error after creating a Flutter Application

Everytime i create a flutter application using Android Studio, i always have errors/red lines in the Android Manifest file. Any ideas why this keeps happening?

Camera crashes when Flutter App opened on Chrome on Mac

I have implemented code which will allow me to access the camera in my flutter application and it is working perfectly when the app is opened on android, but th

Flutter screen size without AppBar and BottomNavigationBar

I am trying to get the exact size of the screen without taking into account the AppBar and BottomNavigationBar Here is the code: double screenSize = MediaQuery.

Automatically upgrade a dart package

I have a package on github and it is been used in two of my projects, but every time I make a change to the package I have to run flutter pub upgrade on both pr

Firebase Realtime database filter by child list content

I have the following Firebase Realtime database products data { "-N1OHKTcbZ1h1kJQYSW-": { "images": [ "image1", "image11" ], "name": "

I am trying to run my flutter app and I am getting these errors?

here is the error message The current Dart SDK version is 2.13.4. Because test >=1.16.0-nullsafety <1.16.0-nullsafety.8 requires SDK version >=2.10.0-0

How to navigate to new page using flutter?

I want to click each navigation item and direct it to another activity. I actually want to show the list view of 'now playing movie'. When I click that drawer i

Flutter: Missing google_app_id. Firebase Analytics disabled

I want to send a notification from a device to another but when I sent it I got in the receiver device : D/FLTFireMsgReceiver( 8876): broadcast received for mes

How to set a text from parsed json variable in Flutter

I have a problem with parsed JSON in Flutter-Dart. Actually, there is no problem, but there is a method which I don't know. I'm getting data from a PHP server a

FirebaseOptions cannot be null when creating the default app in Flutter Web

I ran into the following error: Launching lib/main.dart on Chrome in debug mode... This app is linked to the debug service: ws://127.0.0.1:45119/uWRkb_0RvDE%3D/

Empty Body HTTP Post request Flutter

I am trying to send a Post request but the body of the request is meant to be empty and I have tried the endpoint on postman with an empty body and it works. Bu

How to save audio as File in flutter and send it to a flask server?

I'm trying to send an audio file (.m4a) to a flask server in my flutter app. the audio file is recorded using FlutterSoundRecorder package and saved to path "au

Failed to package flutter xcode

I am trying to run my flutter project on my ios device, but I got an error in the xcode that says "Failed to package /Users/user/StudioProjects/project." Any so

Create Gradient on Top Right of the page in Flutter

Hy everyone, I need to know, how can I create gradient on top right of the page like this picture? I tried with this code, but it's still not working for me: S

flutter onesignal add problems "Expected to find project root in current working directory."

When I want to add onesignal to flutter, I get the following error. How can I solve it? PROBLEM PHOTO

LateInitializationError: Field '_instance@141084504' has not been initialized

When using getX and Flutter I get following error: LateInitializationError: Field '_instance@141084504' has not been initialized This is the code: import 'dart:

Argument type 'String?' cannot be assigned to parameter type 'String', Triggering Dart's Null Safety either way

In this current snippet I have declared notification to be nullable but get an null safe error for the if loop's notification.body and notification.title. Here'

Can't watch object instance with Riverpod

In a Flutter web project, I'm having this issue with Riverpod: Consumer( builder: (context, watch, child) { final om=watch(human); return Text(om.na

How to use the data from different model and context?

I made the small app, and designed like this: return MultiProvider( providers: [ ChangeNotifierProvider(create: (context) => AModel()),