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

What is your State management approach for a production grade app? Considering userbase 100-1000.
What is the state management approach that you are using in your production ready applications which has a good user base say more than 100 and even further large.View Poll

November 08, 2021 at 03:34PM by Artronn
https://ift.tt/3BY38T3
New tweet from FlutterDev:

🦋 Grab the #flutterapprentice here 👇 https://t.co/TfgyFPT0fO— Flutter (@FlutterDev) Nov 8, 2021

November 08, 2021 at 06:08PM
https://twitter.com/FlutterDev/status/1457756937924202498
New post on /r/flutterdev subreddit:

BLoC users, how do you scope your blocs ?
I have been using BLoC for more than 2 years on side projects, but I never used it in a real professional project, how do you scope your BLoC logic ? Do you scope that per use case, per page or per widget ? Something else ?I’m really curious and I’m always hesitant when starting a new project, I have a Android background with a strong experience of MVVM and MVP using the Clean Architecture principles as much as I can.Usually my ViewModels or my Presenters are scoped based on the page (screen) purpose, so it includes everything needed for that page and it exposes 1 or a few ViewStates (depending on the layout and fragments structure).If I create feature scoped blocs, I start to do over engineering while trying to make it as reusable as I can, if I do page scoped blocs, it becomes heavy and hard to manage.Any advice or experience is welcome :)View Poll

November 08, 2021 at 10:28PM by New-Muffin-5863
https://ift.tt/3o9thcP
New post on /r/flutterdev subreddit:

Coming back from a long break, what have I missed?
Hi! I've taken a break from flutter app development for about a year and a half, before null safety was introduced. Starting to develop apps again. What are some of the cool new features been added since I've been away?

November 08, 2021 at 11:33PM by Potat0Sa1ad
https://ift.tt/3khx5r8
New post on /r/flutterdev subreddit:

New `SharedAppData` widget
Looking through Flutter's commit messages, I noticed that a new widget was added to Flutter master which allows to easily share data between widgets. In this respect, it is similar to the hundreds of other state management libraries.Here's a simple example using the widget. By default, the MaterialApp already provides a SharedAppData scope to the context. Descendants of that widget can then share data identified by some key. I chose the class object Counter in my example. The getValue call will automatically register the provided context as a dependency and therefore a rebuild is trigged if the value is changed.
class Counter extends StatelessWidget { const Counter({Key? key}) : super(key: key); @override Widget build(BuildContext context) { final count = SharedAppData.getValue(context, Counter, () => 0); return Scaffold( body: Center(child: Text('$count')), floatingActionButton: FloatingActionButton( onPressed: () => SharedAppData.setValue(context, Counter, count + 1), ), ); } } 
Of course, it is possible to wrap that method calls to abstract the key into something that looks like a "Provider". Here is my 3 minutes adhoc "framework":
class Provider<T> { Provider(this.create); final T Function() create; T watch(BuildContext context) => SharedAppData.getValue(context, this, create); void Function(BuildContext) set(T value) => (context) => SharedAppData.setValue(context, this, value); void Function(BuildContext) update(T Function(T) update) => (context) => set(update(watch(context))); } final counterProvider = Provider(() => 0); 
The build method now looks a bit nicer:
Widget build(BuildContext context) { return Scaffold( body: Center(child: Text('${counterProvider.watch(context)}')), floatingActionButton: FloatingActionButton( onPressed: () => counterProvider.update(increment)(context), ), ); } 
The new widget isn't a solution for everything but a nice addition and enough for small and medium sized application, I think. Notice that the above approach isn't as efficient as provider or riverpod would be, but it doesn't need external libraries and might be good enough.

November 08, 2021 at 11:25PM by eibaan
https://ift.tt/303tLsZ
New post on /r/flutterdev subreddit:

What underlying windowing library or framework does Flutter use?
GLFW, wxWidgets, GTK, SDL, QT, something else?Any pointers to the implementation?

November 09, 2021 at 02:52AM by bmitc
https://ift.tt/3D0mWGD
New post on /r/flutterdev subreddit:

How do you handle errors?
I recently started to work with flutter and in the last days I struggled a lot to find some information about handling errors and displaying messages to users.I am right now using riverpod with statenotifier and I was thinking a good way to do it is to create some intermediate state classes like StateInit, StateLoading, StateSuccess, StateError and in every screen to check the state instance and render a widget accordingly, but it is getting pretty repetitive since I want to display the same error type or loading, but with different messages.Anyway, how do you handle your app errors?

November 09, 2021 at 12:14PM by Exorcistoo
https://ift.tt/3bW75gA
New post on /r/flutterdev subreddit:

Pro Tip: enableDithering property
My gradients weren't looking smooth, so i googled it and came across this stackoverflow answer: https://stackoverflow.com/a/64807773/13972151It made my gradients way more smooth, color stops are way less visible now. I saw that this property isn't mentioned much; so i thought it could be useful to some.

November 09, 2021 at 05:50PM by ercantomac
https://ift.tt/3qnrJ1h
New post on /r/flutterdev subreddit:

HTTP GET and POST are very slow in IOS compared to Android
I recently knew about a problem in Flutter in IOS physical devices, which is mainly (HTTP GET and POST are very slow in IOS compared to android) I'm starting a project that depends heavily on the back-end, so I'd like to hear from people having the same case and went to production. Do you have this issue? Is it fixed in Flutter 2.5?

November 09, 2021 at 05:41PM by Own-Fact-778
https://ift.tt/3kmyHjs
New tweet from FlutterDev:

🦋 Chapter 5: Pop Quiz! Which of the following widgets is essentially a Column or Row that can scroll? #flutterapprentice— Flutter (@FlutterDev) Nov 9, 2021

November 09, 2021 at 06:05PM
https://twitter.com/FlutterDev/status/1458118663710466048
New post on /r/flutterdev subreddit:

Actual State of the Art of Flutter framework
I would like what is the state of the art framework written in dart for flutter. In particular, there is currently a framework that speeds up the development of the flutter app for many platforms?​Thanks

November 09, 2021 at 08:07PM by crazyjoker96
https://ift.tt/3EXeTLt
New post on /r/flutterdev subreddit:

I was trying to use withConverter firestore to display data. It display nothing
Is it just me or you guys facing it tooo??

November 09, 2021 at 09:35PM by redHero0010
https://ift.tt/3wDdvKX
New post on /r/flutterdev subreddit:

What are common practices in Flutter
Atm, I'm one month into Flutter and as stated in the title, I would like to know, what are the best or common practices in Flutter regarding things like the project structure, files naming, placing widgets as functions etc. Also how do you decide if u want to use stateless or statefull widget. How do you decide when to extract a widget to a separate file and inject/import it where & when needed.I haven't really watched any tutorials or taken any courses when learning Flutter, I mostly followed Flutter documentation as much as I could.

November 09, 2021 at 11:05PM by donzavo
https://ift.tt/3H3parg
New post on /r/flutterdev subreddit:

Flutter State Managers: Do big companies/projects rather use GetX, BLOC, or Provider?
Hi, I'm new to flutter and I want to know which state manager is more useful to learn. I've had some experience in all 3, but not sure what big companies or projects use. Or do they use a combination?Do they use the Provider package cause its the most popular one? Or do they use BLOC, which is complex for beginners. Or do they use GetX which I don't know why but I have seen more Youtube tutorials using it nowadays.Thanks!

November 09, 2021 at 11:55PM by sailllyon
https://ift.tt/3odifDp
New post on /r/flutterdev subreddit:

Push Notification In Flutter and Firebase | Advance Tutorial 2021
https://youtu.be/PpAoCXEnvvM

November 10, 2021 at 08:03AM by backslashflutter
https://ift.tt/3H7MqVe
New post on /r/flutterdev subreddit:

Securing socket connection in flutter
I was working with socket io and was wondering if there was any way to make sure that the data getting passed is coming from an authenticated user.

November 10, 2021 at 10:54AM by abdimussa87
https://ift.tt/3EZcIXK
New post on /r/flutterdev subreddit:

Bot submissions on Flutter Web Forms
What are you using to prevent/minimize bot form submissions on flutter web? Pub.dev doesn't appear to have a solution out of the box on first glance. I know I can do some arithmetic validation like "answer 3+5", but a more robust solution would be great.

November 10, 2021 at 01:37PM by sonicworkflow
https://ift.tt/3quAg2R
New post on /r/flutterdev subreddit:

We made a package to add passwordless auth into your Flutter apps
Hello Flutter Devs,We at Magic recently released a new Flutter package for adding passwordless authentications to your applications.https://pub.dev/packages/magic_sdkNow it's super easy to onboard users without passwords.Read the docs to get started in minutes. And we look forward to seeing your apps using this package and want to hear your integration stories.

November 10, 2021 at 04:00PM by alamshahbaz
https://ift.tt/3krxlDY