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

Provider State Management Question to Manage List and Model
I am building an app that allows user to manage user attendance counts.I created a student model that contains properties: fullName, countOn the home screen I am simply displaying a gridview of these students and a counter next to the name.​I have set up the provider pattern and also changenotifier to Student.dart
class Student extends ChangeNotifier { final String id; final String name; int count; Student({ this.id, this.name, this.count, }); int get counter => this.count; increment() { this.count++; notifyListeners(); } } 
​​My question is, how do I create a list of students that I will be using builder to build it in the home page, and if there is a new student object added to that list, I can notifyListener() so the home page refreshes with updated student list. If I increment the count for some student, it will also trigger notifyListener to update that student's widget?​Do I create separate classes that extends ChangeNotifier e.g one for managing list of students, the other is for the student model itself?

January 01, 2021 at 03:57PM by cocag13996
https://ift.tt/2L9i4Ji
New post on /r/flutterdev subreddit:

From native to Flutter: effects of full refactor (app size)
I recently refactored one of my native Android applications with Flutter, now is 100% hybrid.The most obvious benefit is that I no longer need to do things twice, but I am a little concerned of the effect that the increase in app size will have on my audience.Before refactor, the size of my app was ~2.4 MB, and after full flutter refactor is ~9.7MB.It's too early to extract conclusions, but I want to ask all of you that had made a movement like mine if you have noticed any negative impact in the store's conversion rate, in downloads, or in the opinions of the users.Thanks for sharing.

January 01, 2021 at 07:00PM by svprdga
https://ift.tt/38W7cXm
New post on /r/flutterdev subreddit:

How to use onLongPress and onHorizontalDrag with same GestureDetector?
I want make WhatsApp voice audio record function. User tap and hold to record audio but can swipe left to cancel. But when I use GestureDetector it only register one gesture type.For example this only register onLongPress gesture if user start with long press. Or only onHorizontalDrag if user start with horizontal drag:
 onLongPressStart: _onPressStart, onLongPressUp: _onPressEnd, onHorizontalDragDown: _onHorizontalDragDown, onHorizontalDragUpdate: _onHorizontalDragUpdate, onHorizontalDragEnd: _onHorizontalDragEnd, 
How to use 2 gesture in same gesture lifecyle?Thanks!

January 01, 2021 at 07:38PM by Flutter_Dev
https://ift.tt/354ku38
New post on /r/flutterdev subreddit:

How to find clients for hourly consulting with Flutter?
Alongside creating Flutter tutorials and courses, this year I want to diversify my income and do a bit of client work.While I wouldn't have a problem in finding full-time opportunities by looking at the job boards and networking a bit, I'm really looking to work part-time, ideally ~10h per week.From past experience this has been a hard sell with potential clients, as app development often demands more than just a few hours per week.Still, for certain tasks it should be doable (e.g. code reviews / audits, small features etc).Has anyone had any luck with this before? How have you approached this, who did you reach out to, and which platforms (if any) did you use?

January 01, 2021 at 07:25PM by bizz84
https://ift.tt/3b5XTqN
New post on /r/flutterdev subreddit:

Flutter on Macbook air/pro m1
Flutter on Macbook air/pro m1. Have anyone tried it what do you think so far? I was about to order 16 gb, but I cant wait months and tomorrow there is a huge discount on macbook air m1.For those of you have have tried it, how much memory does it use?Would the 8 gb be enough for flutter/androud studio/ front end / for just a year (will upgrade later, also have an big windows desktop)

January 01, 2021 at 11:44PM by ilmep
https://ift.tt/3rLrCeo
New post on /r/flutterdev subreddit:

Flutter State Management Provider List of Objects
I have two providers:StudentsStudentStudents is responsible for managing a list of Student objects.Student class stores properties like attendance, name etc.​I have both providers to notiftyListeners whenever things change.​However, when I tap on a button that is supposed to increment the attendance in Student, it does not update the screen/widget. When I manually Hot Reload then it shows the change.I searched around and one way to fix this is to add the increment function directly into the Students provider instead of Student provider as such:​updateStudent(int index) { students[index].attendance++; notifyListeners (); }​​Is this a 'proper' way to do what I'm trying to do? Does this mean I no longer need to make my Student class with ChangeNotifier?

January 02, 2021 at 04:24AM by cocag13996
https://ift.tt/3hGWrMD
New post on /r/flutterdev subreddit:

Flutter Complete Tutorial
Wanna learn how to develop android apps the easy way with Google's Flutter Framework ?Just follow our tutorial and subscribe our YouTube channel from here to learn Flutter with many projects, easy explainations, personal help and much more !

January 02, 2021 at 08:29AM by ProgrammingWithYash
https://ift.tt/2X2n59h
New post on /r/flutterdev subreddit:

Why can people easily get the source code of a Flutter app, eg. for Android, and not get the source code of locally ran Microsoft Office?
I dont get what I am missing how its possible and why its designed in a way where its possible where other programs in general you cant get the source code easily.

January 02, 2021 at 12:12PM by asmileischarity
https://ift.tt/2KKivKr
New post on /r/flutterdev subreddit:

FakeAsync and Clock as Rescuers for Your async Game Logic Tests
https://ift.tt/2X3Bn9E

January 02, 2021 at 03:46PM by gladimdim
https://ift.tt/389ootv
New post on /r/flutterdev subreddit:

Complete Flutter tutorial w/ 10+ projects
Do you want to learn Flutter along with real-world projects and personal help ? That's simple !Just check out our channel from here and start learning today !​You can ask any doubts in the comments section for a quick answer from our team !

January 02, 2021 at 05:49PM by ProgrammingWithYash
https://ift.tt/3b1etYx
New post on /r/flutterdev subreddit:

Backend Recommendations
Anyone using any backend frameworks besides fire base? Looking for something with lots of fire base like features but that can maybe be self-hosted with great flutter support.Trying to rapidly build working prototype that won’t lock me into a specific vendor as/if it starts to scale.

January 02, 2021 at 05:23PM by bionicbits
https://ift.tt/387nJZl
New post on /r/flutterdev subreddit:

Does anyone know if there is a Widget Preview for Flutter?
Couple months ago there was this reddit post about a widget preview coming for VS Code:https://www.reddit.com/r/FlutterDev/comments/hs79ly/flutter_preview_for_vs_code_coming_soon/This feature would be awesome but I couldn't find it's current status. If not this extension, then perhaps the Flutter team is working on something similar?

January 02, 2021 at 06:02PM by NotSoIncredibleA
https://ift.tt/38RPCnv
New post on /r/flutterdev subreddit:

Great tutorial series on using Mapbox in Flutter project
https://youtube.com/playlist?list=PLL0eFsVXt1-bA0jcGz0W4_ONeUcjT0hBN

January 02, 2021 at 05:57PM by joe_brownie
https://ift.tt/3874C1C
New post on /r/flutterdev subreddit:

Need Ideas for my next Flutter UI Design
I have designed many ui in flutter, and you can check them upon my youtube channel. I was looking for some sort of app ui in which i can expand the ui to connect it to backend.

January 02, 2021 at 07:53PM by backslashflutter
https://ift.tt/3o88ODL
New post on /r/flutterdev subreddit:

Learning flutter
What are the advantages and disadvantages of flutter? Does it currently make sense to learn flutter from scratch or is there a better alternative?P.s. I didn't know where to post and the information on google is too scattered.

January 03, 2021 at 07:06AM by generalstatsky
https://ift.tt/3n9ofue
New post on /r/flutterdev subreddit:

Free Flutter Development Course
All Videos including installation and tutorial - hereYou can check out the videos and learn for free.

January 03, 2021 at 06:36AM by ProgrammingWithYash
https://ift.tt/38U73nn