Dio Connectivity Retry Interceptor - Flutter Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 ก.พ. 2025

ความคิดเห็น • 92

  • @marekchojecki4746
    @marekchojecki4746 4 ปีที่แล้ว +16

    Damn, you are video making beast. DDD twice a week plus „blue” tuts of librares. Im gonna buy you another coffee because I don’t think you sleep at all :)

    • @ResoCoder
      @ResoCoder  4 ปีที่แล้ว +3

      Haha 😄 Thanks! When it comes to actual coffee, I drink a very conservative amount (for a programmer, at least 😅) 3 small cups a day.

    • @marekchojecki4746
      @marekchojecki4746 4 ปีที่แล้ว +3

      Same here, but I have to be strong to not drink fourth :) Anyway bought you one but you deserved whole starbucks tbh for your effort. Keep goin 👊

  • @dangdatraymonddelmut3230
    @dangdatraymonddelmut3230 3 ปีที่แล้ว +5

    This video is amazing and you are a good teacher. One issue I noticed is that when there is no Internet connection the circular progress indicator keeps looping infinitely, it would have been better you give user an error message instead of the infinite loop which left the user with no idea what was going on.

  • @waldherrweiss
    @waldherrweiss 4 ปีที่แล้ว +5

    Great Video, as always.
    Just as a tip: You could use the any method of the Stream class to reduce the code of your scheduleRequestRetry function. It returns a future which completes with true when the given condition is true. In your case that would be the check if the ConnectivityResult is not none. Alternatively there's the await for Statement built into dart which is also syntactically nicer to read.

  • @luisrogelio98
    @luisrogelio98 4 ปีที่แล้ว +2

    You thought it was your average Flutter tutorial but it was I DIO

  • @sumanparajuli229
    @sumanparajuli229 4 ปีที่แล้ว

    Sir..... why i dont find you earlier.... Just today i found your youtube channel and i also enrolled your resocoder.com website...Just wow.. amazing content with clear visualization or explanation.... Just go on.. At the first day of enrolling your channel i become a fan boy from nepal....

  • @jimmyfmedina
    @jimmyfmedina 4 ปีที่แล้ว +1

    Excelent video, very useful. This is one of my favorite channels to learn Flutter.

  • @ilkercankaya3779
    @ilkercankaya3779 4 ปีที่แล้ว

    you are a legend, best flutter tutorials ever. amazing!

  • @shwepyisoe5240
    @shwepyisoe5240 4 ปีที่แล้ว

    Thanks man. You're really saving my life. I won't forget your help.

  • @Im_Ninooo
    @Im_Ninooo 4 ปีที่แล้ว

    1 minute into the video and I already like it :)

  • @chetan6406
    @chetan6406 4 ปีที่แล้ว

    Thanks matt for this series, absolutely really helpful content.

  • @dennisszymanski4821
    @dennisszymanski4821 4 ปีที่แล้ว +1

    Hey Matt.. I think it's fantastic, that you listen to "fan"-requested video-topics .. I really appreciate that .. So i want to drop my first video request: GraphQL with Flutter .. I don't know if this topic suits your channel, because I think that you would have to explain GraphQL first before you can jump into the Flutter related stuff .. But maaaaaybe if you dont have a better video idea you could do that .. I would really love to see your opinion and your implementation of that. But if you decide that this is no topic for a video on this channel I can understand that :) Anyway: Keep up the great work !

    • @ResoCoder
      @ResoCoder  4 ปีที่แล้ว +2

      Hello Dennis! I've been thinking about making GraphQL tutorials for a while now, it's just not a topic which lends itself to one-off tutorials very well. I'd need to do a short series which I will not do right now BUT I think I'll be able to pull it off in the future.

  • @andreygritsay762
    @andreygritsay762 3 ปีที่แล้ว +3

    With this approach you can't catch request errors as by default. It just won't work and so you can't show an error state to a user. It will be just an endless running function. It would be much better if you could show an error to a user and also schedule a retry request

  • @andreybudnikov5920
    @andreybudnikov5920 4 ปีที่แล้ว

    Tell me. 3:26 min, you clicked a button and the editor displayed the line of code that was causing the problem. How did you do this? Is this some kind of editor plugin?

  • @wajeehulhassan_vii
    @wajeehulhassan_vii 4 ปีที่แล้ว +7

    I was waiting for DDD part 5.

    • @jw4659
      @jw4659 4 ปีที่แล้ว

      Me too - is the DDD tutorial over?

    • @alex_kenbo
      @alex_kenbo 4 ปีที่แล้ว

      +

    • @arifikhsanudin9724
      @arifikhsanudin9724 4 ปีที่แล้ว

      I waiting until it's done so that i can do marathon

  • @kaushalzod5162
    @kaushalzod5162 4 ปีที่แล้ว +3

    how did you created that snippet at 11:15 can you share please

    • @kaushalzod5162
      @kaushalzod5162 4 ปีที่แล้ว

      "Class Creator From the name of File": {
      "prefix": "classFile",
      "body": [
      "class ${TM_FILENAME_BASE/(.*)/${1:/pascalcase}/} {",
      "$1",
      "}"
      ],
      "description": "Class Creator From the name of File"
      }

  • @suryasingh9763
    @suryasingh9763 4 ปีที่แล้ว

    great work Man!!

  • @coolprashantmailbox
    @coolprashantmailbox 4 ปีที่แล้ว

    Thank you so much for this video, it's really helpful

  • @MasterWingman
    @MasterWingman 3 ปีที่แล้ว +1

    Can you please do a video on making a get request that requires basic authentication? I've been having a hard time with this.

  • @verryondrums
    @verryondrums 4 ปีที่แล้ว

    Always pressing like before event watching it ^^

  • @花志雄
    @花志雄 2 ปีที่แล้ว

    Sir, thank you your video show, If I want to useing the Dio 4.0.4 to do "scheduleRequestRetry" method, how can I do?

  • @MohamedDernoun
    @MohamedDernoun 4 ปีที่แล้ว +1

    Thanks for the efforts that you do, but please keep them short, TL&DR 😊

    • @ResoCoder
      @ResoCoder  4 ปีที่แล้ว +2

      TL:Read the written article then 😉

    • @MohamedDernoun
      @MohamedDernoun 4 ปีที่แล้ว

      ​@@ResoCoder reading the written excite you to watch the video, like a trap 😅

    • @ResoCoder
      @ResoCoder  4 ปีที่แล้ว +1

      @@MohamedDernoun 😂 that's my evil goal.

  • @SachinKumar-ie7wh
    @SachinKumar-ie7wh 4 ปีที่แล้ว

    Finally you came up with Dio. ☺️✌️.
    Dio Vs chopper. which one do you preffer?

  • @Sameer_Kumar
    @Sameer_Kumar 4 ปีที่แล้ว

    Hey man!
    Brilliant tutorial. 👍
    Btw, which font scheme you are using here, looks impressive.

  • @devqubs
    @devqubs 4 ปีที่แล้ว +1

    why not use websocket to check connectivity to make sure server is really running?

  • @kulwinderrahal6941
    @kulwinderrahal6941 4 ปีที่แล้ว +1

    i am native android developer and used retrofit in all of projects, now i’m working on flutter and starting new project which option is best DIO or CHOPPER ?

  • @jatinchaudhary383
    @jatinchaudhary383 3 ปีที่แล้ว

    Which vs code theme you are using including the font style as it is looking attractive

  • @etiennetheodore
    @etiennetheodore 3 ปีที่แล้ว

    Hi thanks for the video !! Do you have any idea how to unit test this custom interceptor ?

  • @sergiofranklin8809
    @sergiofranklin8809 4 ปีที่แล้ว

    How did you learn Flutter? From which tutorials or books, give some recommendations please

  • @nicoteufel
    @nicoteufel 4 ปีที่แล้ว +2

    When you're working on an own project, do you plan your app down to the smallest detail?

    • @ResoCoder
      @ResoCoder  4 ปีที่แล้ว +4

      No, I plan the most important parts as a high-level overview and then plan out small chunks as we go.

  • @vivekjunghamal5730
    @vivekjunghamal5730 2 ปีที่แล้ว

    there are lot of changes in current dio : 4.0. Any workaround to this. Like now function doesn't return future but returns void

  • @skirllexrude8170
    @skirllexrude8170 2 ปีที่แล้ว

    Reso i am using dio interceptor but 304 status caught in onerror callback is there any workaround to send it as response to the calling function

  • @FonkamL
    @FonkamL 4 ปีที่แล้ว

    Thanks for the tutorial!
    Can we get the retry functionality with chopper?

  • @AiEnthusiast999
    @AiEnthusiast999 3 ปีที่แล้ว

    big thank you !!!

  • @top10top54
    @top10top54 3 ปีที่แล้ว

    Is there any way to pause, resume and download using dio Package? I need dio show download progress that can be resumed and paused... Help

  • @muhsinzyne695
    @muhsinzyne695 3 ปีที่แล้ว

    Hey is there any breaking changes .? for flutter new version ..?

  • @easazade
    @easazade 4 ปีที่แล้ว

    thanks man, 👍❤

  • @mithuns8410
    @mithuns8410 4 ปีที่แล้ว +1

    how can i add Dio caching to this interceptor?

  • @medamoniaravind8092
    @medamoniaravind8092 4 ปีที่แล้ว

    i want to show the network connectivity error message screen to the user how to do please reply me, thank for your awesome tutorials on flutter

  • @thegorilla8395
    @thegorilla8395 4 ปีที่แล้ว

    dio vs http ? which package i should choose ?

  • @programan6391
    @programan6391 4 ปีที่แล้ว +2

    Code coverage in flutter is very unclear, I would like to see you explain that.

  • @vahaggrigoruyan7228
    @vahaggrigoruyan7228 ปีที่แล้ว

    socketException(socketException: Failed host lookup: ' ' (os error: no address associated with hostname. errno =7))
    Hello whatever i do in the debug mode it stops untill i hit the play button and in the stack there is this error please help me with it i am stuck on it for days already

  • @nourshobier3157
    @nourshobier3157 4 ปีที่แล้ว

    The font you are using is awesome, what's its name?

  • @amrinjaffni4268
    @amrinjaffni4268 4 ปีที่แล้ว

    anyone knows how to change a certain keyword's color? currently I'm using Material Theme Darker, but somehow my "this" keywords remain in white color

  • @dipeshkhanal7407
    @dipeshkhanal7407 3 ปีที่แล้ว

    Nowadays the null safety brings lots of change, can you please make the video again for dio 4.0.0

  • @h3w45
    @h3w45 4 ปีที่แล้ว

    Please make a video about asynchronous programming in flutter.

  • @fredili3002
    @fredili3002 ปีที่แล้ว

    @Reso Coder help this video is 3 years ago and its no longer working how do i fix it

  • @ranskiseee
    @ranskiseee 3 ปีที่แล้ว +1

    Please help in dio version 4.0

  • @mahesh8948
    @mahesh8948 4 ปีที่แล้ว

    How can I implement for token expire scenario.

  • @mike_zander
    @mike_zander 3 ปีที่แล้ว

    When the device goes to sleep and wakes up is there any way to resume download?

  • @wavemusic7153
    @wavemusic7153 3 ปีที่แล้ว

    How can we use thi code for whole app connectivity

  • @TestThenPush
    @TestThenPush 4 ปีที่แล้ว

    Can you please tell how can I achieve this functionality with Chopper?

  • @hamidjahandideh8142
    @hamidjahandideh8142 4 ปีที่แล้ว

    please make some video for BDD
    or some video for TDD vs DDD vs BDD vs ATDD
    thanks reso

  • @programan6391
    @programan6391 4 ปีที่แล้ว

    Hey Matt, how are doing your country/city?

    • @ResoCoder
      @ResoCoder  4 ปีที่แล้ว +1

      We're in a semi-enforced lock down mode. No deaths yet, thankfully.

  • @Adnankhan-jr3gz
    @Adnankhan-jr3gz 4 ปีที่แล้ว

    i am requesting you to make a video on refresh token in interceptors by using Dio.

  • @berthojoris
    @berthojoris ปีที่แล้ว

    Hi reso, please update with new version of dio please :)

  • @mithuns8410
    @mithuns8410 4 ปีที่แล้ว

    Could you please add dio caching for http data

  • @adenaziz3600
    @adenaziz3600 4 ปีที่แล้ว

    would you mind share your vscode settings & extensions?
    i don't have that inheritance line in your editor like:
    ---child: xx
    | mainAxis
    | children
    |------

    • @ResoCoder
      @ResoCoder  4 ปีที่แล้ว +1

      Sure, it's actually a part of the Dart extension. dartcode.org/releases/v3-4/#flutter-outline

    • @adenaziz3600
      @adenaziz3600 4 ปีที่แล้ว

      @@ResoCoder thank you!

  • @petscutest2055
    @petscutest2055 4 ปีที่แล้ว

    what is your font name

  • @polyrtm5545
    @polyrtm5545 4 ปีที่แล้ว

    KONO DIO DA

  • @arifikhsanudin9724
    @arifikhsanudin9724 4 ปีที่แล้ว

    How much is your ram?

  • @NotAChannel4
    @NotAChannel4 4 ปีที่แล้ว +1

    invalid link

  • @musliminontong2918
    @musliminontong2918 2 ปีที่แล้ว

    Please update the video

  • @danvilela
    @danvilela 4 ปีที่แล้ว +1

    "very nice looking UI".. an app bar, a text and a button LOL

  • @Mayanktaker
    @Mayanktaker 4 ปีที่แล้ว

    Make Flutter WordPress Graphql video please

  • @faizulla5838
    @faizulla5838 3 ปีที่แล้ว

    where is code? bro ))

  • @thedude61636
    @thedude61636 4 ปีที่แล้ว

    it's not DAIOO
    it's me dio

  • @plebulus
    @plebulus 4 ปีที่แล้ว

    I would never try trust something named DIO