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

OneSignal notification to open the app and read the article directly
Hello, I'm building a news app and integrating it with OneSignal, I'm able to receive the notification and when I click on it I'm getting the below JSON code OneSignal.shared .setNotificationOpenedHandler((OSNotificationOpenedResult result) { this.setState(() { print( "Opened

June 25, 2019 at 01:13PM by Rabih M. ElBaba
http://bit.ly/2YagkRC
New post on Flutter Dev Google group:

FCM Push Notification
Hello Friends, anyone know how to pass push notification count another stateful widget in a flutter. am using this method for show notification showNotification(var msg) async { var platform; try { String d = msg['body']; String json = jsonEncode(d); print(json); } catch (E) {

June 25, 2019 at 01:37PM by Vishal Kumar
http://bit.ly/2IIZpQL
New post on /r/flutterdev subreddit:

OneSignal notification to open the app and goes direct to article
Hello,​I'm building a news app and integrating it with OneSignal, I'm able to receive the notification and when I click on it I'm getting the below JSON code
this.setState(() { print( "Opened notification: ${result.notification.jsonRepresentation().replaceAll("\\n", "\n")}"); }); 
JSON Response
Opened notification: { "payload": "{ "google.delivered_priority": "normal", "google.sent_time": 1561415365754, "google.ttl": 259200, "google.original_priority": "normal", "custom": "{"a":{"id":"43682"},"i":"b0f4ef57-9556-4163-9e5c-fbcea08b4ce8"}", "from": "800826514709", "alert": "Test Alert", "title": "Test Title", "google.message_id": "0:1561415365759264%e192c215f9fd7ecd", "notificationId": -655945385 I/flutter (30970): }", "displayType": 2, "shown": true, "appInFocus": true, "silent": null I/flutter (30970): } 
And the below code to capture the payload keys
print(result.notification.payload.jsonRepresentation()); 
JSON Response
{ "google.delivered_priority": "normal", "google.sent_time": 1561415365754, "google.ttl": 259200, "google.original_priority": "normal", "custom": "{"a":{"id":"43682"},"i":"b0f4ef57-9556-4163-9e5c-fbcea08b4ce8"}", "from": "800826514709", "alert": "Test Alert", "title": "Test Title", "google.message_id": "0:1561415365759264%e192c215f9fd7ecd", "notificationId": -655945385 } 
My Question is how do I read the Key "notificationId" and "custom"​Thanks in advanced

June 25, 2019 at 01:08PM by jamesleeba
http://bit.ly/2IHSirZ
New post on /r/flutterdev subreddit:

3 reasons why we chose Flutter and why you should too
We just wrote an article about why companies should choose flutter. If you like it, can you give a clap, please.​https://medium.com/@codebase.studio/3-reasons-why-we-chose-flutter-and-why-you-should-too-39aca71796f4

June 25, 2019 at 04:22PM by glancer000
http://bit.ly/2X4dd1i
New post on /r/flutterdev subreddit:

In using Providers, is there a need to setup getters?
I've have two scenarios where a provider has its getters setup and one who has not.
class ProviderWithoutGetters extends ChangeNotifier { int counter; setCounter(int i) { counter = i; notifyListeners(); } 
and
class ProviderWithGetters extends ChangeNotifier { int _counter; int get counter => _counter; setCounter(int i) { _counter = i; notifyListeners(); } 
so when using this in an app, everything behaves exactly the same, ie
Consumer<ProviderWithoutGetters>( builder: (context, provider, child) => Text('${provider.counter}') ) 
and
Consumer<ProviderWithGetters>( builder: (context, provider, child) => Text('${provider.counter}') ) 
They behave the same.My question is, what's the reasoning behind the getters and is there a difference between the two approaches in terms of performance, compatibility etc?Thanks!

June 25, 2019 at 03:23PM by mr_poopybumhole
http://bit.ly/2Y8xpLM
New tweet from FlutterDev:

With Futures, @Dart_Lang’s most basic API for asynchronous coding, you can:

React to async data
Catch errors
Build Flutter widgets with FutureBuilder

Learn more in this episode of #FlutterinFocus &rarr; https://t.co/ZEt8aQslP3 pic.twitter.com/lA84s63cs9— Flutter (@FlutterDev) June 25, 2019

June 25, 2019 at 07:10PM
http://twitter.com/FlutterDev/status/1143567070094876677
New post on /r/flutterdev subreddit:

How do you implement Flutter Sticky Widget.
If you are reading this post from reddit mobile version, you will notice that when you scroll up in a post the footer of the post gets stuck below the appBar. There is only one library that implements something similar right now, but I will like to understand the logic behind it, and how it was made. Does anybody have any idea

June 25, 2019 at 11:00PM by iamokpe
http://bit.ly/2YcLubb
New post on /r/flutterdev subreddit:

Thinking of coding a Flutter app rosspost
https://ift.tt/2RAQfZA

June 26, 2019 at 03:02AM by Stevenicloud
https://ift.tt/2xnxhMV
New post on Flutter Dev Google group:

Use Tesseract.js in Flutter
How could I use Tesseract.js in Flutter? Does anyone have an idea?

June 26, 2019 at 07:25AM by 北科大-陳珈鋐
https://ift.tt/2XzWW3q
New post on Flutter Dev Google group:

how to get the TextFiled value outside the widget
below is my class about the TextFiled class InputContainer extends StatefulWidget{ final _InputContainerInner input = new _InputContainerInner(); @override State createState() { return input; } } class _InputContainerInner extends State{ TextEditingCo

June 26, 2019 at 08:47AM by yusong hu
https://ift.tt/2Lh8DFK
New post on /r/flutterdev subreddit:

Flutter Calendar Libraries Comparison
https://ift.tt/2X01g7W

June 26, 2019 at 12:04PM by Elixane
https://ift.tt/2XwCbG2
New post on /r/flutterdev subreddit:

I want to make an app that makes use of cloud firestore for the backend. Any ideas as to what I should make?
I'm sorta new to flutter, so maybe you have some ideas that are suited to my level?Also, the main objective here is for me to learn to use firestore in any app.

June 26, 2019 at 10:56AM by BlekSmungus
https://ift.tt/2FL7qDd