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

Tip #43 Dart Range, Make loops great again.
Do you miss number ranges like these in dart?
for (i in 1..4) print(i) //Kotlin Range for (i until 1..4) print(i) //Kotlin Range 
No problem. Just define this Range Extension on numbers and you will be good to go.
extension Range on num { List<num> until(num endPoint) { var exclusive = to(endPoint); exclusive.removeLast(); return exclusive; } List<num> to(num endPoint) { var numbers = <num>[]; if (endPoint > this) { for (int i = this; i <= endPoint; i++) { numbers.add(i); } } else { for (int i = this; i >= endPoint; i--) { numbers.add(i); } } return numbers; } } 
Then Simply use them like this :
void main() { // 2,3,4,5,6,7,8,9,10 for (int i in 2.to(10)) { print(i); } // 2,3,4,5,6,7,8,9 for (int i in 2.until(10)) { print(i); } // 2,1,0,-1,-2,-3,-4,-5,-6,-7 for (int i in 2.to(-7)) { print(i); } // 2,1,0,-1,-2,-3,-4,-5,-6 for (int i in 2.until(-7)) { print(i); } } 
try in dartpadIf you want more advanced range and other cool extensions use dartxThis is my tip #43 on #100 days of flutter.Find all of them in this repoI publish daily tips on this twitter thread

May 19, 2020 at 04:45AM by erluxman
https://ift.tt/2zKovgd
New post on Flutter Dev Google group:

Show dialog box on every 20th application opening.
Hi, I have one application where I want to show dialog box on every 20th application launching/opening. 1.I need to check count when application opens and need to show dialog box on different page if user opens application 20th time . Please help me with this 2.I have close button in dialog box

May 19, 2020 at 07:41AM by Vick123
https://ift.tt/2LDPlJs
New post on /r/flutterdev subreddit:

https://ift.tt/3dZbU7H Checkout my dream German Learning Web Application written in Flutter! src is in description.
Description:This is a language learning app which provides a flowing curiosity driven style of learning. Everything is clickable and always brings up the context and new examples to make learning anything super easy.Source Code:https://gitlab.com/JeromeSaltmarsh/core-germanConcept videohttps://youtu.be/fy8sFQfrGdAWebsitehttps://germanbydoing.com/Let me know what you think!- The backend is powered by Firebase

May 19, 2020 at 08:18AM by Mystical_Hotdog
https://ift.tt/3dW6H0q
New post on Flutter Dev Google group:

CustomPainter automation detection via a Key
Can a CustomPainter be identified by a key so to locate the same in automation? I have a circularGraph donut created using flutter_chart lib. I want to identify each arch separately (say by adding locators) that constitutes that donut to do the automation of the same. The CustomPaint is getting

May 19, 2020 at 08:45AM by LearningDev
https://ift.tt/3dXTSTf
New post on Flutter Dev Google group:

show dialog box on every 20th application launching/opening
Hi, I have one application where I want to show dialog box on every 20th application launching/opening. 1.I need to check count when application opens and need to show dialog box on different page if user opens application 20th time . Please help me with this 2.I have close button in dialog box

May 19, 2020 at 08:59AM by Vick123
https://ift.tt/3bKqgaH
New post on Flutter Dev Google group:

what should we use instead of background service in ios? any plugin or built-in class which help me?
what should we use instead of background service in ios? any plugin or built-in class which help me?

May 19, 2020 at 09:09AM by john786
https://ift.tt/2yfiVC5
New post on Flutter Dev Google group:

Flutter - Executing build on android
I have a question when I run flutter run on my project I have the following error, how can I solve this: *Error:* FAILURE: Build failed with an exception. * What went wrong: A problem occurred configuring root project 'flutter_full_pdf_viewer'. > Failed to find target with hash string 'android-2

May 19, 2020 at 09:27AM by Dev Connect
https://ift.tt/3dZPAuQ
New post on /r/flutterdev subreddit:

Been away from flutter community for almost a year. What's new?
Specifically, whats the preferred state management these days? I extensively used redux for a while but is it still relevant? Are there better ways to do state-management now? what are other recent changes I should be aware of?thanks :)

May 19, 2020 at 10:16AM by khatradude
https://ift.tt/2LFuWUz
New post on /r/flutterdev subreddit:

Flutter - Executing build on android
I have a question when I run flutter run on my project I have the following error, how can I solve this:Error:
FAILURE: Build failed with an exception. * What went wrong: A problem occurred configuring root project 'flutter_full_pdf_viewer'. > Failed to find target with hash string 'android-28' in: /usr/local/share/android-sdk * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. * Get more help at https://help.gradle.org BUILD FAILED in 5s Exception: The plugin flutter_full_pdf_viewer could not be built due to the issue above. 


May 19, 2020 at 10:14AM by rikidev20
https://ift.tt/3cIhbjW
New post on Flutter Dev Google group:

I need help in connecting my a web app to flutter app?
Hello guys, I am a web developer based in Bangkok, Thailand. I want to connect my web app to the flutter app. I mean I basically need to call a callback function from web app to flutter app and pass some variables. It will be great if someone can help me get started. By the way, I developer

May 19, 2020 at 12:13PM by Sunny Bhadani
https://ift.tt/2LICqGu
New post on Flutter Dev Google group:

Receiving this error when using flutter_google_places Plugin
I do not use streams, so this error is not familiar. Although the logs show this error every time i use places search, it does not hinder any performance. Everything is working okay. But the error does show up in logs, and I wish to resolve it. I posted it on stackoverflow too but i did not get

May 19, 2020 at 12:13PM by Hassan Hammad
https://ift.tt/2LIeKly
New post on /r/flutterdev subreddit:

Execute code in x duration while app in background but not terminated
I have an app that has a timer and after it reaches <5 seconds, it will notify user that it's almost time and at the same time run some code.​However when I lock my phone, it seems the timer is stopped as well, hence no code execution.​How do I run some code in x seconds as specified by user while the app is still in the background (aka tap on home button the app goes to background but not terminated.). If the app task is ended i do not care as I won't be bothering the user.​Is this possible?

May 19, 2020 at 02:03PM by RevolutionaryRow0
https://ift.tt/3g4S8JS
New post on /r/flutterdev subreddit:

App Feedback Thread - May 19, 2020
This thread is for getting feedback on your own apps.Developers:must provide feedback for othersmust include Play Store, App Store, GitHub, GitLab, or BitBucket linkmust make top level commentmust make effort to respond to questions and feedback from commentersmay be open or closed sourceCommenters:must give constructive feedback in replies to top level commentsmust not include links to other appsTo cut down on spam, accounts who are too young or do not have enough karma to post will be removed. Please make an effort to contribute to the community before asking for feedback.As always, the mod team is only a small group of people, and we rely on the readers to help us maintain this subreddit. Please report any rule breakers. Thank you.- r/FlutterDev Mods

May 19, 2020 at 02:33PM by AutoModerator
https://ift.tt/2AJzt6b
New post on Flutter Dev Google group:

I have an error when i was trying to run my project
Launching lib\main.dart on Android SDK built for x86 in debug mode... registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection) registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection) registerResGeneratingTask is deprecated, use

May 19, 2020 at 03:00PM by Abdullahi Abdi
https://ift.tt/2TkhIAC
New post on /r/flutterdev subreddit:

Flutter UI for a journal app.
https://imgur.com/x13UEHwFeatures implementedStore data in SharedPreferencesUsed RIVE to get flr files and display animations using FlareActorUsed lots of flutter builtin animation widgets (i.e. AnimatedSize, AnimatedOpacity, AnimatedContainer)Link: https://github.com/NikhilCodes/MindPlane

May 19, 2020 at 03:11PM by _Mycr0ft_
https://ift.tt/2Tivu6Q