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

<b>Proposal for upcoming get_it mixin API</b>
Proposal for the coming get_it mixin for Widgets as I was asked by users to help binding the UI to the objects in GetIt. Highly inspired by <a href="https://mobile.twitter.com/remi_rousselet">@remi_rousselet</a> 's Hooks and provider in this aspect. For people using Hooks I plan a similar GetItHook. Please tell me what you think`` <code>/// all the following functions can be called inside the build function of a Widget but also /// in e.g. in</code>initState<code>of a</code>StatefulWidget`. /// The mixin takes care that everything is correctly disposed./// retrieves or creates an instance of a registered type [T] depending on the registration /// function used for this type or based on a name. /// for factories you can pass up to 2 parameters [param1,param2] they have to match the types /// given at registration with [registerFactoryParam()] T get<T>({String instanceName, dynamic param1, dynamic param2});/// like [get] but for async registrations Future<T> getAsync<T>({String instanceName, dynamic param1, dynamic param2});/// like [get] but with an additional [select] function to return a member of [T] R getX<T, R>(R Function(T) accessor, {String instanceName});/// like [get] but it also registers a listener to [T] and /// triggers a rebuild everytime [T] signals a change T watch<T extends Listenable>({String instanceName});/// like [get] but it also registers a listener to the result of [select] and /// triggers a rebuild everytime signals [R] a change /// useful if the <code>Listenable</code> [R] is a member of your business object [T] R watchX<T, R extends Listenable>( R Function(T) select, { String instanceName, });/// like watch but it only triggers a rebuild when the value that the function /// [only] returns changes. With that you can react to changes of single members /// of [T] T watchOnly<T extends Listenable>( Object Function(T) only, { String instanceName, });/// a combination of [watchX] and [watchOnly] R watchXOnly<T, Q extends Listenable, R>( Q Function(T) select, Object Function(R) only, { String instanceName, });/// subscribes to the <code>Stream</code> returned by [select] and returns /// an <code>AsyncSnapshot</code> with the latest received data from the <code>Stream</code> /// Whenever new data is received it triggers a rebuild. /// When you call [watchStream] a second time on the same <code>Stream</code> it will /// return the last received data but not subscribe another time. /// To be able to use [watchStream] inside a <code>build</code> function we have to pass /// [initialValue] so that it can return something before it has received the first data AsyncSnapshot<R> watchStream<T, R>( Stream<R> Function(T) select, R initialValue, { String instanceName, });/// awaits the <code>Future</code> returned by [select] and triggers a rebuild as soon /// as the <code>Future</code> completes. After that it returns /// an <code>AsyncSnapshot</code> with the received data from the <code>Future</code> /// When you call [watchFuture] a second time on the same <code>Future</code> it will /// return the last received data but not await another time. /// To be able to use [watchStream] inside a <code>build</code> function /// we have to pass [initialValue] so that it can return something before /// the <code>Future</code> has completed AsyncSnapshot<R> watchFuture<T, R>( Stream<R> Function(T) select, R initialValue, { String instanceName, });/// Pushes a new GetIt-Scope. After pushing it executes [init] where you can register /// objects that should only exist as long as this scope exists. /// Can be called inside the <code>build</code> method method of a <code>StatelessWidget</code>. /// It ensures that it's only called once in the lifetime of a widget. /// When the widget is destroyed the scope too gets destroyed after [dispose] /// is executed. If you use this function and you have registered your objects with /// an async disposal function…
New post on /r/flutterdev subreddit:

Learn Why Google rewritten Google Pay app in Flutter
Are you building multi platform product for global user base, you should read this before you start development. Learn more about Why Google has rewritten Google Pay app completely in Flutter.Read More

September 20, 2020 at 11:05PM by mobilelabs_in
https://ift.tt/3kCmIf8
New post on /r/flutterdev subreddit:

Does it really make sense to use Springboot as backend?
Hi guys,​I've been reading here and there, just to get an idea, does it really makes sense to use springboot as backend for Flutter? And if yes, which are the cases where it really makes a difference?Thank you so much for the answers

September 20, 2020 at 11:38PM by Beppius
https://ift.tt/2RPYiT3
New post on /r/flutterdev subreddit:

advanced flutter
Hello guys, is there any good reference/course/roadmap to learn advanced flutter+dart?
I've finished the 2 popular courses in Udemy -Angela and Academind(max)- and made many simple apps that use APIs/databases, native features etc. but I still feel I am missing a lot, like State management with Bloc or Redux and I don't feel like I can make stunning designs like those in flutter/examples. so what should I do?
I really appreciate your tips guys so thank you in advance.

September 21, 2020 at 01:29AM by elmomani
https://ift.tt/3iUL1ow
New post on /r/flutterdev subreddit:

Flutter flatbutton widget in detail
https://ift.tt/32M5WEo

September 21, 2020 at 06:39AM by nareshpradeep
https://ift.tt/2RMgvkI
New post on /r/flutterdev subreddit:

Google Pay Select Flutter As a Product Development Platform - Google Pay Flutter
https://ift.tt/2ZUi5W8

September 21, 2020 at 07:02AM by sagarshende
https://ift.tt/2FLR5kJ
New post on Flutter Dev Google group:

Captcha Work
Work from Home Captcha Entry work if Any one interested just share the Details to Email:d....@gmail.com client:2 Captcha

September 21, 2020 at 07:36AM by D Rajesh
https://ift.tt/35RWGAv
New post on /r/flutterdev subreddit:

Advanced begginer
Hi there! I'm new in this community, so 🖐️ to everyone.I'm learning Flutter and Dart for about 2 months now. Dart is quite easy language for me cause I know Java pretty well. But still after this time I have problem to write something all by myself without using Internet. So I want to systematize my knowledge. What do You think about eg. Udemy courses? Are they worth for person like me - are they interesting even when I know basics? Maybe You can recommend something for me.And I know - there is a really good documentation wrote by Flutter devs. However, I'm kind of person which using documentary when have a specific problem.Thanks for Your time.

September 21, 2020 at 08:18AM by dolszewski97
https://ift.tt/2Eik7HR
New post on /r/flutterdev subreddit:

Something like covet fashion, the mobile app
Hi developers, I'm in talks with someone who needs something similar to covet fashion, a mobile 'dress up' game. Is it possible to create such? and if so what are the complexities involved? Kindly help.

September 21, 2020 at 07:52AM by mr_visde
https://ift.tt/3iOQpcD
New post on /r/flutterdev subreddit:

Proposal mixin API to connect Objects inside GetIt with the UI. (This time as Gist because it wasn't readable in my last post on mobile)
https://ift.tt/32OEAxu

September 21, 2020 at 02:43PM by escamoteur
https://ift.tt/33KR20x