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

How to know which TextTheme entry is used?
I had the exact same problem as this guy: https://stackoverflow.com/q/50619848/769006 I wanted to change the AppBar title color by using the app theme for the sake of consistency.Thanks StackOverflow, the top-upvoted accepted answer is the right one. I have to change the headline6 style (formerly title) of the primaryTextTheme. Boom, problem solved!Now I'm wondering... How could I know that by myself if a similar problem rise in an other Material widget?The link between the "headline6" and the AppBar title is not super obvious. The AppBar documentation page doesn't mention anything about that, neither does the title doc page.By reading the source code, I finally found the link between the AppBar and the primaryTextTheme in the AppBarTheme#textTheme doc but even here, there is no information about which key of the TextTheme is used...Am I missing something here?

May 23, 2020 at 04:44AM by ncuillery
https://ift.tt/3gfmR7e
New post on /r/flutterdev subreddit:

Quick & Easy: Create a Gradient / Image overlay/Mask (Like burning text effect) to any Flutter Widget with ShaderMask. [See the snippet and output]
https://twitter.com/erluxman/status/1264034430517014528

May 23, 2020 at 05:28AM by erluxman
https://ift.tt/2LSISKV
New post on Flutter Dev Google group:

Idea for sending direct message from user to user...
He guys, Suppose I want to make an uber clone in flutter, I want to send drivers notification about a ride when an user orders one. I am using firebase as backend to store and retrieve data and also to figure out the nearest drivers. But I am stuck at sending the driver a message of an user

May 23, 2020 at 07:07AM by Souvik Dutta
https://ift.tt/3bYf7Tu
New post on /r/flutterdev subreddit:

How to create ImageShader in Flutter?
I was playing with ShaderMask and it accepts two types of Shaders
Gradient & ImageShader 
I can create Gradient Shader like this :
LinearGradient(colors: <Color>[ Colors.deepOrange, Colors.blue, Colors.green, Colors.amber, ]).createShader(bound) 
but I couldn't find a way to create ImageShader.When I try to create it like this :
ImageShader( Image.network( "https://product-image.juniqe-production.juniqe.com/media/catalog/product/cache/x800/401/62/401-62-101P.jpg", ), TileMode.mirror, TileMode.mirror, Float64List.fromList([1.0, 1, 0, 1, 1, 1, 1, 1, 0])); } 
it says : Argument type widget/Image can't be assigned to parameter type ui/Painting/ImageI know these two Images are different but I couldn't create ui/Painting/Image from widget/Image.Also there might be an intuitive way to create ImageShader?What is the right way to crate ImageShader in Flutter?

May 23, 2020 at 06:19AM by erluxman
https://ift.tt/3cS0RNs
New post on Flutter Dev Google group:

Error while creating new flutter application
Hi Team, May i have your assist Am trying to create new flutter application and am not able to set (flutter SDK path) please could you check attached.

May 23, 2020 at 08:18AM by Ahmed Mohamed Magdy
https://ift.tt/2yql9yA
New post on /r/flutterdev subreddit:

Flutter for Web Poor Performance
I have decided to try building a simple web page using Flutter because I read a lot of articles and saw a lot of videos saying how fast and how good it is in comparison to other frameworks.I used PageView to do a 10-page website with text and images but it turned out to be horrendous. All the photos are loaded via assets and not from the outside network but the pages are choppy and laggy. My scrolling looked like 5fps as opposed to the 60fps as promised.For those who have experience making web via Flutter, do you find this a problem or is it just me not doing it right? Check this site hosted on Firebase at bliltz.web.app

May 23, 2020 at 09:06AM by grunddit
https://ift.tt/2LQbDb1
New post on Flutter Dev Google group:

Always two widgets in Row
How is it possible if I have a list of widgets, but the count of widgets in the list varies. And now I always want two widgets in one row. So actually a column and in it several rows with always exactly 2 widgets. If you are not sure, please let me know.

May 23, 2020 at 11:26AM by Jonas Riesen
https://ift.tt/3cXg7sh
New post on Flutter Dev Google group:

How can I mock Platform.isIOS?
I have a function that depends on what platform you are on. How can I build a test that mocks Platform.isIOS to return true?

May 23, 2020 at 02:44PM by Jeff Jorczak
https://ift.tt/2LPpQVX
New post on /r/flutterdev subreddit:

Charting Package for Flutter
I needed to add charting capability for my app, and chats_flutter appears to tick most of the boxes. But the repo looks like its no longer being maintained by google, and in a reply to a PR someone had said that the team that had worked on it has moved onto other work at google.Are there any other chart libraries that you would recomend for flutter worth looking at which is actively maintained, and provides documentation - I've already tried fl_charts.

May 23, 2020 at 03:45PM by ifndefx
https://ift.tt/2Xqa0X0
New post on /r/flutterdev subreddit:

I developed a Mask detection app please give me suggestions.
Play store:https://play.google.com/store/apps/details?id=com.aniket.maskdetectorSource code:https://github.com/AniketSindhu/mask_detector

May 23, 2020 at 03:43PM by Amazing_Aniket
https://ift.tt/36nlZsq
New post on Flutter Dev Google group:

Does the R8 code shrinker make obfuscating by default?
Here is a quote from *Build and release an Android app* R8 is the new code shrinker from Google, and it’s enabled by default when > you build a release APK or AAB. Does it mean that R8 makes obfuscating by default? If it is so, then why later in the *Build an APK* section the docs says If

May 23, 2020 at 05:59PM by Andreas
https://ift.tt/2ZxcBRx