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

setState() or markNeedsBuild() called during build flutter_bloc and provider mix?
Hello, I am using provider and flutter_bluc in my app. Right now I am struggling with this case: A new state is passed to BlocBuilder, which rebuilds part of the Widget Tree UI. What I want is to also update my bottomNavigationVisibility, which extends ChangeNotifier. I use this bottomNavigationVisibility for updating another part of the widget tree. That way I could easily achieve good separation logic for my UIViews IMHO.
However, right now I am always getting this error:
setState() or markNeedsBuild() called during build.Here are the code samples:
 @override Widget build(BuildContext context) { final bottomNavigationVisibility = Provider.of<ProviderBottomNavigation>(context); ... Container( height: 60.0, child: BlocBuilder<SoundsblocBloc, SoundsblocState>( condition: (previousState, state) { if (previousState is InitialSoundsblocLoading) return true; return false; }, builder: (context, state) { if (state is InitialSoundsblocLoaded) { if (state.sounds .where((sound) => sound.focused) .toList() .isEmpty) { bottomNavigationVisibility.isVisibleT(false); } else { bottomNavigationVisibility.isVisibleT(true); } } return ListView.builder( itemCount: listOfSounds.length, ... })), 
class ProviderBottomNavigation extends ChangeNotifier { bool _isVisible = false; bool get isVisible => _isVisible; void isVisibleT(bool val) { _isVisible = val; notifyListeners(); } } 
How should I change my code to update my ChangeNotifier from the widget, after a particular bloc state was returned?Also, could I be wrong and using the Provider for separate UI parts with flutter_bloc is a bad combo? Sorry, if I am really wrong, but state management gives me headaches :(

January 22, 2020 at 08:57PM by wellbranding
https://ift.tt/2tw2gbf
New post on /r/flutterdev subreddit:

How could I stop my app from scaring Play Protect?
Just compiled my first release build and Play Protect really doesn't like the APK. Do I need to verify my Java signature or something?

January 22, 2020 at 09:59PM by UnicornsOnLSD
https://ift.tt/37jpeRt
New post on /r/flutterdev subreddit:

Can we have a weekly or monthly self promotion day?
/r/Apple has a self promotion Saturday and it's working great. I believe this could work here as well. Some people (me included, not gonna lie) want to earn a few bucks with their apps and it's sad that they can't share their work on this subreddit.With the right rules we could have self promotion without turning /r/FlutterDev into an advertising platform. The first and most important being that it would only be allowed on certain days. Here are a few other suggestions:- the author has to list the packages he has used- he has to explain which state management solution he has used- he should share the problems he has faced and how he managed to solve them- he should share some code snippets

January 22, 2020 at 09:36PM by EibeMandel
https://ift.tt/2tHNUoa
New post on /r/flutterdev subreddit:

Is it a good idea to look for a Flutter Dev on Upwork?
So basically after 6 years of work as an Android dev I have this idea of my own app that I want to build with Flutter and Firebase. The thing is that I work full-time so have very limited time to do this after hours which is why I consider finding a contractor to do this for me. This time I would prefer to take care more of the business side of things not technology. Given that I have a lot of experience in Android and software engineering in general and I also know Flutter and Firebase I should be able to evaluate the quality of his work. Do you think it is a good idea to outsource such work through Upwork or similar platforms or will I just waste my time and money and not get anything of reasonable quality in return, which seems to be a common scenario in such situations?

January 22, 2020 at 09:35PM by WojciechSadurski
https://ift.tt/38H4CmD
New post on Flutter Dev Google group:

C++ is not rebuilding for Android side. Works fine for ios
I've been trying to follow the instructions for using C++ in a flutter app. They are incomplete as is but I was eventually able to get something running with a flutter app and a flutter plugin that used a c++ function from within the plugin. Now, when I change the C++, the iPhone build sees

January 22, 2020 at 10:16PM by Larry Weinberg
https://ift.tt/2RLlIbQ
New tweet from FlutterDev:

🤷&zwj;♀️Which animation widget is right for the job?

AnimatedBuilder, AnimatedWidget, or something else? Using the right animation widget for the job will make your life sooooooo much easier.

Check out @bouncingsheep's post to learn more &rarr; https://t.co/SzzTDqndny pic.twitter.com/3WwqHbgzcI— Flutter (@FlutterDev) January 22, 2020

January 22, 2020 at 10:51PM
http://twitter.com/FlutterDev/status/1220101791905267712
New post on /r/flutterdev subreddit:

How customizable is the theming/look of an app built with flutter?
Hi all,New to flutter and mobile development in general. Creating a simple marketplace of sorts and just wondering if I am giving up any branding/looks by using flutter. It seems like many of the built in cross platform components use material design and I’m just curious if that will limit my styling abilities compared to native iOS.Thanks!

January 22, 2020 at 10:29PM by mphard
https://ift.tt/30SqFE8
New post on /r/flutterdev subreddit:

Flutter Internals: a (free) book that explains how Flutter works.
I'm excited to (FINALLY!) release a free, open source "book" on how Flutter does what it does:https://www.flutterinternals.org/I posted about this project a few weeks back and was blown away by all your amazing feedback and support.It's taken a bit to find a way to continue expanding and revising the text in a collaborative, community-driven way -- but with your advice (and GitBook's generosity), I'm proud to share Flutter Internals with everyone today.The book is a bit more like SparkNotes than an actually programming text, but hopefully the material and explanations are still insightful. My hope is that the content is comprehensive and easily understood without being too wordy (or taking too long to read).Last but not least: please check out the "Get Involved" page -- I think this is a resource that will only become more valuable and useful with the community's support.Looking forward to your feedback (and please consider joining as a contributor!)

January 22, 2020 at 10:10PM by t3mp3st
https://ift.tt/2NOYocj
New post on /r/flutterdev subreddit:

Recording a video ?
Hello EveryoneI was wondering If there's a tutorial or an online guide on how to create a real quick video recording app on Flutter please ?thank you so much for your support guys

January 22, 2020 at 11:26PM by TheRogue2020
https://ift.tt/2TPA0Le
New post on /r/flutterdev subreddit:

Flutter representation of a full Restaurant UI KIT.
https://ift.tt/2va1LUt

January 22, 2020 at 11:55PM by JideGuru
https://ift.tt/30JHcdv
New post on /r/flutterdev subreddit:

How to make a curved navigation bar static so that when the page changes it stays at the bottom?
title

January 23, 2020 at 02:22AM by jonfromthenorth
https://ift.tt/38HQfyr
New post on /r/flutterdev subreddit:

Are there any development firms or freelancers who develop in Flutter for web?
No text found

January 23, 2020 at 04:03AM by workquicklyandrevise
https://ift.tt/2NSVrr1
New post on /r/flutterdev subreddit:

[RESULTS] I'm doing a little research about Flutter's learning curve
Thank you for those who responded to the survey in this postAs promised here's the result :)Enjoy guys!

January 23, 2020 at 04:18AM by crinkle_danus
https://ift.tt/2RHijuJ
New post on Flutter Dev Google group:

flutter_webview_plugin is not supported for web apps!
I have been trying to write a web app where I am going to open a different website in my web app. Now, on the flutter_webview_plugin main page it says this plugin can work in web apps, but seriously this is not the case. So is there anyway to make the plugin work in web apps? Best,

January 23, 2020 at 05:07AM by Alpha
https://ift.tt/30LiTM9
New post on /r/flutterdev subreddit:

Flutter Design Patterns: An overview of the Prototype design pattern and its implementation in Dart and Flutter
https://ift.tt/2RhrP8X

January 23, 2020 at 08:13AM by mkobuolys
https://ift.tt/37lfxC6
New post on /r/flutterdev subreddit:

Send data to another phone via bluetooth and/or hotspot
I am doing an application that have two modes (server and client) where the client should send a simple string of any value to the server. Do I use UDP? sorry I am new to this. How do I make this work? Thanks in advance!

January 23, 2020 at 09:42AM by smort_potato
https://ift.tt/2Gfbqf1
New post on Flutter Dev Google group:

Http requests throw XMLHttpRequest error for flutter web
Hi I am creating a rss feed reader web application using flutter web. This app makes calls to public rss feeds provided by different providers. I am using Http get to make a call and it throws XMLHttpRequest error. I am unable to get any response. Could you kindly let me know how to resolve

January 23, 2020 at 01:49PM by Sreekanth Reddy
https://ift.tt/2TPL2jO