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

Super Enum v0.4.1 released.
We added support for collections and other generic data types. (eg: List<String>, Map<String, int>)Thanks to our new collaborator @passsy, we now have a brand new annotation #UseClass to reuse existing classes directly as a union type.For migrations and examples checkout => Super Enum

February 05, 2020 at 08:30PM by xsahil03x
https://ift.tt/2GZgYuo
New post on /r/flutterdev subreddit:

Any recommendations for handling User Generated Content?
I am developing a social reading platform in flutter - so you can read books and comment on them and see other people's comments as you read. It's pretty simple, but obviously there are some considerations to be made for the user-generated-content as it is meant to be a public platform. I was wondering if anyone has experience doing this with flutter, and complying with both Apple and Google's guidelines on the matter, in a relatively bare-bones way?Google says:(paraphrased)- have TOS and define what inappropriate content is- implement "robust, effective and ongoing UGC moderation", followed by "as is reasonable and consistent"- be able to report users, and block abusive users from the platform- prevent monetization from "encouraging objectionable behavior"​Apple Says:- a method of filtering objectionable material- a mechanism to report users and block abusive users from the platform- publish your contact info​My impression from reading this is that Google's guidelines are somewhat more strict than Apple's. But apple's first point seems to be something that Google doesn't require - if that means have a direct filter in the app itself to, say, detect if a user has entered a bad word from some pre-defined list?Also, what exactly does 'robust, effective, and ongoing moderation' mean? Is that something more / different than each user having the ability to report another user, and giving the top-level moderators access to a list of those reports + the ability to remove a user and his posts?My plan was to have new users' first 10 comments automatically submitted for moderation before they are publicly displayed. And after 10 comments, they can become (level-1) moderators themselves, their posts are submitted automatically (self-approved), and they can approve/disapprove of other new users' posts. And on top of that are users who have a more complete set of moderator actions, like viewing reports, deleting inappropriate usernames, and stuff like that.Any advice, feedback, experience, or thought on what to consider is appreciated!

February 05, 2020 at 08:21PM by definitely_robots
https://ift.tt/2ukR9C8
New post on /r/flutterdev subreddit:

App Store rejection based on trademark infringement
My app got rejected for containing pub.dev in the description/title."Tavern - A pub.dev client"I feel it's important so people know what it is. Does this really violate trademark rules? I read them and couldn't find any information verifying this. Is there a small change I can make to make this acceptable while keeping pub.dev in the name?Apple says:Guideline 4.1 - Design - CopycatsYour metadata appears to contain third party content. Specifically, your app name contains the trademark term pub.dev in an inappropriate manner. It would be appropriate to revise your app name to address this trademark issue.

February 06, 2020 at 02:07AM by _thinkdigital
https://ift.tt/2GZnH7u
New post on /r/flutterdev subreddit:

In provider, Selector's value is immutable and if I want notifi to rebuild, it must be return clone of origin value and Does it have a performance problem?
When I use selector new value must be clone of old value.
in Notifier:
List<bool> get items => List.from(item); 
=> rebuild normal.
But
List<bool> get items => item; 
=> not rebuild.
so items always copy from origin item when I call notifiListener() and it take O(n) to copyDoes it have a performance problem?

February 06, 2020 at 03:51AM by tbm98hi
https://ift.tt/3b9HsY1
New post on Flutter Dev Google group:

[Breaking Change Proposal] CustomPaint can't set raster cache hints with null painters
If your app does not use CustomPaint, you can stop reading now. *Summary* In the proposal (https://ift.tt/31vnTET), if one builds a CustomPaint widget with null painter and null foregroundPainter, then the assertion would trigger if isComplex or willChange is set to true.

February 06, 2020 at 11:00AM by Yuqian Li
https://ift.tt/373td3q
New post on /r/flutterdev subreddit:

What is Flutter Web more akin to, Svelte or React/Vue?
Hello community, I am about to start a small project but I'm still looking for information about what framework to use. Does Flutter Web has a virtual DOM like React or Vue, or is its approach more like Svelte's "disappearing framework"?

February 06, 2020 at 11:01AM by rraallvv
https://ift.tt/2Sq0twv
New post on Flutter Dev Google group:

About Printing of Values
Hey there, How to print values of a loop/list using Text Widget in flutter?

February 06, 2020 at 12:28PM by Muhammad Ali
https://ift.tt/2H0fZtP
New post on Flutter Dev Google group:

Getting the size of Children for a custom Wrap Layout
I want to build a Wrap Layout, where children are (after placing them in their respective rows) are flexible, so they fill the total width available, as if they where Flexible. I understand that there would be a performance penalty when rendering the children twice, but I would like to do it in

February 06, 2020 at 06:01PM by Roland Fredenhagen
https://ift.tt/39ifd7L
New post on /r/flutterdev subreddit:

MultiBlocProvider
Hello,I'm trying to use the new MultiBlocProvider (instead of old nesting BlocProvider) from package bloc​I had success with the old method but I can't adapt to the newWhen I click on the button I want to open a form CategoryFormDialog() , this form must have access to the bloc so I put him in the child of the MultiBlocProviderBut all I have is the famous error "BlocProvider.of() called with a context that does not contain a Bloc of Type CategoryBloc.No ancestor could be found starting from the context​If you have an idea it would be cool !class _MyHomePageState extends State<MyHomePage> {Widget build(BuildContext context) {return Scaffold(appBar: AppBar(),body: MultiBlocProvider(providers: [BlocProvider<CategoryBloc>(create: (BuildContext context) => CategoryBloc()),],child: ListView(children: <Widget>[FloatingActionButton(onPressed: () {showDialog(context: context,builder: (BuildContext context) => CategoryFormDialog(),);},child: Icon(Icons.add),)],),));}}

February 06, 2020 at 06:26PM by IpreferWater
https://ift.tt/2UGGxIT
New post on /r/flutterdev subreddit:

Flutter build process (preventing conflicts within dependencies, etc)
Does anyone know of an overview of the flutter build process? How it works, what runs first, in what order dependencies are compiled, how conflicts are resolved? Understandably, there are a ton of moving parts given what flutter offers. Especially if you start using plugins. Some of those plugins might call other native specific plugins, and so on. Each of these modules can have different build "requirements".List of moving parts as far as I can tell:build tools/processes used:pub (dart)gradle (android)cocoapods (apple)​uses Android X (yes/no)flutter SDK version range​gradle versioncompileSdkVersionminSdkVersiontargetSdkVersion​swift_versionios.deployment_targetplatform(honestly not sure what these 3 are but i've seen them in different places)So, as far as I can tell, (1) your flutter app, and (2) each it's dart/pub packages, and (3) all of their gradle/cocoapods dependencies could have their own and potentially conflicting settings.How much do we have to worry about this?There's no way that you can easily catalog each and look for conflicts.Which one takes priority? What happens when there are conflicts? For instance, what if my app's minSdkVersion is 19, but a dart/flutter plugin calls an android dependency that requires version 21? Would my app still compile (what about install and run)? What happens when it runs on a device running 19 that tries to use functionality provided by that plugin (not available until 21)?All is great now that I have my app running on my samsung s9 and iphone X for testing, but how in the world can I be sure there aren't some problems that would happen on other devices in the wild (with different OS versions, etc). I know I could theoretically create emulators for each OS for android/ios, but still i dont if that's enough to truly test for this.I think I could rest better understanding the role that each of these technologies play and how to be safe to ensure there are no conflicts.Thanks!

February 06, 2020 at 07:59PM by pickleback11
https://ift.tt/31tXibu
New post on Flutter Dev Google group:

Seeking pointers or examples of Flutter app, with firestore and back-end data analytics
Hi, I'm building an app to collect data on mobile phones and perform some analytics at the backend, then present the visualization of the outcome from the analytics on the mobile phone. The database that I'm considering is Firestore. I'd like to learn the best practice and the extent of

February 06, 2020 at 09:13PM by Yu Shen
https://ift.tt/38hb7wg
New post on Flutter Dev Google group:

opening app on Mac shows blank page
I have an app that opens html page. On iOS if app is closed and html is opened with it, the first time blank page is loaded. On all following times html content loads fine. This behavior is not observed on Android. Important parts of the code are here https://ift.tt/2GZ10QU

February 07, 2020 at 02:35AM by Alex Kravets
https://ift.tt/2UucovY
New post on /r/flutterdev subreddit:

VSCode shortcut/extension for autocompleting parameters?
Sometimes when I watch flutter tutorials the youtuber presses a shortcut and an small popup with all the parameter options comes up, they are able to scroll to the option they want and click on it.This is similar to the "parameter hints" shortcut but not the same.As a follow-up, sometimes a parameter takes an implementation of an abstract class. Whats a quick way to search up all implementations of that abstract class in the flutter sdk.For example, im using the charts_flutter package, and want to specify a TickProviderSpec, but instead of the base tickproviderspec im supposed to specify a class which implements it. I want to know all the implementations of that class, since sometimes the implementation doesn't have the base class as part of its name autocomplete doesnt help.

February 07, 2020 at 03:04AM by Shazamo333
https://ift.tt/39ebXdl
New post on Flutter Dev Google group:

CONSUMMING APIs From RapidApi web services
Hello Everyone I will Like to Know If Making Api request from Rapidapi.com can be done in flutter as they do not provide any documentation on the Dart Language.. any help will do thanks

February 07, 2020 at 04:32AM by top appz
https://ift.tt/3744axl
New post on Flutter Dev Google group:

dartpad
we are creating a flutter tutorial website is there any way to integrate dartpad into my website

February 07, 2020 at 06:53AM by programmer
https://ift.tt/2up0RDy