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

Making a Fancy Fashion App UI with Flutter - Speed Code
https://youtu.be/_JFXcxuPyeA

September 11, 2019 at 10:59AM by EngineerScientist
https://ift.tt/2AbahSo
New post on /r/flutterdev subreddit:

Making a Fancy Fashion App UI with Flutter - Speed Code
https://youtu.be/_JFXcxuPyeA

September 11, 2019 at 12:21PM by abdihamid10
https://ift.tt/34CSjpU
New post on /r/flutterdev subreddit:

How to learn flutter?
Hello,I would like to learn Flutter.I have basic knowledge of Python and C++.
What resources(books,videos,courses etc) do you suggest?
I have read good reviews for this course
Thank you in advance.

September 11, 2019 at 12:47PM by Sdouze
https://ift.tt/2ZT2W8z
New post on Flutter Dev Google group:

-bash: flutter: command not found. for mac system
Hi, I was installed flutter for my mac from below link https://ift.tt/2NSU3FA and extracted and set the permanent path to flutter. Restarted the terminal too. But When I am typing flutter doctor from terminal it was saying -bash: flutter: command not found. this

September 11, 2019 at 02:17PM by Harika Gunti
https://ift.tt/2Lrh80M
New post on /r/flutterdev subreddit:

New puzzle game made with flutter
Hey guys,We have launched a new puzzle game which is made with flutter.SQUARES - A Minimal PuzzleThis is a logic & brain puzzle game with minimal graphics and relaxing music! No ads, no in-app purchases, no time limit! Just gameplay with awesome & unique levels.https://play.google.com/store/apps/details?id=com.superbros.squareshttps://apps.apple.com/us/app/squares-a-minimal-puzzle/id1477995592We would appreciate if you give us feedback or suggestions :)Have fun!

September 11, 2019 at 02:07PM by SuperBrosGames
https://ift.tt/31eFRuA
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