Category "flutter"

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()),

The argument type 'OrderItem' can't be assigned to the parameter type 'OrderItem'

I am unable to assign my one class to another even though I have imported the lib for them. I am following a course . In this I will fetch the orders from fireb

Android Studio gone nuts all of a sudden

Firstly, Look at the screenshot that I've attached, It is giving me red lines (look to the right) in my entire code (386 errors in 766 lines) all of a sudden (

Flutter settings.name incomplete on page reload

I have a route setup. In the browser, it looks like this. localhost:1234/#/member/D8B5D7F17639A28FE83C47AFFC69592E? I use an onGenerateRoute function like this

What to do when listview.builder does not fit screen width in Flutter

The following is what is returned from a Flutter widget: return Center( child: Column( children: [ SizedBox(