Flutter Heroes
26.1K subscribers
272 photos
2 videos
31.1K links
Download Telegram
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
New tweet from FlutterDev:

Raise of hands for who wants Flexible content within rows and columns? 🙋‍♀️🙋‍♂️

Use the Flexible widget to adjust the relative size of your children widgets.

Click here for more #WidgetoftheWeek tips! ↓ pic.twitter.com/JZs6fy9KdY— Flutter (@FlutterDev) May 17, 2019

May 17, 2019 at 08:59PM
http://twitter.com/FlutterDev/status/1129461335421415424
New post on /r/flutterdev subreddit:

Question :: How *heavy* compute() is if called frequently multple times.
I am looking at compute() as a quick way to use threads rather going to long road of creating and managing Isolate instances myself.​But reading the documentation, it will create an isolate behind, and will destroy and clean it after execution is done.​Is there any concept of isolate pool or alike (thread pools)?And what if I need to call compute() frequently for different methods/results?Is it going to tackle and clean every `Isolate` instance or not?And how heavy is it to do so? By heavy say 6-10 different calls in a matter of a second or two.

May 17, 2019 at 08:33PM by dimitar71
http://bit.ly/2Eg0SM3
New post on /r/flutterdev subreddit:

Do you think Flutter and Flutter web could compete with React Native and React?
Hello everyone,I'm quite new with Flutter, I'm actually taking a Udemy course and I'm really enjoying it.But I was wondering if Flutter and the new Flutter_web could be used in companies in the future, I'm seeing a lot of companies that are seeking React, and/or React Native skills.I know that Flutter is really new but do you think Flutter and Flutter web skills could land me a job in maybe 1 or 2 years? Thanks.

May 17, 2019 at 10:22PM by kamilgeagea
http://bit.ly/2JVir7R
New post on Flutter Dev Google group:

dart:convert or json_serializable
I am trying to assess performance using* dart:convert* and *json_serializable*. I am testing same JSON file (~800KB size), and I don't see any performance when using json_serializable? Both perform... meh, or at least slower than say GSON in Anroid. So from performance standpoint only, is

May 18, 2019 at 12:14AM by Dimitar G
http://bit.ly/2LQBQJB
New post on Flutter Dev Google group:

compute() questions
I have a small data layer, which wraps backend apis requests/results and provides expected data (models) entirely from JSON results. Some of these JSON responses are big (~800KB), and I am trying to figure out using *compute()* since it's easier comparing of dealing with *Isolate * directly.

May 18, 2019 at 12:27AM by Dimitar G
http://bit.ly/2Jt8xL8