Code Monkey home page Code Monkey logo

assignment's Introduction

assignment

Challenges: While decoding data of a HTTP response of a API there were many discrepancies such as missing values etc. So I tried to use null checking etc but the issue was not resolving. In this yummly API there were food images which i wanted to use as cover for the recipe cards.

I tried two more API and various problem arose. I finally found an API with decent data . (Recipe by API-Ninjas). I then Used the API to make a list of Recipe titles and number of servings. I then provided with ingredient list and instructions for the recipe.

Approach

created main.dart file and added a home page and a detail page. created a recipe widget and detail widget seperately after viewing the API response structure and data. created a recipe class in which we will store the data from the response after decoding. created a recipe api file in which I collect json response from API after stting up API key and host. From there the json response is decoded and then made into a list of recipe class which is showed on the home page. Built a list of items with LISTview builder and added a gesture detector to detect tapping o the widget. After the widget is tapped navigator pushes the detail screen with a list of passed arguments. These passed arguments then are used to display all information on the detail screen.

apk file is available for use as app.apk

assignment's People

Contributors

parthmakode avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.