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

Have you ever felt that when you are working on a project you kinda get confused about what to do? Which one should I do first? I always get that so I built a small task manager app that lets you create 5 tasks and set a time for it. The default is (60 mins.). And vola! Work on those tasks.
https://ift.tt/Zan3qyd

March 02, 2022 at 09:27AM by devyuji
https://ift.tt/RhgILkH
New post on /r/flutterdev subreddit:

Firestore filtering and pagination
I have a realtime value list which I am paginating by passing last id of the object,​var eventDoc = _firestore.eventCollection.orderBy(FieldPath.documentId).limit(pageSize);​if (startAfterId.isNotEmpty) {eventDoc = eventDoc.startAfter([startAfterId]);}​In my bloc I have a list of subscriptions for each page,is there any good way to additionally filter this data, for example by name and then return paginated result?

March 02, 2022 at 10:38AM by eloherbapol
https://ift.tt/wL2zWoM
New post on /r/flutterdev subreddit:

Desktop App Idea - Is Flutter a viable option? [Opinion Based Question]
Hi, I just discovered Flutter and would love to give it a try.I’m planning to build a “secure” app, that will try to ensure credibility.
What I mean by that - I want it to check how many output displays are currently connected, persist fullscreen mode and disable (or catch) any Alt+Tab action (loosing focus from the app). Apart from that one of the main parts would be webcam recording and its processing (probably using some libs). Also I would love it to recognize when it’s running in VM.The catch is, I want it to work on Windows, Mac, Linux. I realize it will require a lot of native code, but also Flutter could save me a lot of work (at least I think), since the app should have several screens with forms, some logic around that, communication with rest api and so on.So the question is. How good is Flutter with such heavy native code requirements?From what I understood from docs, I can use Channels to execute native code, but that seems fishy to me since it’s asynchronous, so I’m worried it won’t be stable and consistent.I’ll appreciate any input to the topic, mainly from more experienced people.Thanks a lot! ^_^

March 02, 2022 at 07:55PM by Jake_3h
https://ift.tt/wpKtyIq
New post on /r/flutterdev subreddit:

Can I add a PWA to an existing flutter app?
I have a website that is PWA compatible. To temporarily speed up development I would like to add this PWA to my existing flutter app. Would this be possible? Would it just be webview and still get the PWA benefits?

March 02, 2022 at 09:09PM by Necessary1OK
https://ift.tt/XJhmFKz
New post on /r/flutterdev subreddit:

codsnipet, an application for indexing, searching and storing your codesnippets
Hello Guy,today I publish my first version of codsnipet, the Backend is written in Rust(using Rocket) and the frontend Flutter. The UI is pretty functional so please give it a try if you are interested.https://github.com/MichaelProjects/codsnipet/tree/master

March 02, 2022 at 09:53PM by Aktienmensch
https://ift.tt/SgzvyFD
New post on /r/flutterdev subreddit:

Isolating state management when using Bloc. Single Responsibility, dependencies, testability.
I've taken to isolating Bloc by having my BlocProvider and BlocBuilder/Consumer in it's own file and passing parameters to the widgets below. (I still don't have a good naming convention - FeatureStateManagement?)This helps with single responsibility, dependencies, and testability. It also makes bloc more easily replaceable down the line.Has anyone done something similar?

March 03, 2022 at 02:14AM by FiveAM88
https://ift.tt/RhDa6jc
New post on /r/flutterdev subreddit:

What is your favorite "Secret Weapon" Widget?
No that is not meant to be a tongue twister, lol. But what widget have you come across that is not often discussed, but has become a big part of your development? The purpose of this thread is to give some exposure to some less-discussed widgets.I will start with mine: "FractionallySizedBox."I come from a web dev background, and am very comfortable with using % in my web layouts. When I discovered I can us a "FractionallySizedBox" with "widthFactor", I realized I can effectively do something -- use percentages in layouts -- that I was very comfortable with.Can you share your own thoughts on this topic? :)

March 03, 2022 at 06:18PM by mattgwriter7
https://ift.tt/qh2xn5A
New tweet from FlutterDev:

RT @csells: I'm excited to announce that, as of today's 3.0.2 release, go_router is being published & maintained by Flutter engineering. This means that important improvements are coming and the code will meet the same high quality bar as Flutter itself. https://t.co/61dvBE19rz— Flutter (@FlutterDev) Mar 3, 2022

March 03, 2022 at 09:00PM
https://twitter.com/FlutterDev/status/1499474694076043274
New post on /r/flutterdev subreddit:

Would you be interested in an in-depth course about writing tests for legacy code in Flutter?
Legacy code is code without a test. In the existing project, we mostly spent 70-80% of the time maintaining code. And test acts as a safety net for our code. But how do we work with a code which does not have any tests?Writing test for legacy code is tricky.However, once we understand the basic principles, we can write tests with legacy code using techniques like Extracting interface, Extract and overriding the method, breaking dependencies with dependency injection. And also use these techniques to write effective units, widgets, golden(screenshot), and end-to-end tests in Flutter.There is already are really good book on this by Michael C. FeathersWorking Effectively with Legacy CodeAnd various people in the community have contributed with some good stuff:Testing Legacy Code Elliotte by Rusty HaroldTesting and Refactoring Legacy Code​Since this topics cover more broadly and not specific to Flutter, I feel that we need more resources on this topic.So what about a course showing how to write tests for an existing real-world project which does not have any tests? And go step by step teaching different techniques?Would you be interested? Would you pay for it? What topics would you like to see covered? Or what challenges do you face while writing tests for the legacy which you would like to see covered?If you are interested then you can help me by filling out this form.
For more details check out my website.

March 04, 2022 at 05:00AM by burhanrashid52
https://ift.tt/0SAVXbf