-
Notifications
You must be signed in to change notification settings - Fork 9
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
SPIKE: Flutter Web Applications #9
Comments
@iteles I get the feeling that this one will be particularly effective for you to learn Flutter Web: 😉 |
Following the installation instructions on https://flutter.dev/docs/get-started/install/macos
|
|
We see the following warning: Known issue: flutter/flutter#42969 reading ... 👀 Edit: @mdalameen's solution flutter/flutter#42969 (comment)
|
@nelsonic I was Following this tutorial to install Flutter on Mac:https://flutter.dev/docs/get-started/install/macos |
@SimonLab Were you able to connect the phone to Android Studio or not yet? |
Lots more things to install apparently, so I will need to pay a visit to the local cafe with free Wifi ... ⏳
|
@miguelmartins17 thanks for the link. I think the issue is linked to my Ubuntu not mounting/detecting my phone automatically. still trying to find a solution for this. |
ok I think I'm good to go now: The issue wasn't with Ubuntu or my phone at the end but was due to the wrong type of usb cable I was using. Some usb cables are only used for charging devices, I had to find one that I can use to transfer data |
For creating a web application we need to use the flutter channel beta
flutter upgrade
flutter config --enable-web Now that the the web option for flutter is enable we can check the list of devices with: flutter devices I still have my phone connected but we can now also see 2 more devices: chrome and a web server We can also run I had to compile my current flutter project for the web with the command line I've noticed however that the state is not kept for the web app when modifications are applied to the code, I'm not sure if this due to the beta or if it's specific to the web app. To recap once all the tools are installed it's pretty nice to be able to run the application on a real device, emulator and on chrome with only one code base. The hot reload for real device and chrome (expect the state which is not save on chrome) is working really well, for the emulator it was a bit mroe slow on my computer. Now we need to see if we can build more complex application with Flutter |
Going to watch this tutorial over the weekend: |
In my opinion for simple and interactive Android applications Android Studio is one of the best. |
Of course, we can also make more complex applications with Android but right now I'm very interested in Flutter too. |
We need to figure out how to deploy/host a Web App built with @LuchoTurtle can you please look into this?
Please confirm you understand what is required here. 🙏 (leave a comment on this issue). |
@nelsonic do you want me to create a simple todo web app in Flutter and deploy it? (or perhaps I'll just stick with a simple hello world, as noted in the original issue). If I'm correct, just give me the heads up 👍 |
Yes, please. |
In that case, I'll just use the mobile todo app from dwyl/flutter-todo-list-tutorial#28 (it's not yet merged but it's workable and has been the foundation for https://github.com/dwyl/supabase-flutter-demo, for example) dwyl/flutter-todo-list-tutorial#28 already has Phoenix connecting to a Phoenix API. But I wager you meant having a websocket connection instead of RESTful requests. |
dwyl/flutter-todo-list-tutorial#28 merged. please proceed. 🙏 |
|
One of the major selling points of Flutter is that it's built with Dart.
![flutter-web](https://user-images.githubusercontent.com/194400/71715277-d23c3a80-2e08-11ea-8688-47f14cb0494f.png)
That means it can be compiled to any target platform (including the web!)
Starting earlier in 2019 there has been ("beta") support for Web in Flutter: https://flutter.dev/web
Official getting started guide: https://flutter.dev/docs/get-started/web
Todo
localhost
Fly.io
to test the process.https://youtu.be/tot-R_q5-0o?t=6
The text was updated successfully, but these errors were encountered: