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
1
vote
0 answers

Error FormatException received when api callled on localhost "127.0.0.1/app/sanjhapizza/lib/userLogin.php" in flutter

**this is my code which contains API call code.The following error rceived while executing this code: Exception:FormatException: //127.0.0.1/app/sanjhapizza/lib/userLogin Api result:failed Error: Assertion failed: Please help me import…
1
vote
1 answer

Flutter FadeInImage fails in Web using kTransparentImage

I am trying to implement FadeInImage like in the docs but my App fails with: Invalid argument: Unexpected end of image. Request for frame index 0 can't be satisfied. This is how my code looks like: FadeInImage.memoryNetwork( height: 200, …
Chris
  • 1,828
  • 6
  • 40
  • 108
1
vote
1 answer

How can I place maxLength in TextFormField in Flutter?

Currently, the limit counter is placed below, but I would like to have it inside the TextFormField at the end. How can I do that? child: TextFormField( controller: nameController, maxLength: 50, …
John
  • 13
  • 3
1
vote
2 answers

How to prevent going back to previous page on Flutter Web via browser back button?

After a user successfully logged in in my Flutter web app, it should be taken to a dashboard view. The user then should not be able to navigate back to the login screen by pressing the browser back button. I tried a lot of things, replacing the…
tmaihoff
  • 2,867
  • 1
  • 18
  • 40
1
vote
1 answer

How to customize marker in Google Map for Flutter web

I am building a web in Flutter, so I am using this package to add a functional map. I would like to change the color or the marker, and for that I have to change the png that is used to mark. But everything I found is related to the package for…
1
vote
0 answers

How to convert pixels to logic pixels in Flutter?

I'm trying to build a web app using Flutter but I have a problem. If I build it using the pixels in my design everything will be bigger as in the design. Does anyone knows how to use pixels in Flutter?
1
vote
0 answers

How to download files from assests to device in flutter

I'm making my portfolio website on flutter i want that if someone click on download cv button,it download on his device.CV is place in the assets folder. downloadFile(url) { AnchorElement anchorElement = AnchorElement(href: url); …
1
vote
0 answers

Flask CORS issue with Flutter web?

I am trying to integrate Stripe Checkout in a flutter web app. Every time I send the POST request, I keep getting the CORS blocked error. I have been dealing with this problem for days now. I have tried every solution I could find online. I have…
Danish Ajaib
  • 83
  • 1
  • 3
  • 14
1
vote
1 answer

Unable to access BLoC in go_router v5.0 redirect method, BLoC is not injected in the context

I'm using flutter_bloc and go_router. This is an implementation of multiple-page-form, for this demo it's just 2 pages. I used ShellRoute to provide MultiFormBloc to 2 routes, so that both routes will have access to the same MultiFormBloc…
Chwizdo
  • 150
  • 1
  • 7
1
vote
2 answers

Flutter Web - doesn't take a space bar key in TextFields

when I press the space bar, the space does not appear and by continuing to press it, a "." and it no longer allows me to edit the text. I state that duranter the debug works correctly but using publishing the website does not work anymore. i am…
Maurizio Mancini
  • 271
  • 4
  • 13
1
vote
3 answers

How to Hover text in Flutter?

Hi I want to hover color for my text by using Flutter. But I don't know how. Can anyone show me how to do it? This is my code.... Text( "Lorem ipsum dolor sit amet,\n consectetur adipiscing elit.", …
1
vote
1 answer

Flutter Web Firebase Auth's persistence doesn't work on PWA

I have developed a Flutter Web app that uses Firebase Authentication in order to sign in users to the app. I've declared the Firebase Authentication persistence field so that the app will remember and auto-login the user when he revisits the Flutter…
1
vote
3 answers

Flutter apps and web adaptive UI layout

I have been working on flutter mobile apps, already released multiple version to AppStore/PlayStore. The code is built for mobile app design. I am currently looking to support website using the same codebase. One of the issue with supporting both…
Krishna Shetty
  • 1,361
  • 4
  • 18
  • 39
1
vote
0 answers

How to control smooth and probably custom scrolling in flutter web with mouse and trackpad both

Initially, I wanted to have smooth scrolling in flutter web, I tried web_smooth_scroll, which had some level of smoothness but while it was used I was unable to use the trackpad to scroll on my laptop. Now, am looking for a scrolling solution for…
Stefan
  • 43
  • 8
1
vote
0 answers

flutter web showing "flutter" on the holding browser back button for long in safari

In other broswer its working fine but in safari its showing "flutter" on the holding browser back button for long!

 
 I want to show the name of the application or the url which gets loaded
1 2 3
99
100