Deleting Resources in a REST API | DELETE Request | Consuming a REST API in Flutter #7

preview_player
Показать описание
►SUBSCRIBE TO THE CHANNEL◄

►FOR ANY QUESTIONS CONTACT ME AT◄

►SOURCE CODE◄

►THE API USED IN THIS VIDEO◄
Рекомендации по теме
Комментарии
Автор

Amazing Series. Thank you for posting this. Looking forward to more amazing Flutter Content!

ducksoncookies
Автор

Thank you very much this helped me to grasp how actually get an post method works

dikshithpk
Автор

Awesome videos - I had a problem when I deleted all the notes with the error: Make sure to implement the onDismissed handler and to immediately remove the Dismissible widget from the application once that handler has fired. fixed it with the following:
return Dismissible(
key: Key(_apiResponse.data[index].noteID),
direction: DismissDirection.horizontal,
onDismissed: (direction) {
setState(() {

});
},

patrickferguson
Автор

for people who like to use the snack bar, you can just change the function parameters of itemBuilder under ListView widget to itemBuilder: (context, index) {...}

garychanchihang
Автор

Thanks for the videos! it helped a lot!

TheEvandroeban
Автор

Got an error:
A dismissed Dismissible widget is still part of the tree

My solution:
return Dismissible(
key: UniqueKey(),
...
)

Is it fine solution? Cause we still repeat the same key in final deleteResult.
At least, no more error.

ivanianovskii
Автор

Thanks for this amazing tutorial! I have a small issue to fix, when I delete an element from the list I can still see the divider, there are two dividers together. How can I delete de divider when I delete the note? Thanks!

FerBueroTrebino
Автор

Amazing series of consuming rest API..
What's your next upcoming plans for this channel?

TheEntium
Автор

I have an error I/Flutter (5315) observatory server failed to start

Daniiel-AR
Автор

onDismissed: (direction) async {
await
},

I did this way because I've thought, if confirmDismiss was completed onDismissed will be executed and not if on the other way

luix
Автор

you are returning return deleteResult?.data ?? false; ====onpressed ok

but after if(result){} you also return result; i removed it because the swipe red background and delete icon was not dismission after successfully deleting a note maybe i am wrong but it works with me

nabeeljaved
join shbcf.ru