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

I miss coverage data in Android Studio - what gives?
No matter what I seem to try, I can't display coverage data in Android Studio. There seems to be no option to run Flutter tests for a whole directory (test) and collect coverage.Per-test coverage collection is ran with dart command instead of going through flutter shell, so they fail, can't run.When running flutter test --coverage from command line, I get lcov.info in coverage directory. One of two things happen:Choose coverage suite to display ui doesn't pick it up and can't manually add it either for whatever reasonIf it does pick it up and can select it, Android Studio displays coverage data as though there were no lines covered whatsoeverIn my opinion, this seems such basic thing nowadays that I'm suprised I find myself on reddit asking people for advice and giving a shout out to the dev team to look into this.In an ideal world:I hit (re-)run tests with coverageAndroid Studio knows it's a Flutter projectRuns flutter testsBeing pretty and all that, gives me color coded feedback in code files what I missedQ: am I missing something (I can't put it past me that I do)?​Currently useing Flutter 1.5.4 with Android studio 3.4.edit: formatting

May 16, 2019 at 09:20PM by daniel-vh
http://bit.ly/2VF3zkS
New post on /r/flutterdev subreddit:

Flutter Project Structure
How do you structure your Flutter projects? Take the case of a relatively small app(first app), with http and using the provider package for state management.

May 16, 2019 at 10:23PM by mcalila
http://bit.ly/2JnYl6A
New post on /r/flutterdev subreddit:

Decode ListView: An in-depth look at Flutter’s ListView Widget
http://bit.ly/2JrTGAy

May 16, 2019 at 11:37PM by Purple_Pizzazz
http://bit.ly/2JGXRaS
New post on Flutter Dev Google group:

Json parse String
Hi I'm trying to return a string value from a json field how could I do this? {"data":[{"name":"Taylor","phone":"555-5555"}]} Future getDate(String city, String uf) async { http.Response response = await http.get("http://json.com"); data = json.decode(response.body); setState(() {

May 17, 2019 at 03:25AM by Israel Ribeiro
http://bit.ly/2Wf0hVa
New post on /r/flutterdev subreddit:

Boring Flutter Project
Here is the repo https://github.com/xieweizhi/flutter_classic_kit​I know it's somewhat not that useful. But I learned something from itCustom paint usageCustom modal transition with animationAsync widget with FutureBuilder, StreamBuilder.​Have fun with Flutter!

May 17, 2019 at 02:53AM by xieweizhi
http://bit.ly/2Ee9B1c
New post on /r/flutterdev subreddit:

dashed_container | Flutter plugin to create dashed line around widgets.
http://bit.ly/2WUU2mx

May 17, 2019 at 03:53AM by phucgaoxam
http://bit.ly/2EbiKYg
New post on /r/flutterdev subreddit:

A few things I've discovered about TextInput and CupertinoTextInput
So, coming from React Native one thing that I really appreciate about Flutter is having UI that looks the same on both iOS and Android.In a project I'm working on I've taken steps to keep certain iOS specific UI on iOS and android specific UI on Android.However, there are times where I want the look to be the same and one place I've struggled with this is TextFields.​https://imgur.com/pPXguCCLooking at the image I've provided you can see what I'm talking about.For each platform in the image above, the top text field is cupertino, the bottom is material, shown with and without baselines.​I really like the look of the CupertinoTextField for a few reasons. Text is centered in the text field, and so are any suffix/prefix icons. That's exactly what I want. Having the icons not center really really bugs me, and this app for the most part is a branded app where there isn't much 'Material' look or 'Cupertino'.​However, as you can see in the Android part, the cupertino textfields look different. The placeholder gets cut off and the size of the textfield is shortened. Cupertino uses a box decorator instead of an InputDecorator that has height. This isn't respected in Android. Cupertino also lacks the contentPadding field which would probably fix the weird look. One real nice thing about cupertino too is the prefixMode and suffixMode where you can determine how that icon gets displayed. always editing not editing never​The Material TextField looks perfect on both iOS and Android but there is no way to manage the positioning of the icon which is kind of annoying. You can see how the icon sits above the baseline in the images with the baselines.​Now, elsewhere, I've recreated this textfield using a container handling border and shadow, a row containing the text field without a border, and the icon that is conditionally rendered. However, it's kind of a lot of work around to get a certain look, when one does this perfectly in one widget (Cupertino) but looks like garbage on Android, and one that lacks some control over prefix/suffix (Material).​It doesn't really make sense to me why Cupertino lacks contentPadding or why on Android, certain properties get ignored and why Material forces you into a Material look without the ability to customize everything you want. That's the main thing about Material that is argued, you can customize it however you want.These are some oddities I've noticed. Obviously I'm going with my hand rolled look because it does exactly what I want on both platforms. Just thought I'd share.

May 17, 2019 at 05:38AM by puglife420blazeit
http://bit.ly/2VIHwtC
New post on Flutter Dev Google group:

Version Mismatch error
Hi I am using flutter 1.2.1 version but i have try to use *location: ^2.3.5 * i am getting error what i have attached image in the attachment could you please anyone help me to continue my development

May 17, 2019 at 06:06AM by Arulanantham Sivatharan
http://bit.ly/2VyftZ7
New post on Flutter Dev Google group:

Authentication does not work on builds with proguard enabled.
Hello, all I released an app recently and I am working hard to market it but it seems that the few people who do find the app are not able to authenticate. Which is obviously making my marketing attempts pointless. A normal release build does allow for authentication. I could obviously just

May 17, 2019 at 06:45AM by David Serrano
http://bit.ly/2VzFVS8
New post on /r/flutterdev subreddit:

permission_handler | Permission plugin for Flutter. Provides a cross-platform (iOS, Android) API to request and check permissions.
http://bit.ly/2JGy174

May 17, 2019 at 09:37AM by Purple_Pizzazz
http://bit.ly/2Js1Sk7
New post on /r/flutterdev subreddit:

Created a simple cat catalog app using flutter for practicing
As a user, you can - view cats of different breeds - filter by tags - search by simple keyword - like your favorite cat(s) - read further information on WikipediaMore details please check the Github![the cat book](https://github.com/gnehcc/cat-book/blob/master/the-cat-book.gif)

May 17, 2019 at 11:32AM by gnehcc
http://bit.ly/30t4raX
New post on Flutter Dev Google group:

flare animation not working perfectly
Hi all, I am trying to incorporate flare animations downloaded from 2dimensions in my flutter project. I am using flare_flutter: ^1.5.0. For some animations, it works perfectly fine but for some of them it does not work properly. It does not show anything and gives the following error. Kindly

May 17, 2019 at 12:52PM by Niladri Paul
http://bit.ly/2w6dAIG
New post on /r/flutterdev subreddit:

Quick but useful Chrome extension for pulling packages from pub.dev (Firefox version in comments)
http://bit.ly/2Hwj44T

May 17, 2019 at 03:56PM by semajames
http://bit.ly/2VHezyd
New post on /r/flutterdev subreddit:

A simple weather app inspired by Weather App with “flutter_bloc” but using Remi Rousselet's "Provider package" to share state.
http://bit.ly/2Holqnj

May 17, 2019 at 05:10PM by EngineerScientist
http://bit.ly/2LQHwDa
New post on /r/flutterdev subreddit:

Newish to Flutter but I find state management to be really poor. I wish there was a more comprehensive "official" solution.
Right now state management seems really fragmented (vanilla, BLoC, scoped, provider, redux, mobx, and more). Even within those options (like BLoC), there are many ways to implement it. I know no solution will ever work for everyone, but I feel like 95% of people would happy with an official solution that's pretty good instead choosing between 10 different libraries or patterns for something perfect.In the end I chose MobX-flutter, which appears to just be a slightly worse version of MobX-react.

May 17, 2019 at 06:53PM by big_z_00
http://bit.ly/2HBEYnn