Category "dart"

Module was compiled with an incom patible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.0

My app compiles, but after looking into a few related questions like (Module Error "Module was compiled with an incompatible version of Kotlin. The binary versi

Vs Code Small Guide

Whenever i write code in Dart in Vscode It shows me guide about stuff I don't want to see How can I get rid if this annoying guide

Casting DatabaseEvent snapshot.value to a specific type in Flutter

I'm trying to retrieve data from a DatabaseEvent event type. The data I have on the database is this in this layout Basically some users id and each user has a

When adding a flutter dependencies in terminal, but it showing in terminal "Expected to find project root in current working directory."

In my project, When adding a flutter dependencies in terminal, but it showing in terminal "Expected to find project root in current working directory."

Flutter: SyntaxError: Unexpected token < in JSON at position 0

I need to fetch data from API but my try-catch fails with SyntaxError: Unexpected token < in JSON at position 0. Code: String problems; try {

Container margin not transparent

In my flutter project i have an AnimatedContainer which is my BottomAppBar. If i give it a margin to space it from the screen egdes the margin is not transparen

How to get Server Sent Events in my Flutter app?

I'm trying to receive SSE data as JSON in my Flutter app. But instead of getting the data I'm getting the following repeated arrays of numbers in my console.

Flutter unable to load image assets (Loading images through ListView.builder)

I tried to load from the assets/images folder using Listview.builder() but it keeps throwing this error: EXCEPTION CAUGHT BY IMAGE RESOURCE SERVICE The followi

Flutter web ignore resize

I would like to make my web app does not resize/responsive when the screen become smaller. For example when i decrease my browser size, instead of its adapting

How to set vertical and horizontal border in flutter datatable?

As I am new to flutter, I could not set the border in DataTable. Can anybody tell me how can I do that by using DataTable Widget? As per my requirement, I have

Flutter iOS version app crashed due to consuming high memory

I have developed a flutter app using the Bloc pattern. Everything was fine until we encountered a memory crash in iOS. The Android version works well without an

flutter- I don't know the difference between these two case

Case 1 : children: DUMMY_CATEGORIES.map((catData) { CategoryItem( catData.title, catData.color, ); }).toList(), Case 2 :

How to implement Uniformly Accelerated Motion Formula into Flutter Animation

I tried to create a Flutter Web App that can simulate Uniformly Accelerated Motion. So, I create a circle as the simulation object and some buttons. When the us

Refreshing a screen to update data in Flutter

I am trying to understand how to refresh my app screen with new data. The app is a dashboard that has several job cards and when another user applies something

How to generate List<TextSpan> dynamic?

Good Morning everyone, I Have different words of different lengths and I Need to create a dynamic List of TextSpan with every letter from the current word. I ha

Factory - A value of type 'B' can't be returned from the constructor 'A.factoryConstructor' because it has a return type of 'A<T>'

I have this simplified code: enum Types { b, c, } class A<T> { A(); factory A.factoryConstructor(Types type) { switch(type) { case Typ

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

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