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

No more boilerplate consuming Streams/BLoCs
I feel there's so much unnecessary code in my codebase every time I use a Stream!And I'm not the only one, there's a TON of projects where this happens, too.THE pattern 😩dart StreamBuilder( stream: bloc.stock, builder: (context, AsyncSnapshot<Stock> snapshot) { if (snapshot.hasData) { return Text(snapshot.data.stock.toString()); } else if (snapshot.hasError) { return Text(snapshot.error.toString()); } return Center(child: CircularProgressIndicator()); }, ),What if we could write it like this?DataStreamBuilder( stream: bloc.stock, builder: (context, Stock stock) => Text(stock.local.toString()) ),(And have the famous CircularProgressIndicator included by default).It can be overriden, of course, just like the error loading:DataStreamBuilder<Stock>( stream: bloc.stock, loadingBuilder: (context) => Center(child: Text('Loading posts...')), errorBuilder: (context, error) => PostErrorView(error), builder: (context, Stock stock) => Text(stock.local.toString()) )I opened source DataStreamBuilder:https://pub.dev/packages/flutter_data_stream_builder#-readme-tab-

December 06, 2019 at 01:59PM by frank06_
https://ift.tt/388UqDX
New post on /r/flutterdev subreddit:

Is Flutter ready for production? [CASE STUDY] - lessons we learned building our first Flutter app
https://ift.tt/365V9Uv

December 06, 2019 at 01:58PM by Vi_olet
https://ift.tt/2RqcoM5
New post on /r/flutterdev subreddit:

I've always enjoyed watching those speed code videos, so I made one myself - hope you guys like it. And I'm still learning, so feel free to tell me when I can do something better :)
https://youtu.be/7FdASZ9-Rn8

December 06, 2019 at 03:41PM by levelupdigital
https://ift.tt/2rbtz9G
New post on /r/flutterdev subreddit:

All the widgets from the Flutter widget index in a single image
Flutter widgetsSometimes it's hard to recall the extensive range of widgets that flutter provides, so I've made a easy to use image containing all of the widgets that are currently available.

December 06, 2019 at 05:22PM by madebyayan
https://ift.tt/2sKfW1l
New post on Flutter Dev Google group:

Scrollable AlertDialog widget
I created a design doc for a breaking change proposal to the AlertDialog widget (https://ift.tt/2rYOH2X). Please take a look if you're interested. All feedback is welcome [image: :slight_smile:] tldr; this change would make the AlertDialog widget scrollable by default, and

December 06, 2019 at 08:25PM by Shi Hao Hong
https://ift.tt/368P75j
New post on Flutter Dev Google group:

App VS Code flutter ERROR redirect. For God's sake someone helps me!
I'm starting here in the community and recent in flutter. I have a mission to use json and input controller. I need the button to exit the first screen redirect to the second screen, save and return to the first showing (name and value). The Second Screen form will have fields: name, phone, date

December 06, 2019 at 08:29PM by Israel Lira
https://ift.tt/2PiVmgh
New post on /r/flutterdev subreddit:

Stateless vs Stateful Widget
Hello there Everyone πŸ˜ŠπŸ‘‹ I hope that you guys are doing well.Here's the thing, I asked this before about whats the difference between stateless and stateful widgets and I'm still confused about them.Now, I'm confused how will I know which one to use and which one not? Means I've seen some tutorials where people made there Main class as statless while some used them as stateful.Any help will be appreciated. Thanks 😊☺️

December 06, 2019 at 09:12PM by m_hamzashakeel
https://ift.tt/2Ryq4EG
New post on Flutter Dev Google group:

New Dart DevTools Release 0.1.12
DevTools 0.1.12 Release Notes Dart DevTools - A Suite of Performance Tools for Dart and Flutter General Updates - An alpha version of DevTools written in Flutter is available for testing! To test out DevTools in Flutter, click the β€œbeaker” icon in the upper-right corner

December 06, 2019 at 09:56PM by Dave Shuckerow
https://ift.tt/2sLrKAq
New post on /r/flutterdev subreddit:

AutoRoute is a route generation library, where everything needed for navigation is automatically generated for you.
https://ift.tt/2rcuJli

December 06, 2019 at 09:23PM by Milad_Alakarie
https://ift.tt/38gkzQX
New post on /r/flutterdev subreddit:

Concise HTML writer syntax using extension methods
https://ift.tt/2LvKU3O

December 06, 2019 at 10:28PM by Abion47
https://ift.tt/2LsPvDO
New post on /r/flutterdev subreddit:

Snowflake effect
Can anyone help with an effect where snowflakes are falling down the page please. Or better still point me to a library/tutorial that will help me do it myself.

December 06, 2019 at 10:24PM by mrksndrs
https://ift.tt/2LsPoIo
New post on /r/flutterdev subreddit:

Architecture of the Google Play Brasil Best App of 2019. 1.5M+ installs, score 4.9 with 68.000+ ratings.
Hi everyone! I'm Ricardo from CΓ­ngulo (www.cingulo.com). Our app has been featured by Google Play as the Best App of 2019 for Brazil. We have 1.500.000+ installs and a score of 4.9 on the store with 68.000+ ratings.We have published a very similar architecture as the one we are using at https://github.com/cingulo/flutter-sample . This sample app is fully working, with a sample API also available.It took us about 3 months to build the app from zero knowledge about Flutter. When we started, it was hard to find fully working, complete examples to play with. This is why we have decided to publish this project.Every project may have its own architecture. This is what worked for us. There are still improvements to be done but it already is a good starting point and it would have helped us a lot if had something similar to this when we started.This post is not intended to promote our app as it actually is not even available in most countries and we already have good numbers. But I did mention our numbers to show that this architecture has already reached many people and is working very well. Anyway, if moderators find this an unwanted promotion, remove the post.Hope it can be useful for some, it would have been for us :)

December 06, 2019 at 11:19PM by rmserro
https://ift.tt/2RuvHDR
New post on /r/flutterdev subreddit:

Any solution to using Flutter + Firebase Auth + Apple Sign In?
My app just got denied because I had Google Sign In but now Apple Sign In. I would love a fix very soon.

December 07, 2019 at 01:13AM by garrettmortara
https://ift.tt/36czPN7
New post on /r/flutterdev subreddit:

Retrofit for api
Is it better to use retrofit and di in flutter for easy implementation in api call?

December 07, 2019 at 01:56AM by Jecky633
https://ift.tt/2RssDs8
New post on /r/flutterdev subreddit:

Calculator App made with Flutter
Hey guys!I recently started learning flutter and just made my first calculator from it. Would love to get any feedback on the code behind it. I'm sure there's a much more efficient way of what I made so I'm open to criticism. The link to the code:https://github.com/createdbymitch/flatcalculatorfollow me on instagram @ createdbymitch I'm doing a 100 day coding challenge!
https://www.instagram.com/createdbymitch/

December 07, 2019 at 04:30AM by Heisenlife
https://ift.tt/369PxIF
New post on /r/flutterdev subreddit:

What are some use cases of auth sign in with Google/Facebook etc without Firebase/server side auth?
This Flutter tutorial video https://www.youtube.com/watch?v=8o-DJDi2bmQ explains how to use Google Sign In without Firebase. Basically the app just uses Google Sign In SDK to retrieve the access token and user info. There is no server side auth such as Firebase involved. One scenario where you implement auth in this way is when your app is a client of the provider's service, for example writing a Google Drive client or Facebook client or Reddit client. Are there some other use cases or types of mobile app that one could just implement auth this way without involving server side auth?

December 07, 2019 at 06:51AM by etca2z
https://ift.tt/38cWJWp