Flutter Heroes
26.1K subscribers
272 photos
2 videos
31.1K links
Download Telegram
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
New post on /r/flutterdev subreddit:

Google needs to step on the gas while they're in the lead
Flutter has been a success but Microsoft is out for blood. MAUI is basically flutter but written in C#. If it lives up to the hype, I think it's inevitable that it will dethrone flutter...because C# is not only more mature, it's also faster, more versatile (games, ml, server side, embedded) and it's ecosystem is next to none(especially tooling), with the added bonus that C# is essential to the core of Microsoft so companies will know for sure that it'll be around for the long run, can we say the same about Google and dart?I think Google needs to make significant investments in making dart viable outside of flutter, if it's to go toe to toe with C#. It's not a good sign that an old language with that much baggage is envolving faster than dart, which is only 10yo, namely Pattern matching, destructoring, discriminated unions etc...

November 23, 2021 at 04:16AM by fyzic
https://ift.tt/30XS63A
New post on /r/flutterdev subreddit:

please help me resove this crash
i am getting this crash from the firebase crashlytics. please help me solve this ASAP.io.flutter.embedding.engine.dart.DartMessenger$Reply.reply (DartMessenger.java:35)

November 23, 2021 at 07:10AM by Hemingway_21st
https://ift.tt/3nHOOdt
New post on /r/flutterdev subreddit:

Is there a way to make a flutter app which when opened, opens a webpage inside the app say xyz.com and has a back button inside which redirects it back?
I have no Mobile Development Experience whatsoever-Just getting started on flutter, tried googling something by the name of WebView() has to be used don’t know how that works any advice would be appreciated! StackOverFlow doesn’t help all they do is downvote smh

November 23, 2021 at 08:04AM by RegionHour
https://ift.tt/3FGC8tC
New post on /r/flutterdev subreddit:

3D in flutter
Hi Flutter folks 👋Have you tried canvas' `drawVertices`? It's much faster than paths and lines drawing. I just published oss package which draws 3D objects only with vertices. I'd really appreciate your test and feedback:https://pub.dev/packages/ditredihttps://jelenski.gitlab.io/ditredi/#/

November 23, 2021 at 09:04AM by mjelenski
https://ift.tt/3oUTig5
New post on /r/flutterdev subreddit:

Can flutter debug symbols generated be version controlled?
https://stackoverflow.com/questions/70076509/can-flutter-debug-symbols-generated-be-version-controlled

November 23, 2021 at 08:20AM by Harsh182
https://ift.tt/3xeKAgq
New post on /r/flutterdev subreddit:

Is Flutter really beginner-friendly?
Hello everyone, I'd like hear Flutter Devs opinion about a topic. I've been using flutter for 3 months now and I could say that it gets more frustrating every day. Yes building UI's is so fast and easy but building and maintaining architecture are so complicated. I'm coming from a different background and this is my first experience building mobile apps. But even in the community, there doesn't seem to be a solid, agreed-upon way to structure apps. Am I wrong, how do you structure your apps and manage the state? Is there a solid, well-established way? Or should I go read some books?TL;DR : I can't build well-architectured apps, should I go read some books or switch to a different framework(Android, ios)?

November 23, 2021 at 09:28AM by mavisizi
https://ift.tt/3CKCgX8