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
9
votes
1 answer

Is there a plugin or a way to show ads in Flutter Website?

I want to show banner, rewarded and interstitial Ads on my website which is built with Flutter Web. It is easy to show Ads for Flutter Android (I have used admob_flutter plugin for that) but I could not find a way to show Ads for Flutter Web. I…
gorkem
  • 101
  • 2
9
votes
0 answers

Register flutter web plugins manually

Flutter is generating a file generated_plugin_registrant.dart for web project that looks like void registerPlugins(PluginRegistry registry) { FirestoreWeb.registerWith(registry.registrarFor(FirestoreWeb)); …
alextk
  • 5,713
  • 21
  • 34
9
votes
4 answers

Flutter web, problem making request to a server with self signed certificate

I am facing the first big problem with Flutter Web. I have to login with oauth2 through a post call to my server that has a self signed ssl certificate. Using http and dio clients to make the request, i receive net::ERR_CERT_AUTHORITY_INVALID. The…
Stefano Miceli
  • 263
  • 1
  • 4
  • 17
8
votes
1 answer

How to display alert dialog box on back button of browser or onReload the page using Go Router in flutter web?

I am working on the Flutter web and using go_router for navigation. Expectation: From the initial route, When the user tries to navigate back using the browser back button or reload the page, an alert box should be displayed and ask, "Are You sure…
8
votes
2 answers

Flutter web build flavor

In our flutter app, we rely on build flavors. It works on mobile using flutter build apk --release --flavor dev But when making a flutter web release build, the following is not working flutter build web --release --flavor dev Since build flavor…
TSR
  • 17,242
  • 27
  • 93
  • 197
8
votes
8 answers

Flutter Error: No named parameter with the name 'isVisible' error on url_launcher_web and pointer_interceptor

after running flutter pub upgrade I get these errors when I run flutter build web ../../development/flutter/.pub-cache/hosted/pub.dartlang.org/pointer_interceptor-0.9.2/lib/src/web.dart:31:6: Error: No named parameter with the name 'isVisible'. },…
Vahid Naghash
  • 525
  • 5
  • 11
8
votes
0 answers

Flutter web: Download large files by reading a stream from the server?

There are already several articles about starting downloads from flutter web. I link this answer as example: https://stackoverflow.com/a/64075629/15537341 The procedure is always similar: Request something from a server, maybe convert the body bytes…
EinEsellesEniE
  • 129
  • 1
  • 10
8
votes
3 answers

Setting base-href on build Flutter Web

how do i set the base href on build? I tried --base-href /path/ --base-href=/path/ --base-href="/path/" --base-href='/path/' and none works it keeps telling me base-href should start and end with /
Seiko Santana
  • 153
  • 1
  • 8
8
votes
3 answers

Flutter Web ShowMenu Does Not Move With Screen Resize

Tricky question, hoping someone has a nice thought. I call showMenu(...) on my text button in flutter, which works well. However, sometimes during screen resizing, the menu gets stuck somewhere on the screen (away from its intended position).…
AlexK
  • 336
  • 8
  • 21
  • 41
8
votes
2 answers

How to use HookWidget with useTextEditingController

I'm new to flutter development and trying to understand Riverpod. I currently managed to make the following login form work with a StatefulWidget. Basically, the button becomes enabled if both fields are not empty and viceversa. And this is the…
Robert Estivill
  • 12,369
  • 8
  • 43
  • 64
8
votes
2 answers

Reduce/split size of Flutter generated web-output file "main.dart.js"?

I just built an example Flutter app and I wanted to deploy it as an web application. Flutter generates a single file called main.dart.js. However, using a few dialogs, animations and so on, this js file is already almost 2MB of size (built using…
Defarine
  • 681
  • 8
  • 19
8
votes
1 answer

Firebase hosting not showing up

I was hosting a Flutter Web project using Firebase Hosting. I did firebase init then firebase deploy but my hosted website looks like this: I think you also this kind of error while hosting.
littleironical
  • 1,593
  • 1
  • 11
  • 25
8
votes
1 answer

Flutter web app paused at web_entrypoint.dart

I am new to flutter, I was trying to build a web app , and i am trying to save text data to firestore but whenever i run my web app it doesn't run and a new file is opened named web_entrypoint.dart and it hightlights this code This is the…
8
votes
7 answers

flutter web crash on opening browser for debugging

I'm using Android Studio, when I run the project on chrome or edge I see the splash screen, and then, usually I see this: EDIT - happened after adding await Firebase.initializeApp();
Rony Tesler
  • 1,207
  • 15
  • 25
8
votes
1 answer

Flutter web integration test CORS XMLHttpRequest error

I'm running a Flutter integration test locally for web. This is an example integration test where the only thing I'm trying to do is press a button, ping https://google.com, and then complete after receiving a response. When I run this integration…