manu96
How to integrate Flutter with Phoenix?
Hello everyone,
I come from a Java background, and I recently started learning Elixir. I still didn’t look into Phoenix or Flutter, but my idea would be to release a web app that uses these tools in the following months.
I wanted to know if this is possible and also recommended to use Flutter alongside Phoenix. I tried to search on Google how to integrate these two frameworks, but I did not find anything helpful.
Can/should I use Flutter also for the browser version? Or would it be better to implement that with e.g. Vue? PS: the focus goes more on Android and iOS versions, but it should also have good browser support.
Thank you in advance.
Most Liked
MrDoops
You could also use Absinthe to run a GraphQL server with Phoenix and access it with GraphQL-Flutter. If were building a Flutter app right now that’s the route I would go.
kokolegorille
If You want to use websocket and Phoenix channels, it is important to find a client…
There is one in JS coming with the framework, or from Npm.
There seems to be one for Dart… but have not tried it.
patrickdm
I used phoenix_wings in a proof of concept Android app some time ago, it’s quite straightforward to implement a channels client in flutter with it, served by a Phoenix backend. I could dig my HD and publish a github repo, even if I’m totally noob with Dart an Flutter, if you’re interested.
P. S. Sorry kokolegorille, I didn’t meen to reply to you, but to the OP
Last Post!
acrolink
That is interesting. I am looking for a way to connect a Flutter application to a Phoenix server for a real-time AI (Chat-GPT) assisted chat. Here is the related issue I have opened on the topic:
What captured my attention when it comes to Absinthe is that it supports subscriptions, which means that under an ongoing chat, user messages will be send to AI, can be stored in DB, and AI responses can also be stored in DB, and with a subscription, the end-user (Flutter application) can be notified of the response recieved from AI.
Is this plausible, you think @MrDoops ?
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #elixirconf-us
- #advent-of-code
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #hex









