Category "dart"

Dart: What is the difference when using this keyword and colon after the constructor?

I have found some codes that got me confused regarding "this" keyword and the colon after the constructor. I want to know what the difference between the two is

google_mobile_ads occurs an error when banner widget displayed | flutter

I'm trying to display banner ad in my app on Android. But an error occurs when AdWidget() called. throw FlutterError.fromParts(<DiagnosticsNode>[

Calling static method on type parameter renders method not defined error

Suppose this method: T? reviveObject<T>( dynamic value ) { if ( ( value is Map ) && value.containsKey( '_type_' ) &&

How can I update the data automatically without refreshing the page in firebase flutter?

I have to display total number of Sales and pending sales in the dashboard. I have designed inside the container. I need to update that every time new sales add

Firebase rules don't allow access

So my flutter code works fine until I change my Firebase Realtime Database rules. It does not throw an error in debug console or anything, but the app does not

How can I make a table in flutter where I can see the prices of items for different stores side by side?

I have the following class and list: Class: class ProductPrice { final int productPriceId; final String establishment; final String product; final doubl

How to use getx controller, binding,getview?

I trying to create small project with getx, I have 3 file's get view,getxcontroller,binding and then when I'm running I get issue like this : Unhandled Excepti

How to expire/dispose Notifications in Flutter App

I enabled notifications in my app and its working fine but how can I expire an old notification if a new one arrives or expire it after a certain duration?

i try to make permission handler for flutter

I am building a music player application. I want to ask the user to allow access to storage when the application is opened. I used this method and it works prop

Consumer and context.watch in MultiProvider

I am trying Flutter for the first time, and I am a little confused by the MultiProvider class. The question is straightforward, but I didn't find an explanation

How to join two key values from map in dart?

I have this List<Map>: var listMap = [ { "label": "Title", "align": "left", "width": 50 }, {

how to add symbols to text at flutter?

What is the way to write these symbols in Flutter (the symbols directed by the red arrow on image)?

How to use contains with a list in dart

Hi i have list of objects and i would like to check if a certain object is in the list i have the following code List<GladiatorOutput> gladiators = await

How to load data into the database and get it back

When I open the screen by "ID", I get the title and data from "dummy.dart" in accordance with the "exercise_model.dart" model, which fall into the "Slider", in

How to load data into the database and get it back

When I open the screen by "ID", I get the title and data from "dummy.dart" in accordance with the "exercise_model.dart" model, which fall into the "Slider", in

Flutter StreamBuilder shows Firebase data even when I'm offline

This is not a problematic question, it was asked because just wanted to know what's actually going on behind it, I can't find an answer in any documentation. Wh

How to get file extension from base64 String in Flutter | Dart

I have a base64 string of a document from api. I want to know which extension/file format is that. Because if it is in jpg/jpeg/png i want to show it in image w

Fl_chart barChart sample5. Need help resolving the errors

Fl_chart is not clear with how to implement their sample charts. I copied and pasted the sample code exact and yet there seems to be so much more that needs to

Flutter overide method back()

How can I make the back button work in android the same way as home. If I click on back, the application is killed, but I need the back button to work the same

The plugin `path_provider_android` doesn't have a main class defined

Since i wasn't using the plugin path_provider anymore i tried to delet it, then it gave me a warning, so i deleted a folder caled "data" know i'm trying to do f