Oflutter: Create a Recipe List App using Flutter and API

Поділитися
Вставка
  • Опубліковано 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 Рік тому +7

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

  • @Grinwa
    @Grinwa 9 місяців тому

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

  • @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!

  • @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.

  • @Grinwa
    @Grinwa 9 місяців тому

    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 ❤

  • @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'

  • @YandryPozo
    @YandryPozo 2 роки тому +2

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

    • @oflutter
      @oflutter  2 роки тому +1

      Glad to help you 😌

  • @smartgaming33531
    @smartgaming33531 Рік тому

    Great efforts sir we want more videos abouts flutter projects🤩

  • @kaushalyaroshan
    @kaushalyaroshan 2 роки тому

    Amazing tutorial with clear voice 😍

  • @JerrysTechCorner
    @JerrysTechCorner 3 роки тому +2

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

  • @terrygilligan790
    @terrygilligan790 2 роки тому

    Great video, thanks for the Input.

  • @aouadicharaf1038
    @aouadicharaf1038 Рік тому

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

  • @afiatinaliaazani-hf5gd
    @afiatinaliaazani-hf5gd 7 місяців тому

    Thank you so much for the knowledge

  • @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 :)

  • @Juliapak
    @Juliapak Рік тому

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

  • @bluehydrogen
    @bluehydrogen 11 місяців тому

    Thanks, brother for the knowledge

  • @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.

  • @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 ??

  • @mracipayam
    @mracipayam 2 роки тому

    Greate explanation, subbed!

  • @mkhwanazicebo4448
    @mkhwanazicebo4448 Рік тому

    kudos , you the best man.

  • @abishekab21
    @abishekab21 4 місяці тому

    Incredible video bro

  • @alvido97
    @alvido97 2 роки тому

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

  • @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

  • @pauldufour5634
    @pauldufour5634 Рік тому +1

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

  • @abdulrahmanalsefi6418
    @abdulrahmanalsefi6418 2 роки тому

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

  • @ahmedtaha6937
    @ahmedtaha6937 2 роки тому

    i leaned so much from your video, thank u

  • @carolinedesouza7570
    @carolinedesouza7570 2 роки тому

    Perfect video!! Thanks

    • @oflutter
      @oflutter  2 роки тому

      You are welcome 🙏

  • @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?

  • @nakokiko
    @nakokiko 3 роки тому

    very useful. thank you for the tutorial

  • @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.

  • @heysubolick9012
    @heysubolick9012 3 роки тому +1

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

  • @semihhyilmaz
    @semihhyilmaz Рік тому

    You are a very good tutorial, thank you!

  • @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

  • @kanishka__
    @kanishka__ 5 місяців тому +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?*

  • @alotszhra2488
    @alotszhra2488 2 роки тому

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

  • @sureshchitmil
    @sureshchitmil 3 роки тому +3

    Good tutorial thank you.

    • @oflutter
      @oflutter  3 роки тому

      You’re welcome, thanks for comment!:)

  • @Vikkybliz
    @Vikkybliz 2 роки тому +1

    You really explained this very well

  • @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

  • @atifullah7567
    @atifullah7567 3 роки тому +1

    Great

  • @LahssaneFair
    @LahssaneFair 3 роки тому +1

    keep it up good tutorial

  • @sontopito8765
    @sontopito8765 2 роки тому

    Thank you 😇Nice tutorial

  • @001Debjeet
    @001Debjeet 3 роки тому

    perfect explanation brother
    Subbed ;)

  • @Tiffaa_
    @Tiffaa_ Рік тому

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

  • @alaaabdullah2648
    @alaaabdullah2648 Рік тому

    How can I get the data in complex JSON ?

  • @mohamedsabir9867
    @mohamedsabir9867 8 місяців тому

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

  • @videos4y0u28
    @videos4y0u28 Рік тому

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

  • @nguyenphuocsang1505
    @nguyenphuocsang1505 2 роки тому +1

    very thanks you. can you continue with detail screen?

  • @muzammillone8362
    @muzammillone8362 Рік тому

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

  • @funaustralia6517
    @funaustralia6517 Рік тому

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

  • @tugba_dokumaci
    @tugba_dokumaci Рік тому

    tysm

  • @sikkicoding
    @sikkicoding Рік тому

    Thank you sir

  • @andhikawicaksono6949
    @andhikawicaksono6949 2 роки тому

    Why is the data from the api not showing up?

  • @genesiswin4831
    @genesiswin4831 2 роки тому

    awesome

  • @ai-bloggers
    @ai-bloggers Рік тому

    Please, don't stop 🚀🚀🚀

  • @Badlapur2Banarasvlogs
    @Badlapur2Banarasvlogs Рік тому

    sir how to use directions in yummuly API?

  • @mwebber3537
    @mwebber3537 2 роки тому

    thanks🤝

  • @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 Рік тому

      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 11 місяців тому

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

  • @ajdinzejnirovic7502
    @ajdinzejnirovic7502 2 роки тому

    Thanks a lot!

  • @daredevil6145
    @daredevil6145 Рік тому +2

    API isn't working nowadays.

  • @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

  • @darshitjani8273
    @darshitjani8273 Рік тому +1

    Why not use Null safety. So many errors.

  • @bffft5716
    @bffft5716 3 роки тому +5

    This is what i need

    • @oflutter
      @oflutter  3 роки тому

      I'm glad to hear 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

  • @dhiaaeddinemansouri5680
    @dhiaaeddinemansouri5680 3 роки тому

    thank you

  • @hamidalikhan1464
    @hamidalikhan1464 3 роки тому

    Amazing

  • @redwanulhaque7887
    @redwanulhaque7887 2 роки тому

    api link is not working

  • @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

  • @deadeye18
    @deadeye18 Рік тому

    zenkyuu

  • @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

  • @shouryapandey3003
    @shouryapandey3003 2 роки тому +1

    bro just pls try to explain working of json in flutter

  • @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

  • @monishreddy6983
    @monishreddy6983 3 роки тому +2

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

    • @dargwa1046
      @dargwa1046 2 роки тому

      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

  • @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

  • @ulolmoto4854
    @ulolmoto4854 3 роки тому

    Hi, what programming languages is this?

  • @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

  • @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 ?

  • @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..?

  • @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

  • @cunningmentor
    @cunningmentor 3 роки тому +2

    you will boom the other's tutorial

  • @poweruser60
    @poweruser60 3 роки тому +3

    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