Remote Config in Flutter

Поделиться
HTML-код
  • Опубликовано: 21 окт 2024

Комментарии • 58

  • @hurbes101
    @hurbes101 4 года назад +5

    thats one great explanation

    • @FilledStacks
      @FilledStacks  4 года назад

      Thank you arnab! I'm happy to hear that it made sense.

  • @AdaMs910
    @AdaMs910 3 года назад +2

    Really good explanation, especially on what remote config is and is not for - helped me a lot. Cheers

    • @FilledStacks
      @FilledStacks  3 года назад +1

      Awesome!! You're very welcome. Thanks for leaving a comment. Happy that I could help. Lots of devs use it for the wrong reasons expecting different results when it's not meant for that.

  • @robsonsilv4.
    @robsonsilv4. 4 года назад +2

    Great video and tip as well :)
    What do you use in local? Like dotenv and maybe sync?

    • @FilledStacks
      @FilledStacks  4 года назад +1

      Thank you. I haven't used dotenv for Flutter. Also haven't thought of using remote config for environment config. But that's a good idea too.

  • @rydmike
    @rydmike 4 года назад

    Hi Dane, I'm just curious, why did you create RemoteConfigService() as a self contained singleton? You are after all always using it as singleton via GetIt and always getting the same instance from the locator anyway, so is it really required? Could you not do something like this in the locator.dart file for it instead: locator.registerSingletonAsync(() async => RemoteConfigService.initialise()); ?
    Just noticed, you need GetIt >4 for that "registerSingletonAsync" feature and this codebase was on version 3. Also I have not actually tested upgrading your project to GetIt v4 and trying the above suggestion, so might be that it does not work for your use case. Might work though, if it does it would make the locator.dart file a bit cleaner and definitely reduce the complexity (self contained singleton with async instance initializer) of the RemoteConfigService. That is if it works of course 😬
    I have to admit though that I have not built along my own version of series, so I'm not up to speed on all the details. I'v just enjoyed watching it and following along casually. I should probably go through the entire series in detail before asking silly questions... 😀

    • @FilledStacks
      @FilledStacks  4 года назад +1

      Hi Mike! No silly questions, it's very valid. You can definitely do it like that. I think that should work fine. I was in a bit of a rush with this video so I fell back onto old implementation patterns :) I've tried to use the async registration but before but it failed due to not checking ready or something like that. So I'd rather not add more code to check if the instance is ready before using.
      I am busy with an architecture review so I'll be upgrading everything and making use of the newer versions and features.

  • @N-PK
    @N-PK 4 года назад +1

    Love your videos... Thank you!

    • @FilledStacks
      @FilledStacks  4 года назад +1

      Thank you! and you're very welcome. I love making them

  • @rikyriky966
    @rikyriky966 2 года назад

    Even the official Firebase Flutter documents doesn’t demonstrate it clearly but you do. I really thought this is a basic version of Real-time Database but after implementing it to my project in a few minutes, I understood it isn’t. I could still use it with a cache expiration duration like 1 minute or so.

    • @FilledStacks
      @FilledStacks  2 года назад +1

      Thank you, I appreciate that. And ye, you are right. They don't document things clearly. If you do cache expiration of a minute then you might get throttled by them. If you need realtime functionality look at things like flagsmith or launch darkly

    • @rikyriky966
      @rikyriky966 2 года назад

      @@FilledStacks you know, you don’t have to write the alternative options down but you still do. I admire your professional ethics and kind personality. Thanks.

    • @FilledStacks
      @FilledStacks  2 года назад

      @@rikyriky966 You are very welcome. I'm here to help grow our community. Spreading helpful information is apart of that. Thanks for your kind words.

  • @AndresJimenezS
    @AndresJimenezS 4 года назад +1

    the BaseModel class architecture is compatible with a Bloc arch instead of changeNotifier ? thanks for your amazing videos

    • @FilledStacks
      @FilledStacks  4 года назад +1

      You're very welcome and yet it is. I don't know if you'd want to mix bloc and Mvvm but you can definitely try

    • @AndresJimenezS
      @AndresJimenezS 4 года назад

      @@FilledStacks awesome!, I'm going to try, what I'm looking for is applying DDD, and for the Presentation part I can also handle it with Mvvm I also think it's possible but without exposing the model, managing it with Stream and Events that Bloc provides

    • @FilledStacks
      @FilledStacks  4 года назад

      @@AndresJimenezS Sounds like a good idea. Way too complicated for me but if the application type requires it then it should be a great solution. Goodluck!

  • @rebel_king_yt
    @rebel_king_yt Год назад

    hey sir I just wanted to have a review if we can use firebase remote config with email_auth package

    • @FilledStacks
      @FilledStacks  Год назад

      Hey, why do you think they need to be used together?

  • @mahdichafikcharif2741
    @mahdichafikcharif2741 4 года назад

    hi its very helpful, just one question how to display user info from firebase
    (like name and email) in his profile ?

    • @FilledStacks
      @FilledStacks  4 года назад +1

      Awesome. The same way I show in my startup logic and user profiles video. Get the user data from firestore and then use it where you want to.

  • @yahiaalaa47
    @yahiaalaa47 3 года назад

    can u please tell me how to test or mock in unit test?

    • @FilledStacks
      @FilledStacks  3 года назад

      yes, you can watch my latest how to unit test video.

  • @Code_School
    @Code_School 4 года назад

    Nice explanation

  • @moazelsawaf2000
    @moazelsawaf2000 2 года назад

    Thanks a lot ❤️

    • @FilledStacks
      @FilledStacks  2 года назад

      You're very welcome. Thanks for watching.

  • @khalilamor7771
    @khalilamor7771 4 года назад

    Hi , I have been using your architecture in my flutter apps recently and i really got used to it because its practical and easy to use.
    But i have one question, is it ok to inject a service inside another service and use or its a bad practice and i should only inject services in viewModels?
    Thank you and keep up the good work :)

    • @FilledStacks
      @FilledStacks  4 года назад +3

      Yes, services going into other services is perfectly fine. That's how you build up more complete functionality services. For instance I use the shared preferences service, Authentication service and DatabaseService to provide a single function from my OrdersService. It's expected and promoted behaviour.

    • @khalilamor7771
      @khalilamor7771 4 года назад

      @@FilledStacks Thank you for your reply :)
      So basically I was thinking of implementing a repository as a service, and I thought it would be logical to inject in it the remote database service (Firestore) and the local one (mysqli for example).
      Does this sound like a correct way to implement a repository (which its single purpose is to reduce remote requests) using this architecture? :)

    • @FilledStacks
      @FilledStacks  4 года назад +1

      @@khalilamor7771 Yes that sounds good. I use multiple repositories in my database which I interact with through my database service

  • @4guns
    @4guns 4 года назад

    So this could be considered an implementation of Feature Flags, no?

    • @FilledStacks
      @FilledStacks  4 года назад

      Yes, This is a tool you can use to build feature toggles into the app.

  • @adhdaddventure
    @adhdaddventure 4 года назад

    Great content as always.

  • @VJKoding
    @VJKoding 4 года назад

    Thanks you for knowledge sir🖤

    • @FilledStacks
      @FilledStacks  4 года назад

      You're very welcome! Thanks for watching

  • @kemids2842
    @kemids2842 4 года назад

    always love your tutorials. can you give me tips how can i do complex queries

    • @FilledStacks
      @FilledStacks  4 года назад

      Thank you. It all depends on the query. Give an example and I'll see if I know how to query for it.

    • @kemids2842
      @kemids2842 4 года назад

      @@FilledStacks omg thank you. so i created another firestore collection named report with document id of users, post, and 'photoCollection' each has 'userId' for reference. i was able to get each collection by manually creating a stream to filter and get the document id of ex. post's and then i was able to get information's of the post by its document id by creating a futurebuilder. in the report page i created 3 stream with nested future to get the data from each document id. i think there's a better way to do it lol

    • @FilledStacks
      @FilledStacks  4 года назад

      @@kemids2842 You implementation sounds very complex. What do you want to achieve? What's the data you're looking for?

    • @kemids2842
      @kemids2842 4 года назад

      ​@@FilledStacksi want to get data from documents id that i stored in one collection. ex. collection album has userId, postId, albumId this are document id from another collection.

    • @FilledStacks
      @FilledStacks  4 года назад

      @@kemids2842 If you have the document id you can simply call get on the collection with a direct reference. collection.document(id).get() . I'm probably not understanding, and also comments is not a place where you'll get any meaningful code debugged. If your code is working you'll have to stick to it for now :)

  • @kemids2842
    @kemids2842 4 года назад

    please make .where queries

    • @FilledStacks
      @FilledStacks  4 года назад

      I might do that. I was planning on doing queries but it's very specific to implementations so I'll have to think of a scenario to use it in.

  • @thecreativecorner2002
    @thecreativecorner2002 3 года назад +1

    So complicated

    • @FilledStacks
      @FilledStacks  3 года назад +1

      It might be if you're not familiar with the SOLID principles or code separation. But the tutorial was so short I haven't seen an easier / faster / clean implementation of remote config. Or at least I didn't see one while doing my research for this video.

  • @beloArgentina
    @beloArgentina 4 года назад

    Hi :D

  • @sam_whyte
    @sam_whyte 4 года назад

    First?

    • @FilledStacks
      @FilledStacks  4 года назад +1

      1 minute too late :) Pavan was first

    • @sam_whyte
      @sam_whyte 4 года назад

      Lol well done Pavan