Oflutter: Create a Recipe List App using Flutter and API

Поделиться
HTML-код
  • Опубликовано: 28 апр 2021
  • In this video, we will learn how to create a simple recipe list app using the Flutter framework and API. This tutorial was made for flutter beginners. You will learn how to create the right project structure, models for Recipe and API. And more!!! Some key flutter widgets and points for this tutorial:
    ------
    * API
    * RecipeCard ()
    * AppBar ()
    * MaterialApp ()
    * ThemeData ()
    * factory Recipe.fromJson ()
    * @override toString ()
    * RecipeApi ()
    ------ and more...
    Website:
    oflutter.com
    Official Article + Source Code: [Simple Recipe List App using Flutter and API 2021]
    oflutter.com/simple-recipe-li...
    Rapid API: Yummly
    rapidapi.com/apidojo/api/yummly2
    If you buy me a coffee, you will make my day :)
    / oflutter
    Tags:
    #Oflutter #Flutter #FlutterTutorials

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

  • @aneesasghar8428
    @aneesasghar8428 Год назад +9

    Tons of knowledge very efficiently compressed into 13 mins, and at no point did I feel lost. Thank you!

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

      You are welcome 🤗

  • @KeeBui
    @KeeBui Год назад +4

    It would be lovely to get an update on this regarding adding a new feature for checking the description of each recipe and their ingredients etc!

  • @Grinwa
    @Grinwa 10 месяцев назад

    Yo don't stop these tutorials 😢😢😢😢
    U have performance to become a really leading RUclipsr i can assure u that

  • @Grinwa
    @Grinwa 10 месяцев назад

    This so freaking awesome exactly what i needed
    I just made a python api and i want my app to display content in cards just like that thanks ❤

  • @YandryPozo
    @YandryPozo 2 года назад +2

    Extremely well done example, just what I needed, great job 👍😃

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

      Glad to help you 😌

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

    This tutorial was awesome! You should make more videos like this!

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

    thanks before even finishing the video, keep up the good work

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

    Thanks for the tutorial. I made a hate commend early today but it turns out it was a foolish mistake of mine. Great content.

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

    Amazing tutorial with clear voice 😍

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

    Great efforts sir we want more videos abouts flutter projects🤩

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

    Great video, thanks for the Input.

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

    Very good tutorial. I need to design my own api with my urls I own. This helps me get some insights!

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

      You are welcome 🤗

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

    Excellent! Please consider making a tutorial with flutter integrated with redux architecture. Thanks

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

      Sure, I will think about it :)

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

    Hi instructor , while displaying the items in home.dart i got following error
    Expected a value of type 'Iterable', but got one of type 'Null'

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

    Greate explanation, subbed!

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

    This was very helpful for me , ❤️❤️❤️

  • @afiatinaliaazani-hf5gd
    @afiatinaliaazani-hf5gd 8 месяцев назад

    Thank you so much for the knowledge

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

    Thank you, great explanation. Could you please do a toutrial about notification

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

    very useful. thank you for the tutorial

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

    You are a very good tutorial, thank you!

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

    This video is super duper awesome. it helped me a lot.

  • @bluehydrogen
    @bluehydrogen 11 месяцев назад

    Thanks, brother for the knowledge

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

    kudos , you the best man.

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

    Perfect video!! Thanks

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

      You are welcome 🙏

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

    i leaned so much from your video, thank u

  • @001Debjeet
    @001Debjeet 3 года назад

    perfect explanation brother
    Subbed ;)

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

    You really explained this very well

  • @abishekab21
    @abishekab21 4 месяца назад

    Incredible video bro

  • @sureshchitmil
    @sureshchitmil 3 года назад +3

    Good tutorial thank you.

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

      You’re welcome, thanks for comment!:)

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

    Thank you 😇Nice tutorial

  • @pauldufour5634
    @pauldufour5634 Год назад +1

    Hello, great video but is it possible to add a click function on each item of the list?

  • @kanishka__
    @kanishka__ 6 месяцев назад +1

    I created the exact same project but it's not working. All I see is circular progress indicator on the screen. *Can someone help me?*

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

    Great

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

    Thank you sir

  • @rajkurane2507
    @rajkurane2507 6 месяцев назад +2

    is this those are the real videos and if i click on that it will start ?
    pls reply beacuse i was searching for an api like videos of recipes.

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

    Thanks a lot!

  • @nipu_b98
    @nipu_b98 Год назад +1

    Very well explained.😇But trying to show recipes on my application. However, it keeps loading and doesn’t show recipes on the Emulator. How I fix that.

  • @nuriddintashpulatov4233
    @nuriddintashpulatov4233 2 года назад +2

    for everyone who's getting errors in parsing response, put this code in RecipeApi class:
    for (var i in data['feed']) {
    if (i['type'] == "single recipe") temp.add(i['content']['details']);
    }

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

      it is still error

    • @videos4y0u28
      @videos4y0u28 Год назад +1

      But still eroor the data is not loading 😥😭

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

      tq now my code was functional but can you explain why we add the type and single recipe

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

      whoa thanks it worked!
      im still lost tho xD,
      compared to javascript way of consuming api this is abit complicated lol

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

    awesome

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

    Hello I really liked your tutorial. Thank you very much but I have a problem, I can not get the pictures of the kitchens despite the fact that I inserted my API key after registering on yummy. Can you help me please?

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

    thanks🤝

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

    tysm

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

    this video was so informative and the quality of video was awesome please can you make a video on how to send Post request in flutter thanks

  • @savansachapara2766
    @savansachapara2766 Год назад +2

    Expected a value of type 'Iterable', but got one of type 'Null'
    this kind of erroe is comming and the final app is loading noting displayed still

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

    very thanks you. can you continue with detail screen?

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

    NoSuchMethodError: The method '[]' was called on null. ? this error occured in 'recipeapi' i can not figured out this error since five days will you please help me

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

    keep it up good tutorial

  • @abduiron9648
    @abduiron9648 Год назад +1

    I tried but this didn't worked for me, So to tell what I have done, I just implemented as he have done it. Now that seems not a nice thing. One more thing, I know nothing about API implementation. So any suggestions on what should I do ??

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

    zenkyuu

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

    thank you

  • @bffft5716
    @bffft5716 3 года назад +5

    This is what i need

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

      I'm glad to hear it!

  • @ai-bloggers
    @ai-bloggers Год назад

    Please, don't stop 🚀🚀🚀

  • @athsukijanblank8325
    @athsukijanblank8325 Год назад +1

    Could you help me with json['rating'] as double?
    Its error in me
    Edit: its my final String rating not final double rating. My bad

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

    Amazing

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

    Hi,I write all code in flutter without error but the program is not running out.

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

    Hi! Would it be possible to redo this tutorial recipe app with BLoC please? I'm struggling with learning it.

  • @ilaydaa208
    @ilaydaa208 Год назад +2

    idk why and idk what is the problem is but last step is not working for me..... it stays at loading and turns into a time out error.. btw it was amazing video taught me lots of things thankss

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

      sorma ilayda bende de aynısı oldu kaldı orda

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

    I would like to subscribe and like for the youtube algorithm. Helped me find this video by recommending it to me.

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

      Thanks 😊 I appreciate you

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

    how can to do change other recipe? I mean, if I want to get beef recipe

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

    How can I get the data in complex JSON ?

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

    i cant seem to get data from api call as i recieve null

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

    Sir I have error the data is not loading from Json using api only the circularProgressIndicator is cycling 😥😭

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

    Why is the data from the api not showing up?

  • @mohamedsabir9867
    @mohamedsabir9867 9 месяцев назад

    how could you link the xcode emulator to vs code i need an answer sone pls, and ty

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

    If someone does not see the api in debug mode, you need to add a tag parameter in rapid api.

  • @c2610.
    @c2610. 3 года назад

    Have you thought about a social media app tutorial?

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

      Yes, I will make it at some point

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

    sir how to use directions in yummuly API?

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

    Loved the tutorial. I learned a lot about APIs.
    I encountered a problem (copy and pasting your code) when I try to return the RecipeCard in home.dart
    error: 4 positional arguments expected, but 0 found
    I copy and pasted your recipe.dart, recipe_card.dart and home.dart
    Any idea what could be wrong?

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

      If you hover RecipeCard, you will see that it has 4 required arguments. You need to add them. Hopes that help 😊

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

      @@oflutter I did exactly that. I copy and pasted your code. Error = 4 positional arguments expected, but 0 found
      return RecipeCard(
      title: _recipes[index].name,
      cookTime: _recipes[index].totalTime,
      rating: _recipes[index].rating.toString(),
      thumbnailUrl: _recipes[index].images);
      I thought it couold be in the declaration of the Recipe class,...but I also pasted your code for that

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

      Post your full project on git, and send me a link I will check. If you want to, you can email me privately: hello@oflutter.com

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

      @@oflutter Thank you. Email sent

  • @farhanashari5149
    @farhanashari5149 2 месяца назад

    Excuse me, i have a question. Can you explain (or give the example) in the for loop if you want get all the data in the feed

    • @farhanashari5149
      @farhanashari5149 2 месяца назад

      I mean in 9:20 you want to get all data in details, so the for loop is var i on data['feed'] and you add ['content']['details'], can you explain if i want to use for loop to get all feed data

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

    bro just pls try to explain working of json in flutter

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

    is this tutorial in null safety? im getting error making api calls like null is not a subtype of string

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

      No, it's not a null safety tutorial

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

    (NoSuchMethodError: The method '[]' was called on null. ?

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

      have you find any solutions?

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

      same error bro and still i couldn't find solution can any help us

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

      @@furquanahmad846 null safety issue...still trying to fix it

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

    Thanks for the tutorial, but now your code doesn't work and needs updating.
    1. @required --> required (recipe_card.dart)
    2. recipe.dart / Recipe ({.. / before every "this." needs --> required
    But I couldn't figure out the last error I get in home.dart. "Error: Field '_recipes' should be initialized because its type 'List' doesn't allow null"
    Any ideas how to fix this?

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

      These problems appear when SDK is sdk: ">=2.12.0 =2.7.0

    • @xmasterg101
      @xmasterg101 3 года назад +3

      Unfortunately still couldn't run the app. Seems that these "null" errors must be fixed after the Flutter latest updates

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

      I have the same error, how can I solve it ?

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

    you will boom the other's tutorial

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

    Amazing, can you please do a tutorial about rest api from woocommerce to flutter app ?

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

      Thanks for comment! Yea, that my be interested. Will take in consideration

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

    api link is not working

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

    Hi, what programming languages is this?

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

    I am getting the following error:
    Unhandled Exception: type 'Null' is not a subtype of type 'String' in type cast
    Can you please help?

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

      What video time ?

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

      @@oflutter It is coming when I'm taking data from the api in the list.. As if the format is not supported

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

      @@shailjatripathi1268 you find any solution..?

  • @darshitjani8273
    @darshitjani8273 Год назад +1

    Why not use Null safety. So many errors.

  • @daredevil6145
    @daredevil6145 Год назад +2

    API isn't working nowadays.

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

    The Yummly Recipe API used in this video ceased operation effective September 30, 2019 - so don't waste your time with this tutorial, I can't believe the API ceased to be available 7 months before this video was last edited.

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

      Yummly Recipe API was updated 4 month ago, and it's still working :D

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

      @@oflutter The Yummly API is no longer accepting new applications, it's still working for existing users, hence your perception, but new users can't access it - hence my comments.

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

      Not sure about that, just logged under new account, everything is ok

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

      @@oflutter what URL did you use to create a new account ?

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

      Same what I provided in video

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

    pembohong