I imagine with JS interop you can get the on-click of an <A> to perform a navigation
Randal L. Schwartz
@RandalSchwartz
And there’s no need to use an <A>. Just include a button.
小李
@asjqkkkk
Wula!
Hello every one.
jow blew
@joeblew99
Anyone seen examples using grpc-web with flutter web yet ?
Randal L. Schwartz
@RandalSchwartz
flutter-web should have full JS interop.
Actually, grpc looks to be implemented Dart native, so it should work even better.
jhollar
@jhollar
sorry if this has already been address, but from the documentation I don't see how I can tell webdev to use a protocol of HTTPS. For example, if I run this flutter packages pub global run webdev serve --hostname 0.0.0.0 web:8766 - it launches the server but only supports HTTP. Yea, I could use an HTTP proxy but I was wondering if this feature is available now or planned. Thanks
Randal L. Schwartz
@RandalSchwartz
I don’t see any option in the help messages. I imagine you’ll need to use a proxy. But why do you care about https while developing?
jhollar
@jhollar
I’m testing access from within a container service which supports out bound traffic but it can’t be http. Having the flutter web support https would solve that issue. For now, I’ll just go with the forward proxy —- until flutter web supports https.
Randal L. Schwartz
@RandalSchwartz
Thanks for the elaboration.
Ron
@ronpetit
Hello everybody, I wanted to ask how flutter for web is progressing, anyone can make a rough estimate in when it could merge with the core framework?
But you can watch the burn-down rate of the issues on github.
And it’s alread partially there.
Ephenodrom
@Ephenodrom
Currently running flutter with the core framework, switched to flutter master and removed all flutter_web imports
Works quite good
Ron
@ronpetit
Thanks for you answers
Rob Halff
@rhalff
@Ephenodrom what is your setup precisely? Is all of flutter web merged into flutter master?
Rob Halff
@rhalff
Was trying to support flutter for web components, but the singletons throughout the source code makes it a rather difficult task. e.g. domRenderer is kinda set in stone.
That and everything being part of engine and part of ui makes breaking the code apart not very doable. But perhaps that's on purpose.
_
Ephenodrom
@Ephenodrom
@rhalff you have to enable web via flutter enable-config - - web
@rhalff then you have to switch to the master channel via flutter channel master
After that you can create a new project via command line or change the pubapec of your existing project
Remove everything of flutter_web and add flutter : sdk
Rob Halff
@rhalff
@Ephenodrom but still flutter_web_ui will be used in the background right? flutter_web can be replaced with flutter, but the flutter_web_ui will be used by the web compiler, something like that?
Ephenodrom
@Ephenodrom
Yes as I understand it
Rob Halff
@rhalff
ok, good to know, thanks :)
Ephenodrom
@Ephenodrom
With that commands you switch from the forked flutter files back to the normal files, because they now seem to include everything that is needed for web
After that :flutter run -d chrome
Maybe the commands are not 100% correct cause I am writing from my phone.
Rob Halff
@rhalff
It's flutter config --enable-web but I already changed that.
How to fix "flutter_tools|lib/src/build_runner/build_script.dart was not found in the asset graph, incremental builds will not work. This probably means you don't have your dependencies specified fully in your pubspec.yaml." ?
Jonah Williams
@jonahwilliams
Ignore that error, I need to filter it out of the output
Ephenodrom
@Ephenodrom
I am within a flutter web app and make a http request to an API. It is a PHP script on the same server. The API returns 302 Redirect. How would i redirect the browser to the return destination ?
I use the dart http package
AkposCodex
@AkposCodex
Hey, Im new to flutter and flutter_web. Is there a confirmed way to link the flutter_web apps to firestore? Easy to understand version please
Jonah Williams
@jonahwilliams
not yet
Atakan Mert Kaya
@Sekaiichi4
Hm... Does anyone have any idea if it's possible to add an AndroidManifest to your Flutter Web build? I am looking for a way to know how many active firebase notifications my Progressive Web App has and show it in my app.
Weston
@ronnyek
does anyone have a accurate getting started with flutter for web? I dont care about flutter for other platforms and preferably wouldnt need to install android studio or any of that other stuff to get started.
I feel like all the documentation for that had a bunch of steps that may/may not be necessary
Randal L. Schwartz
@RandalSchwartz
All I had to do for my demo this weekend at Dragocon was flutter channel master; flutter upgrade; flutter create —web project; cd project; flutter run -d chrome
the long dash is actually two dashes.
Can’t figure out how to type those properly. :)
so that’s really all you need. however, keep in mind, flutter for web is only in tech preview.