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
14
votes
5 answers

Enable CORS while an XMLHttpRequest error occurs in flutter web

when I will add data to the database using the function, and on the server I have added Access-Control-Allow-Origin so that it is not blocked by CORS, but still error when I looked in the browser console tools tab console Access to XMLHttpRequest at…
OceanL
  • 469
  • 1
  • 5
  • 21
14
votes
5 answers

How do you use SVG's on Flutter Web?

The flutter_web docos say to that dart:svg is ported, but how do you use that with the flutter asset / widget system?
dazza5000
  • 7,075
  • 9
  • 44
  • 89
14
votes
1 answer

when using setState () appears setState () callback argument returned a Future

when I use setState () the text appears in the debug console.. setState() callback argument returned a Future. The setState() method on _LoginActivityState#9cd91 was called with a closure or method that returned a Future. Maybe it is marked as…
oceany
  • 365
  • 2
  • 5
  • 11
13
votes
2 answers

Force cache refresh on flutter v3.0.1 web

In the current version of flutter 3.0.1 we have a service worker in index.html. So far, I cannot find any documentation on flutter.dev for how to force a cache refresh when screens or code has updated. The only way to refresh is using browser…
Zelf
  • 1,723
  • 2
  • 23
  • 40
13
votes
5 answers

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

Is there AdMob support for Flutter web?

Is there AdMob support for Flutter web? All libraries that I found are intended only for Android and IOS
Fariz Mamedow
  • 139
  • 2
  • 3
13
votes
2 answers

TypeError: Cannot read property 'app' of undefined Error - Flutter using firebase Auth and Firestore in flutter web app

Running with sound null safety TypeError: Cannot read property 'app' of undefined at Object.app$ [as app] (http://localhost:49841/packages/firebase_core_web/src/interop/core.dart.lib.js:42:101) at new…
13
votes
6 answers

Expected a value of type 'SkDeletable', but got one of type 'Null'

I have updated my flutter project from 1.26.3 to 2.1.0. Since then I am facing some issue. I am getting error as "Expected a value of type 'SkDeletable', but got one of type 'Null'". Does anybody knows what is related with?
Flutterian
  • 1,761
  • 1
  • 21
  • 47
13
votes
4 answers

Flutter: How to receive post message communication from outer app?

I have standalone Android App. Then I developed smaller web app in Flutter and exported it to web server. It is loaded inside WebView as a part of that standalone App in Kotlin for Android. Android supports postmessaging and I can send data directly…
martin1337
  • 2,384
  • 6
  • 38
  • 85
13
votes
1 answer

How to remove captcha verification from Firebase phone auth using flutter web?

I wants to remove or a make invisible google recaptcha verfication. My code for verifying mobile number and sign in await FirebaseAuth.instance.verifyPhoneNumber( phoneNumber: "+91${customMobileController.text.toString()}", timeout: const…
13
votes
3 answers

How to use both Flutter stable and dev SDK on the same machine?

I'm working with Flutter to make a Mobile App using the stable Flutter SDK release. But I also want to try Flutter Desktop and Flutter Web that are not part of the Flutter stable channel yet, but are present on the Flutter dev channel. My question…
Eleandro Duzentos
  • 1,370
  • 18
  • 36
13
votes
1 answer

How to get Video Thumbnail from Uint8List in Flutter Web?

The app I am working on allows users to create social posts like Facebook with text, images and videos. I am working on PWA part and I came across this issue. For selecting video from storage, I need to create a thumbnail of the video to display in…
Birju Vachhani
  • 6,072
  • 4
  • 21
  • 43
13
votes
6 answers

Flutter extension-methods not working, it says "undefined class" and "requires the extension-methods language feature"

I'm slowly building my personal website over at dlblack.dev, and I'm trying to spice it up a little bit. For example, from a computer (rather than a tablet or phone since they don't have mouse pointers), if you hover over any of the clickable items,…
13
votes
2 answers

Stop saving in cache memory Flutter web Firebase hosting

I designed a web app using the Flutter web. I hosted it with Firebase host. But It's not showing changes of my code after deploying to firebase. It's still showing my older version of web app. But I can overcome this problem by clearing cache memory…
Faslur Rajah
  • 861
  • 2
  • 10
  • 17
13
votes
3 answers

Load HTML file and display in Flutter Web

I have a single HTML file that contains some JS functions and CSS styling. Is it possible to load my html file into an embedded widget on Flutter Web? I've successfully accomplished this on iOS and Android using the flutter_webview pacakge, but…
Lasonic
  • 841
  • 2
  • 9
  • 28