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

I gave up on Flutter due to the nested hell
Did it have to be designed that way where all your code looks like nested hell?

May 04, 2019 at 07:18AM by purplegreencab
http://bit.ly/2Wu6pWt
New post on /r/flutterdev subreddit:

f_logs | Advanced Logging Framework- provides quick & simple logging solution. All logs are saved to the DB which can then be exported as a zip file.
http://bit.ly/2VIiSsd

May 04, 2019 at 09:53AM by Elixane
http://bit.ly/2UZvl6o
New post on Flutter Dev Google group:

Please help needed am confused with the error am seeing Flutter project can't build or run
Launching lib\main.dart on Android SDK built for x86 in debug mode... Initializing gradle... Resolving dependencies... Running Gradle task 'assembleDebug'... FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:transformClassesWithMultidexlistForDebug'.

May 04, 2019 at 02:42PM by Emmanuel Agu Iroegbulam
http://bit.ly/2J4M7zN
New post on /r/flutterdev subreddit:

Flutter, Notifications bubble up and values go down
Learn how to send notifications and values all along the UI widget tree in Flutter, with the following article:https://medium.com/@develodroid/flutter-notifications-bubble-up-and-values-go-down-c1a499d22d5f

May 04, 2019 at 03:39PM by develodroid
http://bit.ly/2VO8qzk
New post on Flutter Dev Google group:

Add the colour of structure link to make it more visualised
[image: Screenshot 2019-05-04 at 11.47.57 PM.png] I like the design of the link between structure, it can be improved by designing for different color to make the developer can identify the structure easily by looking at different color of the link. Hope you guys can understand what I mean.

May 04, 2019 at 05:51PM by OK
http://bit.ly/2H1JBGH
New post on /r/flutterdev subreddit:

Animations while switching tabs in BottomNavigationBar
Hey Flutter devs!​I was wondering if it would be possible to add animations or transitions while switching tabs, using a BottomNavigationBar widget.​Thanks!

May 04, 2019 at 05:27PM by jesusrp98
http://bit.ly/2H0BdHP
New post on /r/flutterdev subreddit:

flutter app lifecycle
I want to delete the content of shared preferences whenever the app is killed, but I can't find something equivilant to onDestroy() method found in native android, the only thing i found was the dispose() method, if i used it on the root route would it work as onDestroy or not ? if not is there any alternative approach ?*another question: how does route tree work in flutter ? is it just like in android where there would be a stack of activities on top of each other with the first one being the root ?

May 04, 2019 at 08:33PM by byshy
http://bit.ly/2PJ4AST
New post on /r/flutterdev subreddit:

UI-As-Code: Ideas on how to improve Flutter UI coding
Hi,After playing with Flutter for a little while I got some ideas on how UI coding with imperative language (Dart) could be modernized and improved.As a native developer (Kotlin & Swift) , I could present you a large list of features I would like Dart to have. However, since nobody likes to read long boring articles, I'm going to describe just a couple of thoughts that popped into my head while I was trying to construct UI with Flutter.Okay, let's go. Given the following very very basic block of code:
return Container( constraints: BoxConstraints.expand( width: 200.0 ), margin: EdgeInsets.only(left: 50.0, right: 50.0), child: Column( children: [ Text('Hello'), Row( children: [ Text('there'), Text('world!’, style: style), ], ), ], ), ); 
what can we improve here?First of all, what do you think of these child and children parameter names? For me they seem to be redundant. It is already obvious that the nested elements are children, so, in my opinion, these parameters needlessly increase the code size. We could get rid of them if Dart supported optional positional and optional named arguments. However, the following issue is still open (wow, dates back to 2012): https://github.com/dart-lang/sdk/issues/7056Now take a closer look at the square brackets. Wouldn't it be great to be able to just pass the child elements as normal arguments instead of arrays? I think, it would. Surprisingly, this is currently not possible because Dart doesn't support varargs (wow, dates back to 2014): https://github.com/dart-lang/sdk/issues/16253Another amazing feature Dart could borrow from Swift is Visual Format. This could greatly simplify constraints & margins coding. The relevant link: https://developer.apple.com/library/archive/documentation/UserExperience/Conceptual/AutolayoutPG/VisualFormatLanguage.htmlMaybe it's just my personal preference, but I think that extensions in Swift are a piece of art. As a quick example, with extensions it would be possible to write something like this 'my_amazing_text'.withStyle(style). It's sad Dart still doesn't support it: https://github.com/dart-lang/language/issues/41If we stop here, take a deep breath, and apply these suggestions to the above-mentioned code here is the result we will be able to achieve:
return Container( layout: ‘|-50-200-50-|’, Column( 'Hello’, Row('there', 'world!'.withStyle(style) ) ) ); 
I would also remove the trailing semicolon, but that's enough for today. I guess, I already earned a bunch of downvotes for the above little critique of Dart. However, please don't get me wrong - I just felt the urge to share these thoughts with the community for our common benefit.Happy coding!

May 04, 2019 at 11:40PM by stuffokator
http://bit.ly/2GX8S4V
New post on /r/flutterdev subreddit:

New to Dart. What does this line of code mean?
This is the whole line:
Function(String) get changeEmail => _emailController.sink.add; 
I'm trying to learn how BLoC and rxdart works. I'm confused about the left part of this line.
Function(String) get changeEmail => 
I understand that get is a shortcut for creating a getter function. My understanding of Function(String) is that it's a lexical closure and it might be using get changeEmail as part of its lexical scope.I'm confused because I find it strange that a getter is doing something that results in a mutation. My instincts say that it's wrong, but I'm almost sure that I'm wrong. Can anyone break this down for me? Also, is there another way to write this code?

May 05, 2019 at 02:28AM by outtascope
http://bit.ly/2V1r7Lt
New post on Flutter Dev Google group:

How to navigate to the home page after check the valid token from storage.
Hi everybody, I check the user authorization token at the HomePage Constructor, so if token is present and valid, i will call the Navigator pushAndRemoveUntil method to redirect to my dashboard. But pushAndRemoveUntil method needs context parameter, is that mean i just call it on build method?

May 05, 2019 at 04:42AM by favr...@gmail.com
http://bit.ly/2Vgd0qP
New post on /r/flutterdev subreddit:

BLoC vs MobX: Which would you recommend for large and complex Flutter apps?
Thoughts?Bonus: Which state management architecture will likely stick around in the long run and act as the industry standard?There are no right answers.

May 05, 2019 at 05:16AM by SocialMammoth
http://bit.ly/2GWMLvv