Flutter Heroes
26.1K subscribers
272 photos
2 videos
31.1K links
Download Telegram
New tweet from FlutterDev:

🎉Flutter 1.9 upgrade goodies!

iOS style updates, support for additional locales, Dart 2.5 with the foreign function interface and more built-in widgets:

SelectableText widget
ColorFiltered widget
New error message format

Learn more here → https://t.co/bm6aGsOR2u pic.twitter.com/5NzW8iPhEf— Flutter (@FlutterDev) September 11, 2019

September 11, 2019 at 05:00PM
http://twitter.com/FlutterDev/status/1171800569742331910
New post on /r/flutterdev subreddit:

Whats a flutter dev
No text found

September 11, 2019 at 04:27PM by hambeef
https://ift.tt/2ULW8Vr
New post on Flutter Dev Google group:

Is it possible to run app on background just like alarm/ reminder app?
Is it possible to run on background Flutter app? either restart the mobile or close app. (App only stop when the user uninstall the app) working just like the alarm app/reminder app. After getting data from the backend, need to pop up page with sound and notification. just like alarm app.

September 11, 2019 at 07:02PM by BLOOD LOSS
https://ift.tt/34ElEQY
New tweet from FlutterDev:

👻Animate the visibility of a widget!

Use AnimatedOpacity to make your widget less prominent or fade into view. Fade elements in and out with an opacity animation to create a smooth UI experience.

0 = invisible
1 = opaque

More #WidgetoftheWeek → https://t.co/K2ASU5ZCYJ pic.twitter.com/Exkrcl9Alr— Flutter (@FlutterDev) September 11, 2019

September 11, 2019 at 07:38PM
http://twitter.com/FlutterDev/status/1171840552242827264
New post on /r/flutterdev subreddit:

A Word Game made in flutter with firebase and BLoC
The Word More Common, or "word game" (Google Play)​Github Repo​I wanted to learn how to use the Bloc pattern more effectively and completely, so I built about the simplest game I could think of based on this package by Filip. This app has no stateful widgets. Everything is controlled by Streams. I used rxdart in order to use BehaviorSubject, as it can be listened to multiple times (say, if you navigate away from and then back to a certain screen that listens to a particular stream).​The 'recent' and 'all-time' high scores are stored on a firestore database. This makes sorting and retrieving them by date or score really easy. Local high scores are stored in Shared Preferences.​This is my first time implementing an in-app purchase into a Flutter app. Purchases are handled as a stream in the main Bloc. Seems to work so far. Next step is trying to release it as an iPhone app.​Thanks for taking a look, happy to hear any comments or suggestions!

September 11, 2019 at 07:30PM by definitely_robots
https://ift.tt/2I31neh
New post on /r/flutterdev subreddit:

Usage of DIO in flutter
Does it make sence to declare Dio as an singleton? Coming from Android dev, we do this with our "dio". Didn't find this question online , so hope someone can elaborate.

September 11, 2019 at 07:23PM by skyyoo_
https://ift.tt/2UOyQxW
New post on /r/flutterdev subreddit:

Calling Widget function with subclass of generic type in State not possible
Today I fixed somebody's problem, but I am not really sure why it was a problem in the first time. I would like to know whether this was a mistake in the code or a bug in the Dart language.The question was posted on StackOverflow.The question is quite complex, but the idea is easy. The StateFullWidget gets a generic type T which extends ChangeNotifier, it gets a function which expects an object of type T.The State of the Widget creates the object T and passes it to the function of the Widget. In this example the T is OnBoardingViewModel, which does extends ChangeNotifier.The resulting error is:
type '(OnBoardingViewModel) => dynamic' is not a subtype of type '(ChangeNotifier) => dynamic' 
The short version of the code is:
class StateFullConsumerWidget<T extends ChangeNotifier> extends StatefulWidget{ StateFullConsumerWidget({,Key key,this.onPostViewModelInit}) : super(key : key); final Function(T viewModel) onPostViewModelInit; @override _StateFullConsumerWidgetState<T> createState() => _StateFullConsumerWidgetState<T>(onPostViewModelInit, builder); } class _StateFullConsumerWidgetState<T extends ChangeNotifier> extends State<StateFullConsumerWidget>{ T _viewModel; @override void initState() { _viewModel = GetIt.instance.get<T>(); widget.onPostViewModelInit(_viewModel); super.initState(); } } 
I suspect that under the hood the OnBoardingViewModel is passed as ChangeNotifier, but the function expects an OnBoardingViewModel.Checking the variables I would expect no problemsI fixed this by passing the function to the State and calling it from there. This works fine and is a solution, but I would like to know why this is a programming error or whether we should expect Dart to handle this normally.The resulting code that does work:
class StateFullConsumerWidget<T extends ChangeNotifier> extends StatefulWidget{ StateFullConsumerWidget({,Key key,this.onPostViewModelInit}) : super(key : key); final Function(T viewModel) onPostViewModelInit; @override _StateFullConsumerWidgetState<T> createState() => _StateFullConsumerWidgetState<T>(onPostViewModelInit, builder); } class _StateFullConsumerWidgetState<T extends ChangeNotifier> extends State<StateFullConsumerWidget>{ final Function(T viewModel) _onPostViewModelInit; T _viewModel; _StateFullConsumerWidgetState(this._onPostViewModelInit); @override void initState() { _viewModel = GetIt.instance.get<T>(); _onPostViewModelInit(_viewModel); super.initState(); } } 


September 11, 2019 at 07:22PM by ren3f
https://ift.tt/34DjwZz
New post on /r/flutterdev subreddit:

[question] Chat app with Flutter and firebase
hi all
I'm creating a chat app with flutter and firebase
how can order the contract list as who sends the last message goes to the top
as WhatsApp do
thanks

September 11, 2019 at 09:27PM by anonfantom
https://ift.tt/2I3hXe1
New post on /r/flutterdev subreddit:

Whats wrong with SQFlite and SharedPrefs?
I've heard a fair amount of criticism regarding the two mentioned packages but nobody seems to provide actual reasoning as to why they're seen as bad.I've been using both and haven't noticed any problems so far during dev. Am I going to be seeing issues after pushing to production or are the naysayers exaggerating?

September 11, 2019 at 09:23PM by notacooleagle
https://ift.tt/2UNVrLa
New post on /r/flutterdev subreddit:

How do you filter debug console output?
Is there any way to filter it in VS code? I see filter in Problems in new update but why it is not in debug console tab also?

September 11, 2019 at 10:18PM by alsetah
https://ift.tt/2LXFYV5
New post on /r/flutterdev subreddit:

60 Days of Flutter : 'Building a Messenger from Scratch' : Day 24–26 : Building a Animated Progress Fab and the Contacts Bloc in Flutter
https://ift.tt/2LMtKye

September 11, 2019 at 10:56PM by aditya_gurjar
https://ift.tt/2LqyZod
New post on Flutter Dev Google group:

Expanded question
I have a widget that is showing the yellow and black striped error at the bottom of the screen, I tried wrapping it in Expanded but it caused another error. I think I’m doing it incorrectly. I have several of these errors when moving to a smaller screen. The following assertion was thrown

September 12, 2019 at 12:47AM by Sam Cromer
https://ift.tt/3085wUp
New post on /r/flutterdev subreddit:

Tavern: A pub.dev client for searching and subscribing to package updates.
https://ift.tt/2LOgMQr

September 12, 2019 at 12:28AM by _thinkdigital
https://ift.tt/34FRMUr
New post on /r/flutterdev subreddit:

Flutter for desktop?
I've looked into multiple different cross-platform solutions for my next app.I've looked at xamarin, flutter, and react native, and I'm leaning towards flutter.is flutter currently capable of building to desktop so that I can run my app on Windows Linux and Mac as well as Android and iPhone?Thank you.

September 12, 2019 at 05:31AM by suffering_is_magic
https://ift.tt/2Lr3EBP
New post on Flutter Dev Google group:

Using "dart:html" in flutter 1.9+
The *dart:html* library was accessible in a flutter web applications prior to flutter 1.9 It's needed for important use cases like *file picker*, *drag and dropping files*, *cookies*, etc...(because *dart:io* cannot be used in flutter web apps) How is it possible to use the dart:html library in

September 12, 2019 at 09:09AM by Robin Maass
https://ift.tt/32wUauC
New post on Flutter Dev Google group:

Flutter Maps,
how to built a app which has live tracking...

September 12, 2019 at 09:40AM by Yash Savsani
https://ift.tt/309jGEE
New post on /r/flutterdev subreddit:

Flutter Stripe's SCA Implementation
Hello everybody.Now then, have any of you managed to get the Stripe new SCA working with Flutter ? Our current payment flow is, we authenticate an X amount of money, which we charge later, after the user has used our services. I've read through the whole Stripe Docs, I really did, but I still have no idea how our team is going to implement this new regulation on the app and backend. Can anyone share some insight how to even achieve this ?Kind regards.

September 12, 2019 at 10:22AM by Podpli
https://ift.tt/34F1LJt
New post on Flutter Dev Google group:

Unable to run flutter GitHub project in Android Studio
Can someone help me to run flutter GitHub project in Android Studio?

September 12, 2019 at 11:25AM by rakesh lorentz
https://ift.tt/2AeV6HT
New post on Flutter Dev Google group:

My client wants to charge the app
Hey guys, I need to charge the user to use part of the app. He will be able to login and have access to some content, but if he pays the monthly fee, he will have all access to the content. However, i've never done that before. Anyone has done it or has some ideia on what's the best way to do

September 12, 2019 at 12:08PM by Bruno De Faria
https://ift.tt/2NaGx0K