Flutter Heroes
25.8K subscribers
272 photos
2 videos
31.1K links
Download Telegram
New post on Flutter Dev Google group:

Clear errors in Stream
I created a login page with email/pass fields tied to streams. When I click the login button and the fields are invalid, the errorText will display the error coming from snapshot.error. What I'm trying to do is clear the error so that the errorText goes away when the login fields animate back

February 08, 2019 at 06:29PM by march
http://bit.ly/2Sj0S6U
New post on /r/flutterdev subreddit:

Just published auto-generated materialdesignicons.com Flutter icon library.
https://github.com/csharad/mdi-dart​Generated the glue-code using the SVG icon file and loaded the already provided ttf icon font.

February 08, 2019 at 07:41PM by sharcnd
http://bit.ly/2Gu6KTM
New post on Flutter Dev Google group:

platform_view with support for SurfaceView in android
As per documentation of *platform_view* , The embedded Android view is painted just like any other Flutter widget. Does that mean, we don't get surface callbacks for SurfaceView ? *We are playing DRM contents on ExoPlayer and we need SurfaceView for that .* Will flutter's platform_view help us in

February 09, 2019 at 06:07PM by karthick chinnathambi
http://bit.ly/2Bt86uJ
New post on /r/flutterdev subreddit:

Background callbacks and activity
Hi,I am creating a Flutter App, but I have some questions about the background activity. My idea is to check to local database (sqflite) and if it has data, send to server if the phone has Internet connection.
First, how can I put code running in background while the App is running ?Second, how can I put code running in background while the App is idle or closed ?Third, its possible (if the app is turned off) to have a callback that detected that the phone has connection or not, and send the data i want to server? Do I need specific platform code to do that ?

February 09, 2019 at 06:20PM by mamen2022
http://bit.ly/2Sndrhm
New post on Flutter Dev Google group:

How to pass info depending on wich button is pressed?
I could really use some help here.... I have been working on this for much too long now. On my screen1 I have 2 buttons: (a 'plus'- and a 'minus'-button). Simplified it is supposed to work like this: '/screen1': (BuildContext context) => new Screen1(), '/screen2': (BuildContext context) => new

February 09, 2019 at 09:52PM by Battleaxes
http://bit.ly/2WTs5vr
New post on /r/flutterdev subreddit:

Alert dialog form to collect information?
I'd like to create a popup that greys out the current page (very much like the alert dialog) and displays a form to fill out. It should also be scrollable if needed.Is it possible?Any help is appreciated.Thanks!

February 09, 2019 at 09:51PM by SocialMammoth
http://bit.ly/2Buu0O0
New post on /r/flutterdev subreddit:

How to deeplink into the Facebook app
I had a really hard time figuring out how to launch the Facebook app to a specified profile or page, while falling back to a webview if the app is not installed. Now that I figured it out, I thought I'd share my technique.You'll need the url_launcher package, and you'll need to know the FBID of the profile/page you want to launch. I used https://findmyfbid.com/ but there are plenty of other ways. #### represents the FBID.Then you'll construct two URLs: fbProtocolUrl = "fb://profile/####"; for a profile or fbProtocolUrl = "fb://page/####"; for a page, plus a fallback: fallbackUrl = "https://www.facebook.com/####"; (this one is the same regardless of profile/page, and you can also use https://www.facebook.com/reddit etc. if you want, but the fb:// one seemingly has to be by ID.Then:
try { bool launched = await launch(fbProtocolUrl, forceSafariVC: false); if (!launched) { await launch(fallbackUrl, forceSafariVC: false); } } catch (e) { await launch(fallbackUrl, forceSafariVC: false); } 
We do not use await canLaunch() because it produces false for the fb:// URL even if that URL will actually work with launch(). The if (!launched) branch runs on iOS if the Facebook native app isn't installed, while the catch block runs on Android if the Facebook native app isn't installed.This works on both Android and iOS, with or without the Facebook native app installed. It's the simplest way I could find that met all of those criteria. Hope this helps!

February 09, 2019 at 10:16PM by jonah214
http://bit.ly/2GwZKp7
New post on Flutter Dev Google group:

Using Firebase Plugins while supporting >18 SDKs
Hello everyone! I have been stuck at an issue for several hours with no respite and I need help! Yes, I have religiously followed all the recommended suggestions and its becoming a little bit tiring. So, I am following the official recommendations of adding firebase to a brand new flutter

February 09, 2019 at 11:46PM by Olawale Alabi
http://bit.ly/2GisSkD
New post on /r/flutterdev subreddit:

Google_maps_flutter markers as widgets
I just don't see why the markers have to be images instead of Widgets? Widgets are the most powerful building block in Flutter but for some reason we can not make our custom dynamically generated markers on the map. At the same time we can use the google_maps_flutter widget just like any other one and even can put it in a scrollable list view.

February 10, 2019 at 03:31AM by aytunch
http://bit.ly/2MW1E3X
New post on /r/flutterdev subreddit:

Do you think that bloc package is a good way to implement BLoC pattern in my apps? http://bit.ly/2T34XIs
No text found

February 10, 2019 at 05:03AM by Basketball-ICO
http://bit.ly/2teaCAl