Category "flutter"

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" }, {

how to do flutter-channel to javascript code?

How can we interact with JavaScript code in the Flutter (Via flutter -channel) and add new tags to the project html page? (for example counter app show each num

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

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

cmdline-tools : could not determine SDK root

C:\Android\sdk\bin>sdkmanager Error: Could not determine SDK root. Error: Either specify it explicitly with --sdk_root= or move this package into its expecte

"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

Schedule notification in flutter using firebase

How can I schedule the flutter notification with Firebase to run in the background even if the mobile phone is turned off.

Add mute unmute to video_player function when video is looping? Flutter app

I wanted to know how to add mute unmute function with looped video without pausing it. on set state I have setState(() {}); controller.setLooping(true); con

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

Flutter: Showing both helpText and labelText in TextFormField

I am trying to build a login page using Flutter. I want to have both hintText and labelText shown for the TextFormField that I'm using, however it only shows m

Dynamic Icons in Flutter

I retrieve some data from my DB, where I have a Column called "icon" in which I stored some Strings. For each of them, I want to pass in the Icon class of Flutt

BottomNavigationBar overflowing in flutter

This is my code. Bottom navigation Bar overflowing by 12 and 26 pixels to be precise. Any Solutions?** Tried Every way. I also created my custom Bottom Naviga

Why is Flutter not generating the internationalization files?

I'm trying to follow the internationalization documentation in https://flutter.dev/docs/development/accessibility-and-localization/internationalization#dart-too

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?

save data on windows directory

i'm writing an app that upload and save images from directories of windows to the app. I have write the function to upload the image on the app but I can't find

"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