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

CODEMAGIC — FLUTTER CI/CD . I
If Flutter did caught your attention before and started playing with it, the name of Codemagic is probably something you may heard before. It is the first CI/CD tool dedicated to Flutter apps, and it is developed by Nevercode. It was launched at Flutter Live in December 2018, this new tool makes easy to automate the process of CI/CD for Flutter apps from a single automation.Interested ? Further information about this tool and how to use it, here.

February 12, 2019 at 07:34PM by develodroid
http://bit.ly/2TMpT72
New tweet from flutterio:

🕺Let’s do the two-step💃

Step 1 - Wrap in a ‘Positioned’ widget
Step 2 - Set the alignment parameters ↑←↓→

Just like that you’ve learned how to position widgets within a Stack.

Click for more #WidgetoftheWeek tips! ↓ pic.twitter.com/hPGlEAOFpr— Flutter (@flutterio) February 12, 2019

February 12, 2019 at 09:12PM
http://twitter.com/flutterio/status/1095415252395515904
New post on Flutter Dev Google group:

stepper.dart / horizontal
Is that normal that the StepperType.horizontal is not achived in the stepper.dart class. I quote: // TODO(dragostis): Missing functionality: // * mobile horizontal mode with adding/removing steps // * alternative labeling // * stepper feedback in the case of high-latency interactions

February 13, 2019 at 10:22AM by Bened
http://bit.ly/2GGcM3B
New post on /r/flutterdev subreddit:

Flutter firebase offline working
I want to make my flutter app working with firebase realtime database in offline mode tooThis is possible?If possible, how can I do it?

February 13, 2019 at 04:23PM by minyu911
http://bit.ly/2S0Dx50
New post on /r/flutterdev subreddit:

How to make flutter working with firebase realtime database in offline mode
I want to make my flutter app working with firebase realtime database in offline mode tooCan you help me?​

February 13, 2019 at 04:46PM by minyu911
http://bit.ly/2E6Bvwg
New post on /r/flutterdev subreddit:

Tired of writing repetitive code when using the BLoC pattern ? 😴
http://bit.ly/2SO9yS1

February 13, 2019 at 07:08PM by aloisdeniel
http://bit.ly/2TM2mmJ
New post on /r/flutterdev subreddit:

Best way to adapt flutter UI to different screen ratios and resolutions?
Hello. Maybe you guys have a good way to scale UI based on device screen aspect and resolution. I found this package: https://pub.dartlang.org/packages/flutter_screenutil but maybe there is a better simpler way to achieve this, i.e. to scale down or up the whole top widget in a tree (by a certain set factor), depending on the device. Thanks for ideas!

February 13, 2019 at 08:42PM by nieistniejacy
http://bit.ly/2V1gmJP
New post on /r/flutterdev subreddit:

Do we need a better way to write REST API clients (my approach provided)?
I'm developing my first Flutter app after many years as Android dev. I found that developing REST API client requires quite a lot of utility code around awesome http.get()/post(). I don't want to reinvent the wheel so asking if there is library to fulfill simple requirements. I want:to have option to print all requests/responses for debug purposes;to have an easy way to decode json response into an specific object;to handle API errors as call result (all non 2xx responses) where result is decoded json error response as custom object;to handle network errors as a call result (avoid using catch block);to use type safety as much as possible;Because I couldn't find handy lib, I come up with the solution where each API call can be constructed like this
 Future<ApiResult<Client>> addClient(String name) { return post( "/api/clients", payload: {"name": name}, resultFactory: (json) => Client.fromJson(json), ); } 
The result of API call is always an object: Success<T>, ApiError or NetError (all extending ApiResult).And on the caller side (with additional help of ApiResult.verify()) it looks as simple as this
Success<Client> result = (await _api.addClient(newClientName)).verify( // e.g. show dialog with error response from the server apiErrorHandler: (apiError) => ..., // e.g. provide retry button while on spotty network netErrorHandler: (netError) => ..., ); if (result == null) return; // at this point I can be sure request succeeded and Client object can be safely consumed as result.data 
No rocket science here, just a more friendly API to construct, debug and consume REST API.Should I extract this approach to the library or I'm doing all this wrong and there is more flutter/dart idiomatic way to deal with all that stuff?Appreciate your responses.

February 13, 2019 at 09:41PM by pilgr
http://bit.ly/2X11FrT
New post on /r/flutterdev subreddit:

Live Templates, or how to spend less time writing boilerplate code on Flutter with IntelliJ
http://bit.ly/2SS4JqY

February 13, 2019 at 10:12PM by Vanethos
http://bit.ly/2TICyrI
New post on Flutter Dev Google group:

Markup language
On my current project I’m using firebase and firestore with flutter. Right now I have an issue where I can only input information into a page from my database if it adheres to a very strict layout defined by my flutter page widgets. My question is. Is there a way to do something similar to

February 14, 2019 at 01:59AM by Brennan Altringer
http://bit.ly/2N6rsKO