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
13
votes
2 answers

How to dynamically change the App Title in Flutter Web?

Web apps usually reflect the currently displayed content in the tab's title. Supplying the title parameter to a MaterialApp or WidgetsApp means that I cannot change it without rebuilding the entire tree, i.e. calling setState at the top level where…
creativecreatorormaybenot
  • 114,516
  • 58
  • 291
  • 402
12
votes
5 answers

Flutter Web : "Should never encounter KeyData when transitMode is rawKeyData."

When I run my project on web the Exception message and stack trace was "Should never encounter KeyData when transitMode is rawKeyData." at Object.throw_ [as throw] (http://localhost:2621/dart_sdk.js:5061:11) at Object.assertFailed…
hasanm08
  • 488
  • 4
  • 13
12
votes
2 answers

Redirect from Flutter Web App in Mobile Browser(Safari, Chrome on iOS) to Mobile App

I have two apps that need to communicate through a deep link: A Flutter Web Application and a Flutter Mobile App on iOS. Basically, the flow needs to be that I click a button in the Web app running on a mobile browser, which is then supposed to…
12
votes
8 answers

Flutter Web - No Firebase App '[DEFAULT]' has been created - call Firebase App.initializeApp() (app/no-app)

I understand there are many very similar questions to this; but none of their solutions work for me. I've tried them all. PS: I expect the problem is something to do with my index.html Problem: I am using Firebase (on Flutter web) and I am trying to…
Matthew Trent
  • 2,611
  • 1
  • 17
  • 30
12
votes
1 answer

Flutter web and SSR

I'm new in flutter and I want to implement SSR for my flutter web app. does Flutter web support SSR(server side rendering)? how should I implement it?
Abbas Asadi
  • 265
  • 1
  • 5
  • 14
12
votes
4 answers

Flutter TextField - How to support submission on _and_ newline on

I'm working on a Flutter Web application which includes chat. I'd like to include an ordinary input function where users can enter text and send it into the chat stream. A standard feature of chat apps these days is to send on and to perform…
12
votes
5 answers

Error: Assertion failed: !_debugDuringDeviceUpdate is not true flutter

I am facing this error when using adding some widgets like ListView to a flutter web project I never faced it before when working with android Exception has occurred. "Error: Assertion failed:…
Ahmed Rajab
  • 603
  • 3
  • 10
  • 28
12
votes
3 answers

FCM getToken() Failed to register a ServiceWorker for scope error Flutter web

In my app, for the web version, I use package firebase 7.3.0. I first instantiate Firebase app with a singleton and then instantiate Messaging() as I have done with all other Firebase services I use in my app : App firebase =…
Vincenzo
  • 5,304
  • 5
  • 38
  • 96
12
votes
3 answers

Error when reading 'lib/generated_plugin_registrant.dart' in Flutter

I'm new to flutter development. When I try to create my application in local using flutter is working fine. But if I try to import other repo after resolving the dependencies, still it's not working. What i did: I'm executing the application in…
RED.Skull
  • 1,696
  • 3
  • 24
  • 49
12
votes
1 answer

How to access app version in Flutter Web?

In a Flutter app there is a version attribute in the pubspec.yaml file to specify the app version. Is it possible to access this value from dart code when building for the web ?
sdabet
  • 18,360
  • 11
  • 89
  • 158
12
votes
2 answers

Flutter web url navigation

I would like to know how can I navigate to a URL in my Flutter web app. Currently am using the Navigator.of(context).push(MaterialPageRoute(...)); and I only get localhost:5354/#/ in the address bar. Also I would like to know how I can I navigate…
Norbert
  • 6,874
  • 14
  • 40
  • 65
12
votes
1 answer

How to play audio on the all platforms (including web) in Flutter

The current audio plugins don't support the web. Assuming I have a local audio file or remote url, how would I play that on all platforms? I found a solution using video_player so I am sharing this below as a self-answer Q&A.
Suragch
  • 484,302
  • 314
  • 1,365
  • 1,393
12
votes
1 answer

Flutter web: tried to call a non-function, such as null: 'dart.global.firebase.storage

Im using Firebase plugin for web and managed to work with firestore and authentication. Now, Im trying to enable firebase storage but when i instanciate Storage gives me this error tried to call a non-function, such as null:…
M.Ali
  • 8,815
  • 5
  • 24
  • 42
12
votes
2 answers

How to change the default web server ip(127.0.0.1) of Flutter Web app

Change the default IP(127.0.0.1) of flutter web App. I have created a flutter web application, when I run the web app the ip which assigned is 127.0.0.1 but i am unable to access the same app with my local IP over LAN. So please help on how can i…
Yakub Pasha
  • 483
  • 1
  • 5
  • 19
12
votes
11 answers

Is it possible to use Android Studio to build a website in flutter

I have some basic knowledge of building android apps using Android Studio with Java language. Now I want to start learning flutter but not really sure about a couple of things. I read that it's possible to build cross-platform mobile apps with…
Rashedul Hasan
  • 155
  • 1
  • 1
  • 8