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
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
reddit
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...
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
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
reddit
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...
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
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
reddit
Multiple authentication in one app?
A subreddit for Google's portable UI framework.
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
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
Code With Andrea
Code With Andrea: Dart, Flutter & Firebase tutorials and courses
Learn how to become a Flutter Pro and build production-ready apps on mobile and beyond.
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
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
Dart packages
fixed | Dart package
Fixed scale decimal numbers with mathematical operations, formatting and parsing.
New post on /r/flutterdev subreddit:
Check Platform in Flutter The Right Way - FlutterBeads
https://ift.tt/3cAwj4a
November 22, 2021 at 01:39PM by pinkeshdarji
https://ift.tt/3DCmAX4
Check Platform in Flutter The Right Way - FlutterBeads
https://ift.tt/3cAwj4a
November 22, 2021 at 01:39PM by pinkeshdarji
https://ift.tt/3DCmAX4
FlutterBeads
Check Platform in Flutter The Right Way in 2022 (Code) - FlutterBeads
<span class="rt-reading-time" style="display: block;"><span class="rt-label rt-prefix"></span> <span class="rt-time">3</span> <span class="rt-label rt-postfix">min read</span></span> Flutter allows you to develop a multi-platform app that runs on a mobile…
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
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
reddit
API implementation generator for Flutter. Put Swagger.json URL or...
Posted in r/FlutterDev by u/kubenqpl • 3 points and 0 comments
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
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
Fluttertap
Newsletter Issue 112
Flutter Tap newsletter with the latest of Flutter. Articles, tutorials, videos and much more - Issue 112
New post on /r/flutterdev subreddit:
Flutter Web vs HTML, CSS & JS: Performance Comparison
https://youtu.be/hZYoyMScXCg
November 22, 2021 at 05:44PM by bizz84
https://ift.tt/30McSDw
Flutter Web vs HTML, CSS & JS: Performance Comparison
https://youtu.be/hZYoyMScXCg
November 22, 2021 at 05:44PM by bizz84
https://ift.tt/30McSDw
YouTube
Flutter Web vs HTML, CSS & JS: Performance Comparison
Written tutorial: 👇👇
https://codewithandrea.com/videos/flutter-web-html-css-js-performance-comparison/
Source code for Flutter clone: 👇👇
https://github.com/bizz84/code_with_andrea_flutter
HIGHLIGHTS
00:00 - Intro
00:35 - Website overview
01:27 - PageSpeed…
https://codewithandrea.com/videos/flutter-web-html-css-js-performance-comparison/
Source code for Flutter clone: 👇👇
https://github.com/bizz84/code_with_andrea_flutter
HIGHLIGHTS
00:00 - Intro
00:35 - Website overview
01:27 - PageSpeed…
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
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
Dart packages
sliding_clipped_nav_bar | Flutter Package
Bottom Navigation Bar with sliding menu icon and text with clipping effect, it also has ripple effect when tapped.
New tweet from FlutterDev:
🦋📖 Learn Flutter with the Flutter Community 💙 On November 24th, we will review chapters 12 & 14 of #flutterapprentice, learn about streams, get deeper into databases, and answer your questions! Join the discussion 👉 https://t.co/TQDviAjutd https://t.co/e3AeEMhz5l— Flutter (@FlutterDev) Nov 22, 2021
November 22, 2021 at 06:00PM
https://twitter.com/FlutterDev/status/1462828226623979523
🦋📖 Learn Flutter with the Flutter Community 💙 On November 24th, we will review chapters 12 & 14 of #flutterapprentice, learn about streams, get deeper into databases, and answer your questions! Join the discussion 👉 https://t.co/TQDviAjutd https://t.co/e3AeEMhz5l— Flutter (@FlutterDev) Nov 22, 2021
November 22, 2021 at 06:00PM
https://twitter.com/FlutterDev/status/1462828226623979523
YouTube
Chopper & Streams :: 24th Nov 2021 :: Flutter Apprentice Book Club
Chapters 12 & 14
Get the book https://flutter.dev/apprentice-giveaway
Community
https://www.meetup.com/pro/flutter
https://fluttercommunity.dev/joinslack
https://discord.com/invite/N7Yshp4
https://www.reddit.com/r/FlutterDev/
https://stackoverflow.com/tags/flutter…
Get the book https://flutter.dev/apprentice-giveaway
Community
https://www.meetup.com/pro/flutter
https://fluttercommunity.dev/joinslack
https://discord.com/invite/N7Yshp4
https://www.reddit.com/r/FlutterDev/
https://stackoverflow.com/tags/flutter…
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
🦋 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
🎉 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
Medium
About web, community, and code samples — Q3 2021 survey results
The Flutter UX team’s quarterly survey report is back! This was our 14th quarterly survey, and it ran for a week in August, announcing it…
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:
November 22, 2021 at 09:37PM by Wtygrrr
https://ift.tt/30KTaIk
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
reddit
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...
New post on /r/flutterdev subreddit:
I created a community for devs!
Anyone interested to join?https://discord.gg/ncRsYT33uG
November 22, 2021 at 09:23PM by ITookTheL
https://ift.tt/3nDfThY
I created a community for devs!
Anyone interested to join?https://discord.gg/ncRsYT33uG
November 22, 2021 at 09:23PM by ITookTheL
https://ift.tt/3nDfThY
Discord
Join the MakersHQ Discord Server!
Check out the MakersHQ community on Discord - hang out with 1,401 other members and enjoy free voice and text chat.
New post on /r/flutterdev subreddit:
Repositories, DataSources, And UseCases As Flutter Best Practices
https://ift.tt/3oRi1Cf
November 23, 2021 at 12:42AM by fredgrott
https://ift.tt/32pXInQ
Repositories, DataSources, And UseCases As Flutter Best Practices
https://ift.tt/3oRi1Cf
November 23, 2021 at 12:42AM by fredgrott
https://ift.tt/32pXInQ
Medium
Repositories, DataSources, And UseCases As Flutter Best Practices
You build a Starter App as a blueprint for the best practices you want from app arch, devops testing, etc. in your dev process when you…
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
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
reddit
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...
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
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
reddit
please help me resove this crash
i am getting this crash from the firebase crashlytics. please help me solve this...
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
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
reddit
Is there a way to make a flutter app which when opened, opens a...
A subreddit for Google's portable UI framework.
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
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
Dart packages
ditredi | Flutter package
A flutter package that displays large 3D datasets on transparent canvas.
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
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