Flutter Heroes
25.8K subscribers
272 photos
2 videos
31.1K links
Download Telegram
New post on Flutter Dev Google group:

Flutter and native device resources access
Hi, i'm new with Flutter, i'm coming from Ionic.. Looking Flutter docs i don't understand how to access to device resources like camera, network, geolocalization, push notifications... by plugings ? is there some docs about it ? Thanks for help..

February 28, 2019 at 12:38AM by Mauro Miotello
https://ift.tt/2UcxWub
New post on /r/flutterdev subreddit:

How to fetch multiple JSON endpoints in async manner, then get results at end?
I am struggling with isolates and Futures. All I want is iterating through a list of urls, which will return JSON arrays of anything.And then funnelling all JSON array items into my own list of items in an async way.I am not sure how to proceed, but it seems _fetchAndParse() is not constructed properly (expecting future), and I am on the end of the rope :)Flutter docs examples are fetching on main thread, and then moving to parse and return data in a separate isolate via compute().I am trying to fetch and parse in a separate isolate.Any advice is welcome.​
import 'package:flutter/material.dart'; import 'dart:async'; import 'dart:convert'; import 'package:flutter/foundation.dart'; import 'package:http/http.dart' as http; void main() => runApp(MyApp()); class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { _getJson(); return MaterialApp( title: 'Flutter Demo', home: Text('Hello')); } Future<List<dynamic>> _getJson() async { final List<String> urls = [ 'https://api.github.com/users/mralexgray/repos', 'https://api.github.com/users/mralexgray/repos', 'https://api.github.com/users/mralexgray/repos' ]; final List<dynamic> result = []; urls.forEach((url) async { await compute(_fetchAndParse, url).then((items) => result.addAll(items)); }); return result; } List<dynamic> _fetchAndParse(String url) { var client = http.Client(); final response = client.get(url); return json.decode(response.body); } } 


February 28, 2019 at 02:19AM by dimitar71
https://ift.tt/2tG1Ifh
New tweet from flutterio:

The Cupertino package provides widgets, page transitions, themes, & more to help you make iOS users right at home. Watch @RedBrogdon build a pure Cupertino app in this #FlutterinFocus!

Watch now &rarr; https://t.co/MPzpP0cQzv pic.twitter.com/ShB1whNwl0— Flutter (@flutterio) February 28, 2019

February 28, 2019 at 01:13AM
http://twitter.com/flutterio/status/1100911938782089222
New post on /r/flutterdev subreddit:

Use Flipper debug your Flutter app
Hello everyone, I created a flipper sdk for flipper, you can debug your network request and preferences on flipper. https://github.com/blankapp/flutter_flipperkit/​​https://i.redd.it/t50az32ez7j21.png

February 28, 2019 at 03:25AM by lijy91
https://ift.tt/2H5BACy
New post on Flutter Dev Google group:

How to fetch multiple JSON endpoints in async manner, then get results at end?
I am struggling with isolates and Futures. All I want is iterating through a list of urls, which will return JSON arrays of anything. And then funnelling all JSON array items into my own list of items in an async way. I am not sure how to proceed, but it seems *_fetchAndParse()* is not

February 28, 2019 at 04:26AM by dimi...@gmail.com
https://ift.tt/2UakiYp
New post on Flutter Dev Google group:

built_value json serialization
Hi Dart dev team, I was watching the Episode 2 of "The boring Flutter development show" on data serialisation using built_value (thank you guys for putting together a good

February 28, 2019 at 08:25AM by Archan Paul
https://ift.tt/2IFFLal
New post on Flutter Dev Google group:

How do you handle navigation in your projects?
Hi everyone! How do you handle routing in your projects, i.e. conditional builder, Navigator (named or not), nested Navigators etc.? I think there are many options and new ones (as myself) might have troubles picking the best way for their projects so some examples would be useful. Cheers!

February 28, 2019 at 09:49AM by Ciprian Amariei
https://ift.tt/2Vt1C6F
New post on /r/flutterdev subreddit:

data_tables | Plugin to show List View on Mobile, Data Tables on Tablets & Desktops
https://ift.tt/2BRdFTF

February 28, 2019 at 09:37AM by Purple_Pizzazz
https://ift.tt/2NBZ43u
New post on /r/flutterdev subreddit:

2 short questions: naming and code (function) splitting
I used to have most of my application code inside main.dart and make heavy use of code folding, which I later on realized is kind of a bad practice. Now I switched to splitting up code into a lot of files. My question:​Would it be considered a bad practice to split up functions that are too big for my liking (i like to keep all of a function's code well visible without scrolling) into multiple helper functions that I name after what they do in the main function and keep all of them in a util.dart file, which I have one of for every screen and for every bloc corresponding to a screen?​Thanks for your attention.

February 28, 2019 at 11:27AM by footurist
https://ift.tt/2tHP7Z2
New post on Flutter Dev Google group:

qr code reader in a container
i need to scan a qr code and i want to open the camera in widget like a container or popup something like that

February 28, 2019 at 02:25PM by hani.abd...@gmail.com
https://ift.tt/2VpQnvy
New post on Flutter Dev Google group:

Could you recommend a library or method to recognize a Rectangle from a picture?
I'm looking for a library to crop a rectangle from an image. Basically I would like to crop automatically a business card. OpenCV is only on Android :( Thanks Alain

February 28, 2019 at 02:39PM by alain....@adixon.fr
https://ift.tt/2IGMReI
New post on /r/flutterdev subreddit:

Flutter CI with Bitrise - A quick walkthrough based on the Voice Flutter project, by Google GDE Joe Birch
https://ift.tt/2EuDtpx

February 28, 2019 at 02:50PM by HHendrik
https://ift.tt/2T5Dha5
New post on /r/flutterdev subreddit:

VS Code extension adds Dart DevTools integration for a Flutter Inspector 🎉
https://ift.tt/2BYS3Vy

February 28, 2019 at 03:12PM by DanTup
https://ift.tt/2U8FOwU
New post on Flutter Dev Google group:

shared_preferences in and out of Android Settings App
Does anyone know how to get user Preferences (only some of them) from our app to appear in the Settings app area? We figured out how to do this for iOS (and what a PITA that was) -- but we have no idea on how to do this for Android... We have a critical need for the user to be able to set some

February 28, 2019 at 04:04PM by Steven McDowall
https://ift.tt/2EifJ7L