Questions tagged [flutter-web]

Questions related to Flutter for web support – currently (as of January 2021) is available on the beta channel. Flutter supports the generation of web content rendered using standards-based web technologies: HTML, CSS and JavaScript. With web support, you can compile existing Flutter code written in Dart into a client experience that can be embedded in the browser and deployed to any web server.

Flutter for web is a code-compatible implementation of Flutter that is rendered using standards-based web technologies: HTML, CSS and JavaScript. With web support, you can compile existing Flutter code written in Dart into a client experience that can be embedded in the browser and deployed to any web server.

4374 questions
24
votes
4 answers

Is there a number input field in flutter with increment/decrement buttons attached to the field?

I am trying to create a number input field with and up and down arrow button to increment and decrement its value. I am wondering if there is any inbuilt widget which already provides this functionality. I have to create couple of such fields in my…
Abhilash Chandran
  • 6,803
  • 3
  • 32
  • 50
23
votes
5 answers

how to change desktop windows application icon for flutter?

I using the desktop flutter and i searched for a way to do that i couldnt find any articles about that sp ii want to know how to change the launcher app icon for windows desktop and also for mac and linux.
Ali Nour
  • 383
  • 1
  • 4
  • 12
22
votes
3 answers

Firebase, Flutter Web App Works locally, but when deployed images are not shown

I have a flutter web app which works well locally but after deploying it using firebase deploy the images are not shown in the website, I have checked if the assets have been uploaded by tracing, e.g. my_app.firebaseapp.com/assets/assets/card.jpg.…
Sarvesh Bhatnagar
  • 1,012
  • 11
  • 20
22
votes
3 answers

How to pass parameters to flutter web app

After hours of searching about the topic and due to lack of documentation on Flutter Web I am asking this question. I was trying to create a web app using flutter and had an requirement where URL such as below website.com/user/someUserCode would be…
Vicky Salunkhe
  • 9,869
  • 6
  • 42
  • 59
21
votes
5 answers

How to configure go back button in Browser for Flutter Web App

I'm not asking about webview. This is about Flutter web app. I need to go back to a specific page when user press back button which is inbuilt in browser. Any guessing ? I'm getting this error when I press back button Error: Assertion failed:…
Faslur Rajah
  • 861
  • 2
  • 10
  • 17
21
votes
6 answers

How to debug or print in Flutter web?

I'm using Flutter 1.10.15 and Android Studio 3.5.1 for Flutter Web development and my big! problem is I can't debug and even I can't print something in console because only a white page is displayed in chrome when I press "run" or "debug" button in…
Mohsen Emami
  • 2,709
  • 3
  • 33
  • 40
21
votes
1 answer

Flutter Web Rich Text Editor

I am looking for a text editor similar to the one in the image. I have seen an add-on that performs exactly what I want but is associated with the mobile keyboard. In flutter web no keyboard opens, but you type directly. That is why I would like to…
DomingoMG
  • 1,827
  • 2
  • 23
  • 44
20
votes
8 answers

Getting _flutter is undefined in flutter web, only in production

I have an error that has been appearing in my last few deploys and I am unable to trace it. It only happens when I deploy to firebase website, debug works without any issues. Uncaught SyntaxError: Unexpected token '<' (at flutter.js:1:1) (index):50…
Trax
  • 1,445
  • 5
  • 19
  • 39
20
votes
5 answers

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…
Feroz Ahmed
  • 931
  • 10
  • 16
20
votes
1 answer

Flutter - Conditional library import in flutter-web

Supposing that audioplayers|lib/audio_cache.dart worked only on Android/iOS, I conditionally exclude the following import from a Dart file: import "package:audioplayers/audio_cache.dart" in the following way: import "dart:math" if…
19
votes
2 answers

use WebView in flutter web without using iframe

Is there a way to use WebView in Web Filter without the need for an iframe? Most of the methods available by iframe display website information and many sites also prohibit the use of iframe . I'm looking for a way to use website information…
hadi
  • 367
  • 5
  • 18
19
votes
5 answers

Flutter web app is missing firebase.json and shows "Welcome Firebase Hosting Setup Complete" when deployed to firebase hosting

Background I am using Android Studio to create a Flutter web app. The app runs successfully on localhost in Google Chrome. When I deploy it to Firebase hosting, a "Firebase Hosting Setup Complete" page is displayed instead of the app. What I've…
Benoît Cerise
  • 522
  • 5
  • 14
19
votes
3 answers

Using brave browser to debug flutter web app

I just started-off with flutter web and I want to use brave browser to debug my flutter apps not chrome or edge. When I use flutter devices command, it gives the following result. No devices detected. Run "flutter emulators" to list and start any…
ASAD HAMEED
  • 2,296
  • 1
  • 20
  • 36
19
votes
2 answers

This package does not have flutter_web_plugins in the `dependencies` section of `pubspec.yaml`

When publishing my package after adding web support i got this error Package validation found the following error: * line 9, column 1 of lib/hexcolor_web.dart: This package does not have flutter_web_plugins in the `dependencies` section of…
griffins
  • 7,079
  • 4
  • 29
  • 54
19
votes
8 answers

How to set up CORS or OPTIONS for Rocket.rs

I've got a backend running rocket.rs which my flutter web app sends a request to, but it can't get past the OPTIONS response. I have tried adding CORS (rocket_cors) to the backend and having a options response, but it still sends back: Error:…
Will
  • 1,059
  • 2
  • 10
  • 22