Category "dart"

How to map data if the key is numeric in flutter

I am getting a response as key as numeric. How to map data for the following response { "1": [ { "id": 6, "name": "test 1" }, {

Firebase Storage REST API

I need very simple static image server for my flutter app. I am thinking about Cloud Storage, because I don't want to worry about own server administrating. I a

there is no bin folder, when I create a Dart project in Intellij IDEA

When I create a Dart project in Intellij IDEA, I can't find a bin folder? that's why huh? Previously I chose "Simple console Application - a simple command-line

How to filter JSON response by list

I'm trying to filter JSON response by list. Basically I'm passing a list of product ID's in the contains method and fetch the result accordingly but unable to d

In Flutter, how do I pass data into a Stateless Widget?

I'm trying to build my first Flutter app, and have run into difficulty with passing data into Stateless Widgets. I have the following classes: class MyApp ext

"not found" when reload page on flutter web

On flutter web when I reload a page on Chrome I get the text "not found". How can I fix it? this is my code of the main.dart. I also noticed that to get directl

ChromeProxyService: Failed to evaluate expression 'handlePrimaryPointer':InternalError: No frame with index 45

Code that I have written: import 'package:cloud_firestore/cloud_firestore.dart'; import 'package:flutter/material.dart'; class FirebaseServices { static Futu

How to convert all string in Dart list to lowercase?

I want check if Dart list contain string with list.contains so must convert string in array to lowercase first. How to convert all string in list to lowercase?

"TargetPlatform.windows is not yet supported by the maps plugin" - How to solve this

Im just trying to get google maps displayed on my emulator and i also used google_maps_flutter package but TargetPlatform.windows is not yet supported by the ma

Flutter give container rounded border

I'm making a Container(), I gave it a border, but it would be nice to have rounded borders. This is what I have now: Container( width: screenWidth / 7,

How to expand button vertically to match the height of row in flutter

I am working on a flutter project I have a TextField and an ElevatedButton.icon in a Row. The height of TextField is higher than ElevatedButton.icon as shown in

Convert Flutter Frame Camera to android Bitmap

I'm developing a Flutter plugin for Android and iOS using the Flutter plugin camera. First I stream the frame from the plugin using this method: controller.star

Flutter CustomClipper with Stroke Border

I want to create a Widget with 2 container using a CustomClipper and add a line/stroke/border between them like: So I want a bottom border on the red colored C

How to read the Annotation fields and their values (Code Generation)

i have been struggling to get the fields from an annotation. I am using the source code generator to generate my widget from my annotation but cant seem to use

Convert an arbitrarily long hexadecimal string to a number in Dart?

I need to convert a string of 8-character hexadecimal substrings into a list of integers. For example, I might have the string 001479B70054DB6E001475B3 whi

How to set Flutter FCM Background Notification Settings

I don't have any problem with sending notifications. The only problem is that I can't set background notifications. While notification importance and icon in on

Dart Flutter The method 'init' isn't defined for the type 'OneSignal'

I'm trying to make a system of sending notifications to the phone with OneSignal. import 'package:firebase_core/firebase_core.dart'; import 'package:flutter/mat

Match child height size in a Navigator widget

I had a problem with the Navigator widget: I need to match the child widget height. My Navigator widget is inside an Expanded widget but when I change route to

Match child height size in a Navigator widget

I had a problem with the Navigator widget: I need to match the child widget height. My Navigator widget is inside an Expanded widget but when I change route to

Impossible to hot reload on VSCode

I'm trying to use hot reload on my Flutter project, but everytime I use it, I have this error: Hot reload received invalid response: {type: ReloadReport, succe