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

URL Shortener Built With BLoC + Dart's HttpClient + HiveDB
https://youtu.be/EFvTo5oxJMw

November 21, 2021 at 07:07PM by Content_Buy1723
https://ift.tt/3cxqcOa
New post on /r/flutterdev subreddit:

Create a Snackbar using GetX Library in Flutter
https://ift.tt/3FyLVlk

November 21, 2021 at 07:18PM by rrtutors
https://ift.tt/3CAz7sJ
New post on /r/flutterdev subreddit:

My code is a nested rat's nest! How do you like to keep your code organized?
I'm coming from a python background and I can write fairly clean-ish code in that, but I'm really struggling to write nice looking code with dart/flutter. I recently learned about how to use themes and that helps trim things up a little, but my only organizational tactic aside from that is placing all of my functions outside of the materials nest (which is already a mess).

November 21, 2021 at 08:58PM by Syntaximus
https://ift.tt/30JTRBE
New post on /r/flutterdev subreddit:

Any Flutter courses out there that focus on "Clean Code/Architecture"?
TL;DR: Title.I just found this course and while I think it looks amazing, after watching the preview videos the instructor's accent is super thick, his voice very monotonous and the audio quality is TERRIBLE. Two minutes in, I was getting a headache.I read Clean Code and Clean Architecture earlier this year and I'll be totally honest; a lot of it went right above my head so I'd really like a course that puts those concepts to practice. I'm an intermediate Flutter user so most of the beginner content is pretty much useless to me and good quality long-form intermediate+ content is hard to find.I know the best way to improve is to work on your own stuff but the next couple of months are packed for me and I just really don't have the mental capacity to work on my own Flutter projects during this time but I could easily follow a course for an hour or so per day to stay in shape.I really prefer this longer type of paid course than shorter YouTube tutorials. They tend to be more focused and comprehensive and you avoid learning the same things over and over. Is there anything out there like that for Flutter that you can recommend? Preferably by an English speaker with a microphone that costs more than three dollars.Sorry if this isn't the appropriate forum, but I thought I'd try here after being so excited when I found the above course... only to be incredibly disappointed by how unbearable the audio was.

November 22, 2021 at 02:20AM by emililililily
https://ift.tt/30HSxPL
New post on /r/flutterdev subreddit:

How would you do authentication flow with a custom API (not firebase)?
So, I'm still trying to wrap my head around this stuff, but so far my plan is to make a stream that is constantly providing authentication info (whether or not a user is logged in) and then use "StreamBuilder" at the root of my app tree to control where they are allowed to go. Assuming all that works okay...How do I actually get the authentication info? Do I just call up my server's API every 3 seconds and ask "still logged in"? Like, should I just send a get request to [server IP address]/auth and make that route available just for this specific purpose? Or is there some fancy "best practice" for doing this that I don't know about?Thanks for any info/guides/links/books! I love this community!

November 22, 2021 at 04:01AM by Syntaximus
https://ift.tt/32cphke
New post on /r/flutterdev subreddit:

Frequent guaranteed-time background jobs
I have a use case that requires me to be able to schedule frequent jobs that need to execute locally at a guaranteed time. Essentially these mini jobs will check a local sqlite database, make an API call or two, and then schedule the next job. Is there anything built already that supports this? I’ve already seen Flutters lackluster documentation on background processing, but the article listed was event based, whereas I need to be able to schedule these jobs from the dart side and I’m unsure of whether native platforms even support this behavior. I had hoped the flutter local notifications package would allow me to trigger silent/non-UI “notifications” but no dice there. Locality is important but I’m thinking I may need to sacrifice that and have a backend service send pushes to the device to trigger the jobs. Hoping the community has some advice for me though :)

November 22, 2021 at 03:57AM by 010606291804939416
https://ift.tt/30OzaEh
New post on /r/flutterdev subreddit:

Multiple authentication in one app?
How can I have 2 authentications in one app?I need to log in using firebase. I also need the user to log in to fetch rest api(zoho crm) data using that email and password(different from firebase).Do I have two login pages or what would be the best solution to this.

November 22, 2021 at 05:00AM by mryoloo
https://ift.tt/2Z8DcGU
New post on /r/flutterdev subreddit:

Launching today: Code with Andrea 2.0!
Since 2018, I've been creating tutorials and articles for the Flutter community and hosting them on my site, and this now receives 40,000 visitors every month.To make the experience better for everyone, I have been working on a complete redesign.And I'm very happy to share the new site with you all:https://codewithandrea.com/What’s inside?Brand new design!137 Flutter videos, articles, and tips (and counting).4 Flutter courses.A very good newsletter.I hope this will become a reference for Flutter developers worldwide and a good complement to all the other great resources from the community!There are still a few things to tidy up here and there, but I hope you'll like the new experience!I'd love to hear any feedback you may have!Andrea

November 22, 2021 at 10:48AM by bizz84
https://ift.tt/3xdeFxe
New post on /r/flutterdev subreddit:

release candidates for Money2 and Fixed decimal packages
I've just pushed release candidates for the Money2 v3 package and the new Fixed packageIf you are user of the Money package then now is the time to hop and have a look at the new updates before I push a release.https://pub.dev/packages/fixedThe Fixed package allows you to store and perform maths on decimal numbers with a fixed scale (fixed no. of decimal places).All amounts are store using the Decimal package to allow precision maths to be performed.The Fixed package allows you to have explicit control over the no. of decimals (the scale) that are stored.The key difference between the Decimal and Fixed packages:Fixed uses a fixed scale (no. of decimal places)Fixed provides a builtin formatter Fixed.format(pattern)Fixed includes a convenience method Fixed.formatIntl(locale)
which formats the number with the provided locale or the default locale if not provided.Most Fixed constructors take minorUnits and a scale (100 scale: 2 == 1.00)https://pub.dev/packages/money2Money2 is a Dart package providing parsing, formatting and mathematical operations on monetary amounts.Key features of Money2:simple and expressive formatting.simple parsing of monetary amounts.multi-currency support.intuitive maths operations.fixed precision storage to ensure precise calculation.detailed documentation and extensive examples to get you up and running.pure Dart implementation.Open Source MIT license.using Money2 will make you taller.I'm going to bed now.

November 22, 2021 at 11:31AM by bsutto
https://ift.tt/3FI5iIV
New post on /r/flutterdev subreddit:

API implementation generator for Flutter. Put Swagger.json URL or OpenAPI JSON and download all models and endpoints as classes and methods ready to use
https://ift.tt/3x9uV2a

November 22, 2021 at 02:15PM by kubenqpl
https://ift.tt/3xdMRJ6
New post on /r/flutterdev subreddit:

Flutter Tap Weekly Newsletter Week 112 - Tutorials, videos, packages, and much more!
https://ift.tt/3cyqaFU

November 22, 2021 at 03:44PM by vensign
https://ift.tt/3r0T9uw
New post on /r/flutterdev subreddit:

sliding_clipped_nav_bar has been updated to version 2.0.0, bar height is now reduced no problem on android, and added test.
https://ift.tt/3xFPNNg

November 22, 2021 at 05:23PM by pavel_birdy
https://ift.tt/3HIWhAS
New tweet from FlutterDev:

🦋 Grab the #flutterapprentice here 👇 https://t.co/TfgyFPT0fO— Flutter (@FlutterDev) Nov 22, 2021

November 22, 2021 at 06:04PM
https://twitter.com/FlutterDev/status/1462829288411992068
New tweet from FlutterDev:

🎉 Flutter's quarterly survey report is back! Read the blog to know more about what we learned from the survey and what we’re planning to do about it: 🖥 Web support 💙 Developer community 📑 Code samples in the source code files Dive in 👉 https://t.co/8UMvetdg2z https://t.co/B35r5lC545— Flutter (@FlutterDev) Nov 22, 2021

November 22, 2021 at 08:00PM
https://twitter.com/FlutterDev/status/1462858422597074944
New post on /r/flutterdev subreddit:

Widget Inversion. Is this a good idea?
Problem: Multiple levels of nesting in code is very hard to read, and that applies fully to Flutter Widgets.Normally, the solution is to break things out into private methods and go from there, but the problem of nested code is usually related to conditionals rather than wrapping. Doing that with conditionals highlights the most important details (the conditions), but with widgets, while it's still very helpful for being able to reason about your abstractions better, you can end up hiding the most important details.An idea I've been experimenting with recently is to invert the entire structure. Build the widget by starting with the meat and add wrappers one at a time, like this:
@override Widget build(BuildContext context) { List<Widget> mainContent = [ SectionHead(), SectionBody(), SectionFoot(), ]; Widget widget; widget = _addColumn(mainContent); widget = _addSafeArea(widget); widget = _addScaffold(widget); widget = _addGestureDetector(widget); widget = _addInactivityDetector(widget); return widget; } 
This seems to maximize readability to me, but it's getting pretty far away from normal Flutter patterns. It also has the distinct advantage of being able to easily add and remove layers without changing anything else about the code, making it much more SOLID.So, are there any gotchas I'm missing here? Other than potentially making those all Classes instead of methods.

November 22, 2021 at 09:37PM by Wtygrrr
https://ift.tt/30KTaIk