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

<b>End of the year survey about the community</b>
Hello there, <a href="/r/FlutterDev">r/FlutterDev</a>!It's the end of the world 2019, and we've recently reached <strong>25k members</strong> on Reddit, as well as <strong>10k members</strong> on Discord! (If you're not in yet, <a href="https://discord.gg/rflutterdev">join us!</a>)We want to take this milestone to revise the rules of the community, which have pretty much stayed the same as they have always been.We want your feedback!Rules are a sticky topic. They are both necessary, but must always be applied with a grain of salt. In order to reflect what <em>you</em> want on this subreddit, it’s important that the rules be changed to conform to the content that users want to see. You’ll find all the rules as well as the reason why they were introduced at the end of this post. You can comment about adding, deleting, or changing rules in any way you see fit, we will consider every opinion posted here.Another feature that we are considering is to have weekly or monthly sticky posts. Some ideas that have come up include an “App Feedback Thread” and “Weekly Questions Thread”, similar to how <a href="/r/AndroidDev">r/AndroidDev</a> has. Do you think these threads would be a good idea or would you prefer something different? Please let us know.Finally, if you have any other ideas for improving the subreddit that you would like us to consider, they are most welcome.How we will proceedWe will consider your feedback and will discuss it amongst the mod team. Changes we consider fitting for the community will either be integrated directly if they’re important, or will be put in a poll where we will be able to judge the community’s feelings about them. In any case, we will leave this thread up for a couple of weeks so that there’s a chance to get enough feedback from the community.What you can do to help usModerating the subreddit works much better when the community helps us! Here are some things that really make a difference:Reporting comments and/or posts -- If you see a post or comment that you believe breaks the subreddit's rules, please report it: this ensures that a moderator should catch it much more quickly.Please use appropriate tags -- the post tags (article, video, plugin, discussion, etc) allow others to see at a glance what kind of content a post is, and can be useful for filtering content. Please use them!<strong>Thank you for being a part of this community, and the</strong> <a href="/r/FlutterDev">r/FlutterDev</a> <strong>team wishes you a happy end of the year!</strong>The current rules, and why they're thereMust be related to flutterYou may post about code, design, distribution, marketing, etc. as long as it does not conflict with any other rules. We only ask that it has something to do with Flutter.In order to keep this subreddit's focus purely on Flutter, we disallow posts about general programming, tips to program better, and similar posts, as they are a better fit for other subreddits.Not a support forumDiscussion about architecture, performance optimizations, or design are allowed, but specific code questions and asking for help with development are not. Neither are basic/easily searchable questions. Please direct those to <a href="https://stackoverflow.com/questions/tagged/flutter">StackOverflow</a> or our <a href="https://discord.gg/uMya6wQ">Discord chat</a>.There are multiple levels of reasoning behind this ruleReddit is <em>not</em> as good a help medium as StackOverflow (Unique questions, with "professional" answers, that are permanently stored and easy to search/access...) or any Instant Messaging Platform (Instant answers, back and forth questions, images, videos...)Reddit offers poor code formatting featuresThis subreddit is for <em>content</em> <strong>about</strong> FlutterSince this subreddit is often frequented by relatively new Flutter users, allowing questions would potentially lead to a sea of discussion threads about…
New post on /r/flutterdev subreddit:

Flutter library to generate beautiful triangle art views for android and ios.
https://ift.tt/2rG7EHo

December 01, 2019 at 02:15PM by jmonga98
https://ift.tt/2L8Qrxi
New post on /r/flutterdev subreddit:

Should I stop using StatefulWidget in flutter_bloc pattern?
Hello, I have implemented flutter_bloc in our new app, which will be relative large project( 30+ screens). Coming from native development I am in love with flutter_bloc and how opionated it is. However I am can't understand why it takes so much code to create basic things..For example I have a listView of chips and I would like to let select only a single chip and deselect all others... all examples I see use StatefulWidget widget for that but I don't know if I should mix StatefulWidget widget with flutter _bloc...What is your opinion regarding mixing flutter_bloc with StatefulWidget for sliders, chip group?

December 01, 2019 at 01:47PM by wellbranding
https://ift.tt/37WY2bJ
New post on Flutter Dev Google group:

initState not getting called
I open PageB from PageA using this code Navigator.pushNamed(context, PageB.ROUTE); In pageB, when I press the back device button, it will return to pageA, but the initState in PageA is not getting called. Why? I want it call a function once it is back from pageB.

December 01, 2019 at 05:17PM by Tony Seng
https://ift.tt/2P17iD5
New post on /r/flutterdev subreddit:

Firebase: Subcollection, Array, or Map in this situation?
So I'm building an event app and one of the features is a discussion section on each event. To KISS it's not threaded or hierarchical. One post can have N replies but you can't reply to a reply. However, each post and each reply can have emoji reactions attached to it (think facebook posts). I'm thinking any emoji can be a reaction (so like 1,300+ possible reactions) and each duplicate reaction would increment a counter.This is a simplified jsonified example of what i have now (hand typed on mobile so please forgive any syntax errors):{ 'title': 'blahblah', 'reactions': { '👍': 5, '😉': 1, ...}, 'replies': [ { 'text': 'some comment', 'reactions': {'🌮': 2, ...}, ...}, ... ], ... }For reactions, a map using emoji as keys and int for a counter seems like an ok way to go for reads but I'm concerned about multiple users trying to increment the emoji counter at the same time. How can i keep that counter consistent across all clients?For replies, the more i read about the data model the more an array seems like a bad plan. What would be good to replace it though? A Subcollection that i page through as necessary, a map using a unique "reply id" for the key, or something else?

December 01, 2019 at 07:08PM by inhumantsar
https://ift.tt/2P1eBuL
New post on /r/flutterdev subreddit:

Detecting US addresses
Looking for suggestions on parsing US addresses in strings. Haven't really found a library that could help me. I saw suggestions to use nsdatadetector in iOS but I'm trying to do this in flutter. Please let me know if there are any suggestions. Thanks!

December 02, 2019 at 06:21AM by iknowcomputers
https://ift.tt/37UdtS9
New post on Flutter Dev Google group:

package:shared_preferences not working
please slove the issue error: Target of URI doesn't exist: 'package:shared_preferences/shared_preferences.dart'

December 02, 2019 at 08:08AM by Khushali Thakkar
https://ift.tt/2YekAAA
New post on Flutter Dev Google group:

How do I find what is causing this crash? (gpu pthread crash - Git Issue #42391)
I have the same issue as described in this git issue: https://ift.tt/2OF7KYP The biggest issue with this crash is its stacktrace, since it does not describe which widget caused it (which suggest it might be some memory leak / performance issue). Here is the stacktrace:

December 02, 2019 at 09:33AM by Mauricio Hernandes
https://ift.tt/33KZOd2
New post on Flutter Dev Google group:

tutorial for developing desktop app using flutter
I want to develop gui for my airplane ,so I wat to develop desktop app . This project also include communication with Arduino that is through serial port

December 02, 2019 at 10:23AM by Gaurav Shetty
https://ift.tt/2P28YfD
New post on /r/flutterdev subreddit:

How to hide api keys in the binary
Because well everyone asked for it...This is the logic how to do it but impl will be later in my flutter boiletplate at my gitlab profile.Okaychain math functions together to has the api in your favorite math notebook softwarein the flutter app make a function for every step to reverse the hash.name each function a character name out of your favorite moviehide each function in a separate biz class.​yeah its imperfect but its the only solution we have at the moment.

December 02, 2019 at 12:35PM by fredgrott
https://ift.tt/37Qn4t8
New post on Flutter Dev Google group:

Flutter Web - Database Storage
I have the mobile app where I am doing the database and local storage using the SQFlite and Shared_Preferences packages. It works fine on the mobile. I have tried to run the same codebase on the chrome (flutter web). The code run but no storage of data happens. Does flutter web support these

December 02, 2019 at 03:03PM by Sreekanth Reddy
https://ift.tt/2qdF143
New post on /r/flutterdev subreddit:

How would I go about having a user object with bloc
I have moved my app over to using flutter_bloc and I am enjoying using it.One thing I could not wonder out was how to have a single user object that I can access from everywhere, I used to do this through Statewidget.of(context) in order to access my user singleton.I can not reload the user object every time it needs to be used as it’s quite database heavy.Any ideas ?

December 02, 2019 at 05:57PM by haulwhore
https://ift.tt/2P5jDWZ