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
17
votes
4 answers

Can text in a Flutter web app be made searchable?

Problem: When I run a Flutter app as a web app in a browser, I can use the browser's text search function Ctrl + F to search for text on the page. The search function finds all of the instances of the search term that are currently shown on screen,…
Benoît Cerise
  • 522
  • 5
  • 14
17
votes
6 answers

Getting "Another exception was thrown: Instance of 'minified:bV'" while running flutter app on web (localhost)

I am working on a flutter application. Recently I have enabled this application for web and its running fine if I run it from Android Studio by clicking on Run button. The problem is when I run it on localhost or I build it for release it gives en…
Ashish Tiwari
  • 2,168
  • 4
  • 30
  • 54
17
votes
5 answers

Flutter No devices found with name or id matching 'chrome' on Windows 10

I installed Flutter beta version using official guide. Enabled web: flutter channel beta flutter upgrade flutter config --enable-web The result is: Setting "enable-web" value to "true". You may need to restart any open editors for them to read…
Michael Lukin
  • 829
  • 3
  • 9
  • 19
17
votes
1 answer

Flutter web Include autocomplete

I have created a login form in flutter web, when I login, chrome detects the password that was entered, but offers only to save the password, while the username stays blank. Google suggests the following HTML form so that credential manager can…
max
  • 1,505
  • 3
  • 15
  • 38
17
votes
8 answers

Flutter firebase realtime database in web

I'm trying to get my flutter app working in the browser and it depends on firebase_database. There is not really any documentation for how to do this, but I'm making some assumptions based off the firebase_core and firebase_auth…
Corey Cole
  • 2,262
  • 1
  • 26
  • 43
17
votes
4 answers

How can I change the url in Flutter web?

I need to change the content of this web page for this content And also change the url from "localhost:49318/#/home/inicio" to "localhost:49318/#/home/other". All of this without using the Navigator. In a mobile app I would change the widget shown…
Ezequiel
  • 331
  • 4
  • 6
17
votes
0 answers

How to hide firebaseConfig keys in Flutter Web

How can I hide keys and other private information in Flutter Web's web/index.html: Login
bianca
  • 7,004
  • 12
  • 43
  • 58
17
votes
11 answers

Why do I get white screen when building flutter web

I want to build a flutter web app, so I enter 'webdev build' command and after the operation finishes, I open the 'index.html' file located in build directory and it's just a white screen. I tried it on a fresh project and the problem…
Xoltawn
  • 1,445
  • 1
  • 11
  • 17
16
votes
5 answers

How to add conditional imports across Flutter mobile,web and window?

I have flutter application which uses different webview plugin for each platform(mobile, web, window). Though I am able to import platform base on web and mobile, I am not able to import for windows. I have tried adding else condition if it is not…
KonTash
  • 158
  • 1
  • 2
  • 15
16
votes
3 answers

Flutter web - display pdf file generated in application. (Uint8List format)

I am working on a iOS/Android/Web app where I am generating a PDF based on user input using the pdf plugin here: https://pub.dev/packages/pdf. On iOS and Android, I have access to the file system, so I am able to save the generated pdf first, and…
William Terrill
  • 3,484
  • 4
  • 31
  • 41
16
votes
1 answer

Flutter-web: Provider loss of state when browser refresh

so I'm wondering why does the provider loses state on browser refresh. Doesn't it suppose to keep state after refreshing/reloading? Would Really appreciate the Help default project for flutter home: ChangeNotifierProvider( create:…
Dean Villamia
  • 576
  • 11
  • 24
16
votes
2 answers

Remove hash symbol ' # ' from Flutter web navigation

I want to create one simple web application with Flutter web but after I create some simple application with this document I faced with some issue on routing address it automatically add one hash '#' symbol to URL on the address bar, I want to know…
asghar
  • 189
  • 2
  • 8
16
votes
4 answers

Flutter For Web is there a way to store data?

I am building a web application with flutter for web, i know for sure that in the mobile version of flutter there is a way to store data in the device, but i don't know if this was even implemented in flutter for web yet.
user7790873
15
votes
3 answers

Got a stack frame from package:stack_trace, where a vm or web frame was expected

I am using the web (Chrome) to run my application. But, I get an error. Here is the error: ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════ The following assertion was thrown building…
My Car
  • 4,198
  • 5
  • 17
  • 50
15
votes
1 answer

Add firefox as device when running flutter web

I want to add Firefox as my default browser when running flutter for web (chrome has errors with some packages). I've done this before on Ubuntu 20.4 but I've switched to arch and I can't remember how I've done it.
t3nsa
  • 680
  • 6
  • 21