Skip to content

SPIKE: Display a Content from the Web in a WebView #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
6 tasks done
nelsonic opened this issue Dec 27, 2019 · 4 comments
Open
6 tasks done

SPIKE: Display a Content from the Web in a WebView #5

nelsonic opened this issue Dec 27, 2019 · 4 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@nelsonic
Copy link
Member

nelsonic commented Dec 27, 2019

We appear to be having a little challenge getting Google Auth to work in Flutter without Firebase: #4
This is a temporary obstacle if we are able to embed the fully functional Phoenix Google Auth into our Flutter App using a WebView. If we are able to display any web page in a Flutter App then we will be able to perform all the Google Authentication steps in a web view and eliminate the need for Firebase.

Todo

  • Create a new file in this repository called webview-tutorial.md and
  • Capture all the steps required to display content from the web in a Flutter App
  • Display a web page e.g: wikipedia in a WebView in a Flutter App and confirm that it is interactive.
  • Ideally we should show how to display the WebView both
    • Only one portion of the screen
    • Full-screen.

Useful Links

Note: I am aware that at the time of writing there is an issue displaying the keyboard for input in a WebView flutter/flutter#19718 that may affect our ability to seamlessly use the Elixir Auth, but I trust that it will be resolved soon. Please proceed with this SPIKE and if we determine that it is unworkable to perform Auth in a WebView we will consider alternative options.

@miguelmartins17 in case you are wondering why this issue has the word "SPIKE" in the title,
see: https://en.wikipedia.org/wiki/Spike_(software_development) 😉

@miguelmartins17
Copy link
Collaborator

@nelsonic I've already started working on this issue. 😎

@nelsonic
Copy link
Member Author

@miguelmartins17 Please share your progress with screenshots as you are going. 👍

@miguelmartins17
Copy link
Collaborator

@nelsonic I didn't find anything about how to display the WebView in a portion of the screen. Do you want me to open a New issue?

@nelsonic
Copy link
Member Author

nelsonic commented Jan 3, 2020

@miguelmartins17 in the official video (linked above)
at 02:50 @efortuna describes having a WebView inside of a ListView:
image
This is used to display the content of a News article below the news article Title.
It is an example of only using a portion of the screen to display a WebView.

I think this is a good use-case if the news content is web based and we want to contain it. 💭

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants