nisrulz / flutter-examples

[Examples] Simple basic isolated apps, for budding flutter devs.
https://nisrulz.com/flutter-examples/
Apache License 2.0
6.91k stars 1.66k forks source link

Example Request: Covid-19 Mobile App #70

Closed mehdi1514 closed 10 months ago

mehdi1514 commented 3 years ago

Hey Nishant,

I would like to contribute to this repo. I have created a mobile app that tracks Covid-19 cases. It uses the NovelCOVID API to fetch the results. I have also included some data visualizations in the app.

nisrulz commented 3 years ago

Great! Thank you for opening this issue.

Ok, first a few things:

mehdi1514 commented 3 years ago

I have changed the package name according to the guidelines. The package name in the case of this example app is github.nisrulz.

I have split the code into different files. I will document the code and also use understandable variable names as much as possible. I have also formatted the code in every file.

I am using the latest version of flutter viz. v 1.22.0

The packages used in this project are as follows:

  1. number_display - to display data in a width-limited component. For eg: it converts 2500000 to 2.5M
  2. http - to send HTTP requests to the API
  3. bezier_chart - to visualize the received data from the API
  4. folding_cell - to display a foldable cell to view details(total deaths, today cases, etc.). This foldable cell is present in the 'Affected Countries' page.

There is a requirement to use the API because without the API, it is not possible to get the data(total deaths, today deaths, total cases, active cases, etc.).

nisrulz commented 3 years ago

Looks good to me.

I think you are good to open the PR. Make sure you branch from develop, add all your changes and then open your PR against develop.

mehdi1514 commented 3 years ago

I have opened the PR. Please if you could review it.

nisrulz commented 10 months ago

PR #73 was merged. Closing the issue.