Category "flutter-web"

How to send data through patch request in flutter

I am facing issue in sending the below data as a patch request. The issue I am facing is I am not able to pass the Detail object data within another object(AddP

Load custom HTML on browser tests

I'm trying to write a test on browser (Chrome) with a custom HTML file. I followed the instructions and here is what I have: test/ |- web_test.dart |- web_tes

Flutter firebase storage CORS issue

I'm using a free plan of firebase storage. All working good but the image not loading on my flutter web. I'm getting this error. Access to XMLHttpRequest at 'ht

How to fix Chrome showing an empty / transprarent window for a Flutter web app on Linux?

When I run a Flutter web app in Chrome using Android Studio I only get an empty / transparent window on my Linux Mint 20.2 system. empty / transparent chrome wi

Changing the order of PlatformViews (iFrame) in a Stack causes the render to fail

A possible fix would be to avoid using Keys in the Positioned widget (L: 42) but this would cause the internal state of the HtmlElementView (or other displayed

How to injest javascript in

I'm working on a Flutter web project. The web/index.html file is injecting a JavaScript script which could be simplified as: <script> window['dataLayer'

Record Audio and upload file to firebase storage Flutter Web

I am using the flutter_sound package to record and play audio. On Flutter Web, on stopping the recording the recorder returns a path/URL of this type: blob:http

Flutter web CORS issue

I am using flutter-web with .net webapi. To shoot my requests, I have tried Dio and Dart HTTP packages. Neither of the two have worked because of CORS issue. Ki

Mock JS object in tests on browser platform

I have this simplified dart file using dart:js: (dataLayer is used for Google tags, if that's any help) @JS() import 'package:js/js.dart'; @JS('dataLayer.push'

How to create an image from a widget in Flutter-web?

To display custom widgets on google maps google_maps_flutter I use a very convenient function that translates any Widget (including those containing images) int

Flutter app running on web failing with error:

**/C:/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging_web-2.2.8/lib/src/internals.dart:11:10: Error: Method not found: 'guardWebExceptions'. re

refresh data on home page using future builder on button click - flutter

i have an app with two screens, home and update page. The home page displays a list of items and the update page updates the items. I am having difficulties re

Dealing with API endpoints in flutter

I have started learning to code since a few days back, and am only familiar with HTML/CSS/JS, and basics of dart/flutter I am working on a Random quotes generat

Flutter Pull To Refresh

I've implemented this code to show a list of json data from a web url. I've tried to implement a simple pull to refresh, but nothing works. Flutter code is lon

How to connect external camera in flutter by Iowebsocketchannel ? Iowebsocketchannel isn't responding in the android emulator

I am new into flutter. Please help me find out why the android emulator isn't responding? I want to make an external camera (esp32-cam)as a client with a local

Upload image flutter web with dio formdata

I am trying using file_picker and dio packages to upload files as form data. This is for flutter web and it seems MultipartFile.fromFile is not accepted. What

Playing Vimeo videos in Flutter

I'm trying to play vimeo videos in flutter app using the video_player plugin but got no success, it's throwing bunch of errors. please help me how I might go a

Firebase keeps redirecting example.com/username to example.com/#/

I am trying to extract the username from the current URL example.com/username but firebase keeps directing it to example.com/#/ due to which username changes dy

flutter: Warning database has been locked for 0:00:10.000000. Make sure you always use the transaction object

import 'dart:io'; import 'package:path/path.dart'; import 'package:sqflite/sqflite.dart'; import 'package:path_provider/path_provider.dart'; import '../model/

flutter: Warning database has been locked for 0:00:10.000000. Make sure you always use the transaction object

import 'dart:io'; import 'package:path/path.dart'; import 'package:sqflite/sqflite.dart'; import 'package:path_provider/path_provider.dart'; import '../model/