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

Flutter Tap Newsletter Week 19 - Happy New Year! Articles, tutorials, videos and much more
https://ift.tt/35fcnOx

December 30, 2019 at 05:10PM by vensign
https://ift.tt/37mbncz
New post on Flutter Dev Google group:

Problem with map marker too small on Android
Hi! I have this problem, I add some 32x37 markers on a map and they look Ok on iPhone but they look very small on Android, I like to know if there is a way to change the icon size programmatically. I know how to detect platform and I know I can use another bigger icons on Android but I want to

December 30, 2019 at 07:16PM by Entrada
https://ift.tt/2thiswe
New tweet from FlutterDev:

Happy holidays from the Flutter family!

In many parts of the world, the end of December brings time off work to be with our loved ones to relax, reflect, and…

See what else → https://t.co/fgZW1ByAV6 pic.twitter.com/lvUhojFh7i— Flutter (@FlutterDev) December 30, 2019

December 30, 2019 at 08:16PM
http://twitter.com/FlutterDev/status/1211727880138493952
New post on Flutter Dev Google group:

Flutter web file download
So I've got a service that requires a HTTP GET with a Bearer token in the authorization header, which responds with a file. What I want, is for the app to pop up the browsers standard file save dialog and download the file. I've tried searching around a bit and so far can only find references to

December 30, 2019 at 08:46PM by Travis Dixon
https://ift.tt/2F3eNoJ
New post on /r/flutterdev subreddit:

How to trigger UI events in children view, which is not visible in PageView?
I have an interesting issue. I have a pageview, which has 5 containers and each container has a ListView with multiple items(each item has a Bloc attached to that item). That bloc is used for controlling all actions with sounds: play/resume/pause.Now default PagView behaviour is the following:
/// This constructor is appropriate for page views with a large (or infinite)
/// number of children because the builder is called only for those children
/// that are actually visible.
I need to change my pageView so that all children would act as visible so that they would trigger a Bloc event.
Is this possible, or is my idea incorrect one and I perhaps should not create a separate bloc per child and manage my Audio in parent loc.

December 30, 2019 at 09:44PM by wellbranding
https://ift.tt/2QbdkmE
New post on /r/flutterdev subreddit:

Any recommendations on State management?
Hi there!I've been working on a simple app for some time, but back in the day I had no idea of state management and I was just passing the data from parents to children widgets and then doing some nasty stuff to get the things working. Recently I read that this is basically what state management fixes, so I've been reading about it. I read about Redux, since I know it's pretty popular on JS, so I thought it could be the most popular choice, but it looks like in the Flutter World, other choices (provider, or BLoC) are more popular.Can you provide me some insight in the current state of this on Flutter?

December 30, 2019 at 09:39PM by alosarjos
https://ift.tt/2QdHdTr
New post on /r/flutterdev subreddit:

Ciprian Turcu | It's All Widgets! Flutter Podcast
https://ift.tt/39r019b

December 29, 2019 at 08:33PM by hillel369
https://ift.tt/36c7Eyi
New post on Flutter Dev Google group:

Add to app Android - missing assets
Hey Team, So I've using the add to app functionality for our mobile applications and having some issues when trying to get my Flutter app working on Android (already implemented within iOS app with no issues). Seems the package I'm using (flutter_dotenv) is unable to find the assets listed in my

December 31, 2019 at 01:16AM by Jake Gillingham
https://ift.tt/2ZECLQI
New post on /r/flutterdev subreddit:

Clarification about Provider as a State Management lib
Feel free to correct me if I was wrong at some points below.First, let me declare this. Provider standing alone is not a state management library, it is a providing stuff library.It is considering a state management TECHNIQUE when you combine some pre-defined widgets of Provider like Consumer, Selector with ChangeNotifier or Stream or whatever dynamically changing state holders.Static:If I want to provide something statically up from the top to the bottom widgets (just a couple of widgets or globally based on the scope). I see nothing easier than using Provider. It allows me to not have to define the same parameters in my widget constructor deep down in the widget tree. That's all. In this case, you don't need to pass context for the Provider to get what you want, just a reminder.Dynamic:- In ChangeNotifier, it uses notifyListener() to 'notify' 'listeners' about the changing event.- In Stream, it uses event pipelines. We still have to define listening logic to events emitting.As I said above, there are various techniques to handle state management in Flutter, and addListener(()=>setState()) is the most well-known, but ppl keep asking questions (after watching Pragmatic state management video) seem confused about this.The problem of addListener(()=>setState()) is that it rebuilds the whole widget. So maybe there are nesting widgets that don't need to be rebuilt when the state changes.Nothing fancy about this, just throw your addListener(()=>setState()) inside a stateful widget, making sure the whole widget (meaning every nesting widgets inside) is needed to be rebuilt for your logic. OR, you can use pre-defined widgets that Flutter generously provided for us: AnimatedBuilder, StreamBuilder, FutureBuilder,...Yes, we can use AnimatedBuilder for ChangeNotifier, just a reminder.There is nothing wrong using addListener(()=>setState()) if we use it right waySo basically Consumer is nothing more than a wrapper widget that has addListener(()=>setState()) inside to rebuild itself every time ChangeNotifier fires notifyListeners(), and Selector is just Consumer with conditional checks to avoid unnecessary rebuilds.There is NO PERFORMANCE IMPROVEMENT in using state management libraries. It's essentially how you structure your code to minimize the number of widgets being rebuilt and how you defining logic to minimize the rebuild numbers of those.Conclusion:I use Provider for local scope static holders.I use MultiProvider for providing global static holders.I use ChangeNotifierProvider for proving local scope ChangeNotifier state holders for a couple of widgets.I use MultiProvider + ChangeNotifierProvider for providing global ChangeNotifier state holders.You can't define multiple ChangeNotifierProvider of the same ChangeNotifier, just a reminder.Sometimes I use Consumer, Selector in case the state holders are ChangeNotifier, but sometimes I use AnimatedBuilder, FutureBuilder, StreamBuilder,...instead. It depends on what the state holders are and what I specifically need in rebuilding the widget.I use Provider solely as it had stated in its description, a lightweight DI.The sanity of SM libs:In any case, I try to avoid the sanity of state management libraries as much as possible. Trying to figure out how not using any one of those can solve my problem. If not, I will use the least affect one and then some.Most of the time, big SM libs trying to solve macro-level problems, and most of the time I'm looking for micro-level problem solvers. So choose your SM lib carefully and depends on your own situations.What a no-brainer you are when you can't even control or understand what you wrote, right?Relying too much on libs makes you don't understand a single thing.

December 31, 2019 at 09:23AM by JoeJoe_Nguyen
https://ift.tt/36c4Hxr
New post on /r/flutterdev subreddit:

Can Apple shut down flutter exports?
Apple is known for shutting down competition. How is the back end of flutter handled? Is it written in swift?I really like flutter hopefully iOS exports continue to work indefinitely.Is this something to be worried about?

December 31, 2019 at 08:15PM by Coffee4thewin
https://ift.tt/2u2WQUQ
New post on Flutter Dev Google group:

flutter and mongoDB tutorial source
i love flutter so i decided to develop location based tracking application, ya firebase is good, but i have asked to develop the app by using mongo as a backend, but i can't find any tutorial about flutter and mongo, so i am asking you for the link where can i get the tutorial, or i'm asking

December 31, 2019 at 11:49PM by Elias Ayele
https://ift.tt/2QyDoqQ
New post on /r/flutterdev subreddit:

CupertinoScaffold transparent background
Hello, I am working on an app and have a Stack with container which have gradient color and CupertinoScaffold on top. Am trying to have the Scaffold with transparent background (setting its background to Colors.transparent to display the Container color) but keep getting it as white to display. Is t possible? Thanks.

January 01, 2020 at 02:07AM by medsab
https://ift.tt/2SOv2xI