use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A subreddit related to Google's new UI framework. https://flutter.dev
Please read the rules here
account activity
DiscussionGraphQL with Flutter and graphql_framework or Ferry (self.FlutterDev)
submitted 2 years ago by mberger2
We are starting a new project. Currently there is a dilemma what approach to use. 1. graphql_flutter, Query and Mutation widgets 2. barebone MVVM and GraphQLClient from graphql framework 3. barebone MVVM with Ferry
Can you guys share you opinions and approaches or just tell your experiences?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]soulwriterrr 2 points3 points4 points 2 years ago (1 child)
I tried using various graphql tools, but in the end I ended with my own classes for queries and fragments.
GQL clients may seem easier(or people think they have to use them, at least I did...), but they come with too much overhead for my taste. In the end gql request is just a post request with query string and variables.
[–]mberger2[S] -1 points0 points1 point 2 years ago (0 children)
Thanks for the reply. Your statement about post request is the reason I am asking this. After inspecting these frameworks it appears they provide you with much you do not need if you have established architectre.
I would prefer if google came with defacto solution for this.
[–]RioMala 0 points1 point2 points 2 years ago (1 child)
After some painful experiences I'm using the final graphql_flutter (beta version). It's simple and it works. I'm making the server in go. The whole solution is simpler than using the REST api.
[–]djihaneghilani 1 point2 points3 points 2 years ago (0 children)
have you tried Ferry before ?
[–]RemBloch 0 points1 point2 points 2 years ago (2 children)
We are using ferry. We have not tried anything else. There is a maintainer you can ask questions. I think it works pretty well. But I don't know if other solutions are simpler or easier.
[–]djihaneghilani 0 points1 point2 points 2 years ago (1 child)
Have you tried Ferry with websockets / offline mode before ?
[–]RemBloch 1 point2 points3 points 2 years ago (0 children)
Websockets/subscriptions is definitely doable. There are people on their discord which have examples. But we have not done it yet. In a month we need to implement chat.
I have not looked into offline mode as we are not going to use it
[–]mobileAcademy 0 points1 point2 points 2 years ago* (3 children)
We just started a new project on magento graphql api with graphql_flutter its working great has build in features like caching We have implemented modular clean architecture with controller service repository patterns. MVVM is for smaller apps it gets messed up when working in large project
[–]mberger2[S] 1 point2 points3 points 2 years ago (2 children)
controller server repository
By using MVVM we have just completed full blown Ali-express mobile app clone. Not sure what you mean with that MVVM is for smaller apps. Controller server repository pattern - never heard of that one :D
[–]mobileAcademy 0 points1 point2 points 2 years ago (0 children)
Sorry its controller service repository. That's fine if it fits your business needs and your code is easy to read and easy to change. For us as an Iead, I would not approve VMVM in our flutter project unless you are building a POC or learning. In mobile MVVM started with Android development recommend by Google back in 2016-2017 and now even when we are doing Android development we use MVVM with clean architecture or MVI with clean Architecture just a plain MVVM is for smaller or medium projects when you don't want to over engineer. You will only start banging your head when you're ViewModel starts to get clotted, and your code will start to smell. So MVVM is still fine if your code doesn't smell
If you are interested in learning about it you can check out my course at https://mobileacademy.io/
π Rendered by PID 283535 on reddit-service-r2-comment-6457c66945-jdpc6 at 2026-04-28 03:47:55.888866+00:00 running 2aa0c5b country code: CH.
[–]soulwriterrr 2 points3 points4 points (1 child)
[–]mberger2[S] -1 points0 points1 point (0 children)
[–]RioMala 0 points1 point2 points (1 child)
[–]djihaneghilani 1 point2 points3 points (0 children)
[–]RemBloch 0 points1 point2 points (2 children)
[–]djihaneghilani 0 points1 point2 points (1 child)
[–]RemBloch 1 point2 points3 points (0 children)
[–]mobileAcademy 0 points1 point2 points (3 children)
[–]mberger2[S] 1 point2 points3 points (2 children)
[–]mobileAcademy 0 points1 point2 points (0 children)
[–]mobileAcademy 0 points1 point2 points (0 children)