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

Flutter Supabase Authentication
Is it possible to stay signed in forever? You can specify how long the "tokens" are valid at the supabase configuration UI.Cant I restore the session after the entered value like max value of one week and my users have to login again after one week?Currently Im calling restore session on startup and using the dart-only lib.
@override Future<AppUser> getCurrentUser() async { var user = _supabaseClientService.get().auth.currentUser; if (user == null) { var session = await _getSession(); var response = await _supabaseClientService.get().auth.recoverSession(session); if (response.error == null) await _saveSession(); user = response.user; } return AppUser( user?.id, user?.email, user?.email, ); } 


January 21, 2022 at 10:47PM by KaiN_SC
https://ift.tt/3qPQQtK
New post on /r/flutterdev subreddit:

Do providers have callbacks? I've been struggling with the best practice for this scenario all day
This is my simple ChangeNotifier:
class Settings extends ChangeNotifier{ void changedSettings(){ notifyListeners(); } } 
I have this in my build method:
Provider.of<Settings>(context); 
and the widget rebuilds as expected when I call a function that calls notifyListeners in Settings. However, I only want to run an expensive data reload if the rebuild was because of the Provider, and not because some other Flutter management reason.My ideal solution to this is I can register some sort of callback function when I register the Provider.of in my build method...for example:
Provider.of<Settings>(context).withCallback(this._getData(this.state_settings)); 
Instead, what I am doing now is:
class Settings extends ChangeNotifier{ late int lastChange; Settings(this.lastChange); void changedSettings(){ lastChange = DateTime.now().microsecondsSinceEpoch; notifyListeners(); } } ... int lastChange = Provider.of<Settings>(context).lastChange; if(lastChange != lastSettingsChange){ lastSettingsChange = lastChange; _getDataFuture = getData(); } 


January 22, 2022 at 01:38AM by natural_language_guy
https://ift.tt/3qS3VTn
New post on /r/flutterdev subreddit:

Thoughts on flutter flow
What are your thoughts on flutter flow does it make learning flutter useless by the POV of career. Does it fears u that u spent months learning something and then some guy comes and makes the exact same thing with just a few clicks?

January 22, 2022 at 06:09AM by MemberOfUniverse
https://ift.tt/3FXNrgQ
New post on /r/flutterdev subreddit:

Guys, what do you have in your desk setup?
Things you have in your desk setup, including your pc/laptop, keyboard mouse, etc...

January 22, 2022 at 01:36PM by The-Hated_One
https://ift.tt/3qQqLdR
New post on /r/flutterdev subreddit:

where can i start to learn flutter?
Hello complete noob here. I'm interested learn flutter and make app. But i don't find any good documentation, video series etc. for complete beginner. any one know good guide for flutter?

January 22, 2022 at 03:12PM by ThenBrain
https://ift.tt/3qRmdEg
New post on /r/flutterdev subreddit:

Feedback on CollAction - an open source app that connects people to do sustainable challenges
CollAction recently launched the first version of its open source app written in Flutter. Any feedback/help would be very much appreciated! :)

January 22, 2022 at 02:56PM by TogetherWeMakeWaves
https://ift.tt/33VHfsb
New post on /r/flutterdev subreddit:

Flutter apps running on gaming consoles?
Some time ago there were some articles showing that Flutter is capable of running on Xbox. Are there any rumors or plans to make it work on Switch and PS as well? What’s the progress on that area of Flutter development? Do you think that hybrid gaming console apps will be something that world will be interested in?

January 22, 2022 at 02:44PM by poq106
https://ift.tt/3qPbBFD
New post on /r/flutterdev subreddit:

The right choice - react native or flutter
​Hey guysI have been developing a few projects with react in the last half year.
I have an idea for an app development, and I have been struggling to choose the right technology for me to learn in order to develop it.
I'm uncertain what should I choose : react native or flutter?
On one hand I'm already experienced with react and react native is based on react.
On the other hand I have been reading, and alot are claiming that eventually flutter will become the next big thing and native will decline in it's popularity.

January 22, 2022 at 04:01PM by Dangerous-Meaning-97
https://ift.tt/3fNGVOV
New post on /r/flutterdev subreddit:

Published my first package
Hi everyone I just created my first package native_drag_n_drop! So far it only supports iOS and only the drop feature but obviously more is to come. I hope this helps somebody :)

January 22, 2022 at 05:29PM by mriosdeveloper
https://ift.tt/3FTgNwL
New post on /r/flutterdev subreddit:

Dark Mode for Flutter Docs?
This has to be a thing, right? Am I missing something?I'm writing this as I feel a headache coming on from looking through the docs with a white background brighter than a thousand suns.I found this from 2019 but that's it.Am I the only one bothered by this? Are there extensions I can use that don't mess up the code examples?Is there maybe a button somewhere that I just missed that flips the dark mode on? I can't believe it's <current year> and dark mode isn't default everywhere.

January 22, 2022 at 11:44PM by emililililily
https://ift.tt/3IuVdjG
New post on /r/flutterdev subreddit:

Which text editor / ide do you use for flutter?
IDE and text editor you use for flutter

January 23, 2022 at 03:54AM by The-Hated_One
https://ift.tt/3GUDXEe
New post on /r/flutterdev subreddit:

I'm building a helpful system to get direct feedback from users who download your apps
I'm building a more helpful system to easily get and manage feedbacks directly from users who download your apps. I'm taking a survey to find more ways this solution can be truly helpful. Would you pls help take a look ?https://docs.google.com/forms/d/e/1FAIpQLSeM107R12kZJPrFcKHL7Rem7qldGeY4RPugQepOnn956vs9Cw/viewform

January 23, 2022 at 10:14AM by preshtagon16
https://ift.tt/3qSaQf9
New post on /r/flutterdev subreddit:

Need architecture advice for building a 3rd party extensions marketplace for my own Flutter app
I'm currently building a SAAS collaboration platform for volunteering engineers that provides several integrated tools such as posts, chats, documents, events and goals. I've designed the UI such that several side panels and screens can host views provided by 3rd party developers. My goal is to design a marketplace system where external vendors can showcase their extensions that can be installed on the app to enhance the workflow of the users. Similar to how Jira or Wordpress extensions work.Marketplace requirements:Provide a public API that can be queried by 3rd party extensionsA system for managing developer identity (for management and marketing reasons)Payments tracking (the core system will extract a transaction fee)Hooks (slots) to insert custom widgets and a system to register themA way to limit access to resources that the client consents to shareRate limiting featuresAbility to sandbox the 3rd party widgets (I suppose webviews are the way)Performance considerationsAbility to revoke extensionsI expect the vendors to host their own servers for caching their own extended data sets.I will be hosting this infrastructure on a self-managed kubernetes cluster in digital ocean. I have ability to use/configure tools like reverse proxy to satisfy such demands. I don't intend to go head first in going public, but I do want to have a solid understanding of what needs to be there such that the app can grow towards achieving these goals.Burning questions:How to display widgets and webviews from vendors in Flutter?How to register vendors ids and how to register them as API clients?How to safely expose life cycle events, GUI hooks and REST APis?How to track transactions?So far my experience with working with such integrations is limited (general overview from working with CMSes in the past and some hands on experience from working as a Jira extension developer). I've been researching on google/youtube to find guidelines on how to build the marketplace infrastructure but relevant materials are hard to spot. Any advice/guidelines/architecture/links/videos you can share I'll be happy to consume.PS: There's a live read only demo here of the app which will host the marketplace and I have a discord where I'm already brainstorming extension ideas with the upcoming vendors.

January 23, 2022 at 12:38PM by SpaceInstructor
https://ift.tt/355QE0Q