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

In BLoC pattern, how should I store global state?
I'm learning BLoC pattern coming from Redux, and I'm confused about how I manage state globally. In BLoC, there is no "single source of truth". It seems like the "single source of truth" is something I have to implement seperately? It would be of great help if someone explained to me how Blocs work in terms of global state.

June 20, 2019 at 04:32AM by AmateurLlama
http://bit.ly/2x4mBT5
New post on Flutter Dev Google group:

How to create splash screen for multiple flavours in ios?
I have searched internet lot about flavours splash screen for different targets but i can't get proper guide somebody please guide Thanks in advance

June 20, 2019 at 08:35AM by Suriya Suriya
http://bit.ly/2WS4eex
New post on /r/flutterdev subreddit:

Is there any way to open link that comes from onesignal on webview? Ask
I'm using webview widget in my flutter app I want to open a link when user tap on notification, the link comes from additional data on one signal I tried to make this but it doesn't work
my code :
import 'package:flutter/material.dart'; import 'dart:async'; import 'package:flutter_webview_plugin/flutter_webview_plugin.dart'; import 'package:onesignal/onesignal.dart'; void main() => runApp(new MyApp()); class MyApp extends StatefulWidget { @override _MyAppState createState() => new _MyAppState(); } class _MyAppState extends State<MyApp> { String _debugLabelString = ""; String url = "https://www.google.com"; @override void initState() { super.initState(); initPlatformState(); } Future<void> initPlatformState() async { if (!mounted) return; OneSignal.shared.setLogLevel(OSLogLevel.verbose, OSLogLevel.none); OneSignal.shared.setRequiresUserPrivacyConsent(_requireConsent); var settings = { OSiOSSettings.autoPrompt: false, OSiOSSettings.promptBeforeOpeningPushUrl: true }; OneSignal.shared.setNotificationReceivedHandler((notification) { this.setState(() { url = notification.payload.additionalData['url'].toString() ; }); }); OneSignal.shared .setNotificationOpenedHandler((OSNotificationOpenedResult result) { this.setState(() { // the value of result.notification.payload.additionalData['url'] = https://www.facebook.com/ url = result.notification.payload.additionalData['url'].toString() ; }); }); // NOTE: Replace with your own app ID from https://www.onesignal.com await OneSignal.shared .init("086d22bd-5539-4849-9db2-01589fd3429d", iOSSettings: settings); OneSignal.shared .setInFocusDisplayType(OSNotificationDisplayType.notification); } @override Widget build(BuildContext context) { return new MaterialApp( home: new Scaffold( appBar: new AppBar( title: const Text('OneSignal Flutter Demo'), backgroundColor: Color.fromARGB(255, 212, 86, 83), ), body: WebviewScaffold( url: url, withJavascript: true, ) ), ); } } 
I put facebook.com on in additional data it show google page not facebook how to make it show the save value the I put on additional data

June 20, 2019 at 10:25AM by Hajja_company
http://bit.ly/2Xk7eVr
New post on Flutter Dev Google group:

Looking for a way to detect system UI overlay changes
Is there any way to detect when the system status bar and navigation buttons change state (hidden/visible)? We already have SystemChrome from package:flutter/services.dart but it doesn't expose any such methods.

June 20, 2019 at 11:42AM by Kristiyan Mitev
http://bit.ly/2XYBja9
New post on Flutter Dev Google group:

I'm trying to add marker for every user's last location.
Hello, I'm trying to add markers for users' last location on map. There is an error- Exception caught by gesture. Getter length was null. This is my location.dart import 'dart:async'; import 'dart:convert'; import 'package:flutter/material.dart'; import 'package:google_maps_flutter/googl

June 20, 2019 at 11:49AM by Rajashree Parhi
http://bit.ly/2XoyCl2
New post on Flutter Dev Google group:

Latest Cross-Platform App Development Technology- Flutter
Why target on a particular device, when you can make all your devices compatible with a single application? The Flutter App Development of Data EximIT allows you to own an innovative application that is compatible with multiple operating systems. 1. Convenient coding to suit the concept 2.

June 20, 2019 at 01:33PM by Data EximIT
http://bit.ly/2Xm02YR
New post on Flutter Dev Google group:

Sidescrolling Widgets
Hi Community I havea problem that is driving me nuts in Flutter. I have a layout that requires some widget like a simple card to be scrolled sideways. So Listview seemed to be good choise but.... This is working but scrolldirection is vertical since this is the default Padding( padding:

June 20, 2019 at 02:28PM by Peter Kretschmer
http://bit.ly/2Y0sTit
New post on Flutter Dev Google group:

Is there any way to open link that comes from onesignal on webview? Ask Question
I'm using webview widget in my flutter app I want to open a link when user tap on notification, the link comes from additional data on one signal I tried to make this but it doesn't work my code : import 'package:flutter/material.dart';import 'dart:async';import 'package:flutter_webview_plugin/f

June 20, 2019 at 04:34PM by DoN Smash
http://bit.ly/2XmMufD
New post on /r/flutterdev subreddit:

Record video or media streaming in flutter web
​I newbie in FLutter Web. I want to record video from the webcam and store in Database by the flutter web. is it possible to record video from the flutter web? I have been searching for days but found nothing.

June 20, 2019 at 04:17PM by farhana_sys
http://bit.ly/2x7ctZM
New post on /r/flutterdev subreddit:

First face tracking experiments in ARKit for Flutter. Really basic, but you may go bananas already.
http://bit.ly/2Rs2rvv

June 20, 2019 at 06:04PM by EngineerScientist
http://bit.ly/31MraiU
New tweet from FlutterDev:

Keep your aspect ratio in check!

The AspectRatio widget can be used to give a child widget a specific aspect ratio. Use it to keep the ratio of your widget’s width and height consistent when dimensions change.

Watch more #WidgetoftheWeek here &rarr; https://t.co/gevEOytniu pic.twitter.com/EdVez92p6c— Flutter (@FlutterDev) June 20, 2019

June 20, 2019 at 06:40PM
http://twitter.com/FlutterDev/status/1141747629862182912
New post on /r/flutterdev subreddit:

const CustomPainter and CustomClipper
In this stack overflow question asked and answered by Remi Rousselet(author of Provider package), it says using const in front of the class constructor helps avoid unwanted widget builds.I am having performance issues with my 'CustomPainter' and 'CustomClipper' and want to apply this tactic. My customclipper clips a child widget with a certain custom shape and my custompainter paints a shadow according to the clipped shapes boundaries. These two shapes don't change at all. Only inside of the child widget changes(text).Question is how can i make these two classes const or static so that they don't get rebuild with every build by their parent widgets?

June 20, 2019 at 06:35PM by aytunch
http://bit.ly/2x7kvlg
New post on /r/flutterdev subreddit:

ReactiveHacks AMA
http://bit.ly/2ZyBdWX

June 20, 2019 at 06:26PM by vorcigernix
http://bit.ly/2WWeQsI
New post on Flutter Dev Google group:

Season veggies app lags on main screen
Hi, I downloaded this app for just checking out the framework, but it seems there are some issues, something feels off when scrolling and there are also lags. Hope this help you guys, it creates bad impression for new developers. ------------------------------ [image: RPReplay-Final1561050520.

June 20, 2019 at 07:14PM by Arkesh Kalathiya
http://bit.ly/2XsOhQh