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

Update HTML meta tags inside index.html dynamically in Flutter Web

I have created a website in Flutter web and added all meta tags inside index.html for SEO. The title tags get updated using the Flutter Title widget but I want to update description, keywords, og:title, og:description etc HTML tags for SEO when the…
Rashmi Tank
  • 248
  • 1
  • 6
9
votes
1 answer

Flutter Web - white screen / blank page on mobile iOS version of web application

Currently developing a web app with Flutter web. Building, running and accessing the Firebase hosted application works fine when I'm on my laptop or Android device, however when I try to visit the application on a mobile iOS device I get a blank…
Coda Veto
  • 896
  • 1
  • 8
  • 13
9
votes
2 answers

Expected a value of type 'List', but got one of type '_JsonMap'

When I try to json decode I get the error Expected a value of type 'List', but got one of type '_JsonMap' My code: static Future> getLocalizacao(String cep) async { await Future.delayed(Duration(milliseconds: 200)); …
Johnny
  • 367
  • 1
  • 2
  • 12
9
votes
1 answer

ImageCodecException was thrown resolving an image codec

I am using 1.27.0-4.0.pre sdk version to my flutter pwa. Before upgrading I used 1.24.0-10.2.pre sdk version. in 1.24.0-10.2.pre version everything was good and I don't have any problem is showing svg image with Image.network. But now When I launch…
Cyrus the Great
  • 5,145
  • 5
  • 68
  • 149
9
votes
2 answers

Use flutter web widgets inside a react js app

I have this project where I have to code a website and ios and android apps. I have to do this with a very limited team (basically myself). So I want to share as much code between those platforms, to avoid maintaining different codebases as much as…
Maxx
  • 278
  • 1
  • 3
  • 16
9
votes
1 answer

Flutter web: Launch page in target="_self" with url_launcher

I am using url_launcher package. When in Flutter web, I would like the url to be opened in the current page, and not in target="_blank" I tried adding forceWebView: true, if (await canLaunch(url)) { await launch( url, forceSafariVC: true, …
user3808307
  • 2,270
  • 9
  • 45
  • 99
9
votes
3 answers

show ads in flutter website(flutter web app)

How to implement AdSense or any other to show ads on the flutter website (flutter web app). Which are the ad provider options like Adsense for a flutter web app.
Rashmi Tank
  • 248
  • 1
  • 6
9
votes
1 answer

How to hide chrome address bar on scroll in Flutter web app?

In my flutter web application browser address bar is not hiding on scroll. Does flutter supports this feature?
Rushikesh Talokar
  • 1,515
  • 4
  • 16
  • 32
9
votes
2 answers

How to receive data back to flutter when calling a method using js.context.callMethod()?

I am building a chrome extension using Flutter Web, which is just a simple ListView on the home screen and basic CRUD operations. I am using dart:js package to call methods from a JS file which performs some operations on the Firebase Realtime…
Abhishek
  • 412
  • 5
  • 17
9
votes
7 answers

Flutter Web: Missing main.dart.js and JavaScript files when building with flutter build web, but working fine with flutter run

I am running into an issue with Flutter web in which no JavaScript files are generated when running flutter build web in any project, causing prjects to simply load a blank page. I am currently on version 1.18.0 beta channel, and this happens with…
drogel
  • 2,567
  • 2
  • 13
  • 22
9
votes
1 answer

Get the path of a file uploaded on Flutter Web

The main problem I'm facing is this (on the Web platform): I'm developing an app for Android and Web platform with Flutter. I manage to upload a file (image of a QR Code), but I'm using qr_code_tools plugin, and I need to provide a file path like…
René Lazo
  • 651
  • 9
  • 7
9
votes
4 answers

Flutter web http request badCertificateCallback

I was wondering if any you can point me to a web flutter library that had http badCertificateCallback. I tried DIO but it is giving me an error and submit an issue but I haven't heard from them yet DIO code: Dio dio = new…
Daniel Hernandez
  • 338
  • 3
  • 13
9
votes
3 answers

Caching Image on flutter web, is it required?

Due to CachedNetworkImage not working on flutter web, upon porting, I have tried to use this, but my question is do we really need this? Or we just use Image. Network and the browser and service worker will handle the cache part (which is then set…
Orange
  • 185
  • 1
  • 13
9
votes
1 answer

In Freezed is it possible to create union cases from already existing freezed dataclasses

I am using the freezed package to create my json parsers and data classes. As of now I am using dartz's package to create Union cases and handle them in Flutter widgets. For example some of my Union classes looks like the…
Abhilash Chandran
  • 6,803
  • 3
  • 32
  • 50
9
votes
3 answers

How to send direct email by Flutter web

I Am Building a flutter web i have to send form Data by email to my Gmail email address How Can i. Please Help Me. I had User "mailer 3.0.4" and flutter_email_sender: ^2.2.2 But They Both are not working... Here Is My Code: // Perform login or…
Arslan Ehsan
  • 131
  • 1
  • 1
  • 4