Open gradycsjohnson opened 2 years ago
I believe its due to the web view plug-in not being supported in web. it should work on everything but web right now. I am working on a fix for this as the app im building from the template needs be available on web
Thanks for getting back to me so quickly! I'm excited to try this template out!
No problem, Iβll leave this open as a reminder to ping you when I add it in.
In the meantime an app im building from this template is https://github.com/jeremiahlukus/guitar_tabs
This is a more complete example using the pattens established in the template.
https://github.com/jeremiahlukus/flutter_template/tree/jlp-web-webview
is where Iβm messing with it, you are more than welcome to send a PR if you do not want to wait
https://github.com/jeremiahlukus/flutter_template/pull/23
this PR enables web webviews
Amazing! Thanks for jumping on that so quickly!
It's still not working for me :(
Console output is not giving me much:
Launching lib/main_development.dart on Chrome in debug mode...
lib/main_development.dart:1
This app is linked to the debug service: ws://127.0.0.1:40733/uRyvwXzIhrY=/ws
Debug service listening on ws://127.0.0.1:40733/uRyvwXzIhrY=/ws
πͺ Running with sound null safety πͺ
Connecting to VM Service at ws://127.0.0.1:40733/uRyvwXzIhrY=/ws
Flutter Web Bootstrap: Auto
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β #0 packages/flutter_template/core/infrastructure/provider_logger.dart 48:21 didUpdateProvider
β #1 packages/riverpod/src/framework/container.dart 48:7 _runQuaternaryGuarded
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β π‘ {
β π‘ "didUpdateProvider": {
β π‘ "type": "StateNotifierProvider<AuthNotifier, AuthState>",
β π‘ "new_value": "AuthState.unauthenticated()",
β π‘ "old_value": "AuthState.initial()"
β π‘ }
β π‘ }
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β #0 packages/flutter_template/core/infrastructure/provider_logger.dart 48:21 didUpdateProvider
β #1 packages/riverpod/src/framework/container.dart 48:7 _runQuaternaryGuarded
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β π‘ {
β π‘ "didUpdateProvider": {
β π‘ "type": "FutureProvider<Unit>",
β π‘ "new_value": "AsyncData<Unit>(value: ())",
β π‘ "old_value": "AsyncLoading<Unit>()"
β π‘ }
β π‘ }
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Height of Platform View type: [webview-iframe] may not be set. Defaulting to `height: 100%`.
Set `style.height` to any appropriate value to stop this message.
Width of Platform View type: [webview-iframe] may not be set. Defaulting to `width: 100%`.
Set `style.width` to any appropriate value to stop this message.
crbug/1173575, non-JS module files deprecated.
Did you change the auth url as mentioned above? @gradycsjohnson
Itβs pointing to local host so if you donβt have a separate server running on local host that serves auth pages then it wonβt work. You can easily change the url to GitHub auth or google etc if you wanted however
Actually the webview works but doesnt at the same time... Navigation delegate isnt supported since the web webview renders an iframe you are pretty limited on what you can do. This is going to take a bit more consideration on how to make this happen. Ill leave this issue open until it gets supported but ill have to tackle it another time.
First, I love the template! Very nice work.
Second, I'm sorry if I didn't follow instructions properly. I didn't understand this instruction from the README:
Setup your backend to login a user.
I'm trying to run the template using the launch configuration in VSCode (ie. not using Docker). It launches on chrome by default, which is what I want.
I'm running on Ubuntu 20.04 but I don't think that should matter. Anyway, my flutter doctor output is included below.
The splash screen and sign in page load just fine.
Unfortunately, when I click the
Sign in
button I get the following exception:Here's my flutter doctor output:
Thanks for reading! Any help would be greatly appreciated!