Flutter Heroes
26.1K subscribers
272 photos
2 videos
31.1K links
Download Telegram
New post on /r/flutterdev subreddit:

Best practice with Dart null-safety
Hi all Flutter and Dart developers. I working with json to dart generator and planning to add null-safety support. And I want to ask what is best practice create a class with null-safety. It's OK to use question mark ? everywhere maybe late is better in the some situations. How is best your practice in the reality. I'm self not started yet to use null-safety still with old.

March 27, 2021 at 11:57AM by a-rns
https://ift.tt/2QN9Ppj
New post on /r/flutterdev subreddit:

How to sandbox 3rd party apps that attempt to integrate components in a Flutter app
I've been working on a platform where I provide a bunch of productivity tools to the end user. One key aspect for the success of this platform is to open up a marketplace coming 3rd party providers. The application I develop works in multitenant mode (SASS). I have my own REST API that I plan to expose publicly trough an API gateway. Some triggers will be provided as well. Up to here all is fine, nothing tricky.Now the problem arrives if I want to allow other vendors to run components hosted inside the GUI. My closest experience to such a requirement is developing plugins for Jira Cloud. They offer: Rest API, Triggers and a homebrew attlasianconfing.json where you can define the views you want attached to which slots. Apparently they use iframes to sandbox the 3rd party providers and avoid anybody tampering with the rest of the page / data. Of course they also have some complicated business with access tokens as well and request throttling.I'm attempting to build something similar myself but I fail to find any tutorials on the web outlining a path forward. Afaik, Flutter has the webview, which behaves much like an iframe. I could be using that, but then you have performance implications. And here my knowledge runs short. Any advice or idea is very much welcomed!TLDR Is it possible at all to run Flutter components from 3rd party vendors in a sandboxed environment inside my own app?

March 27, 2021 at 12:49PM by SpaceInstructor
https://ift.tt/3m3Pesb
New post on /r/flutterdev subreddit:

If Flutter Web wont be supporting server side rendering any time soon (or at all) is it possible to rollout my own homebrew server side rendering with say for ex handlebars?
I'm working on designing and developing a platform for crowdsourcing and skill sharing. The core concept is to tie together several different essential activities in one single platform: posting, chatting, events, documents and planning. I don't want to go too much in the specifics since they are irelevant for the technical question. Suffice to say that I'll have all of these worfkflows all together in one SPA built with on single purpose: extremely quick onboarding of volunteers.Now for me, Flutter fits the bill excellently on all levels. I'm supper happy with my first experiments (coming from long react native experience). Some things are still not great such as, scrollbars, urls, text selection. Apparently all these have all sorts of fixes. However there's one MAJOR problem which spoils the party: SEO and servers side rendering.The app I'm designing will have content publishing as a major selling point. Which means SEO, which means SSR. Now all the google digging I did indicates this is yet to be addressed issue even with Flutter web being labeled as "stable". I've read all the articles that basically say "If you want SEO from Flutter turn around". Sorry, I can't. I need Flutter for many reasons that go beyond SEO. I'm currently a one man army with plenty of experience to complete the task, enough madness to go for it and no stakeholder to appease except me.I don't want every single page and neither any of the interactivity. I just want the posts pages and posibly some auxiliary pages that in essence contain static documents (about, legal, QnA, possibly some extremely basic product listings, etc). Has anyone attempted such a strategy for addressing SEO concerns in the context of single page apps? Basically here I'm asking if instead of waiting for the SPA framework (Angular, RN, Flutter, Vue) to do SSR for you, is it feasible and reliable to roll out your own homebres SSR with basic tools such as handlebars? I'd be willing to take a stab at this if the SEO results wont be appaling. Any advice is welcomed!Given the above statements, here's the question:TLDR Is Google going to be happy with me serving some pure html pages that look almost identical to the pages that I want indexed from the entire app?* Please don't attempt to convince me of chosing some other framework. I'm well aware of the implications and the popular alternatives. Thank you!

March 27, 2021 at 12:29PM by SpaceInstructor
https://ift.tt/39n2ing
New post on /r/flutterdev subreddit:

Flutter Dapp in Flutter Web
Anyone here tried to build a decentralised application in flutter web? All tutorials are only focusing on blockchain apps rather than the web. And the libraries aren’t the best in terms of documentation.

March 27, 2021 at 04:38PM by Thylawsnipeth
https://ift.tt/3rsItBe
New post on /r/flutterdev subreddit:

Hey Coders! Recently I've written an article about my navigation pattern in #Flutter 💙 It would be great if you checked it out 😉
https://ift.tt/30Z4QDr

March 27, 2021 at 08:03PM by ThatLukeUrban
https://ift.tt/3rt6LLE
New post on /r/flutterdev subreddit:

I've finished my simple #Flutter version manager! 💙 As it turned out there are similar apps that do this job but I wanted to finish mine anyway - to prove myself I can. There are only two commands to remember 😂
https://ift.tt/39n8qMn

March 27, 2021 at 07:54PM by ThatLukeUrban
https://ift.tt/31oRAZ5
New post on /r/flutterdev subreddit:

Why not use sharedpreferences plugin for state managment instead of provider?
Why simply not use shared prefernces, together with setState, mobx and providers looks like an overkill for smaller apps. What are disadvantages of this approach in general if we are looking for smaller apps?

March 27, 2021 at 11:07PM by zabaci
https://ift.tt/3w5ENcg
New post on /r/flutterdev subreddit:

How do you select which Camera you want to be used in iOS?
iPhone 12 Pro has three cameras. If I were to force the app for a specific default camera, how should I do that in flutter?

March 28, 2021 at 12:24AM by FormerYogurtcloset17
https://ift.tt/3forrSq
New post on /r/flutterdev subreddit:

Getting an initial callback from Stream.periodic: Randal answers a late night question about how to get a callback from Stream.periodic at the start of the stream, and solves it, and solves it, and solves it, and solves it some more. Examples shown of “async*” and “yield*” and concatenating streams
https://youtu.be/wgG641Qb5C4

March 28, 2021 at 04:36AM by RandalSchwartz
https://ift.tt/2PeFGhV
New post on /r/flutterdev subreddit:

I'm creating my second app, would like some tips for architecture and state management.
My first app I made using Bloc and clean architecture from Resocoder. It still not totally finished, but I'm waiting some bureaucratic stuff in play store to be able to finish it.
In the meantime, I want to create a new app.But please, no BLoC and clean architecture. It was a nightmare, so much my productivity dropped to almost zero in the past week. There are so much boilerplate code I lost the fire and passion on working in my app.I'm hoping relight that passion in programming with a fresh start. That may help me cheer up a little bit.
But I will need to learn a new state management package and architecture from scratch.I plan to use MVVM + Riverpod, but I heard riverpod is not ready for use in production, so I'm thinking in use provider instead.My app will be like a google agenda copycat.
Agendas can become big apps, and that makes me concern a bit about the architecture I will choose.

March 28, 2021 at 06:06AM by werexzenok
https://ift.tt/2P5R1Ba