Code Monkey home page Code Monkey logo

quit-smoking's Introduction

This Project is developed in HACKTOBERFEST 2022 By

I Can And I Will

An application that helps you to quit smoking by showing your everyday performance and boosting your confidence.

Designs for this project

Rules for Contributions

  • Dive into the issues section and find a issue that you want to work on
  • Setup the project in your local system
  • Solve the Issue
  • Commit your progress
  • Open the Pull Request
  • Sit back and Chill

Feel free to create your own issues :)

Thank You to All Our Contributors

Project Setup

This project is built in Flutter v3.3.2

Fork the repository and Clone it
git clone https://github.com/insfirred/quit-smoking.git
Move to the desired folder
cd quit-smoking
To run the app, simply write
flutter pub get
flutter run

Star this Repo ⭐

quit-smoking's People

Contributors

ashishmohapatra240 avatar frey0-0 avatar insfirred avatar mitf avatar samitkapoor avatar sharpsailor avatar stuck-in-a-conundrum avatar swaroopsambhayya avatar tanmai2002 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

quit-smoking's Issues

Create Home Screen

  • Develop a home screen for the app as given in the figma file.
  • A proper timer should be created that updates in real time.
  • The results (like money saved and life saved) should be displayed according to the data input by user in Onboarding Screens, but for now you can hardcode the values.

Refer to Figma file for more info

Design for the screens

Update the Money Saved every minute according to the formula.

In the onboarding screens, User enters some data

  • His Name
  • Number of cigarettes smoked per day
  • Number of cigarettes in one pack
  • Cost of a pack

Calculate the money saved by the user till now and update it accordingly every minute.

Timer in Home Screen is updating every second, you have to calculate the money saved according to timer.

  • First calculate the money saved by user per minute (it could be in decimal).
  • Update it in real time
    HomeScreen

Timer should be updating in real time.

Right Now, the time displaying in the timer is hard-coded. The objective of this issue is to make the timer working that is updating in real time.
As soon as the user open the app for the first time, the timer starts from 0 seconds and keeps goings.

timer

Refer to FIGMA FILE for more info

Greeting message should be displayed according to current time.

greetings
Right now, This greeting message is hard-coded as Good Evening, have to make it dynamic.
The Greeting message should be displayed according to the current time of the user's device.

Greeting message convention

  • 05:00 AM - 11:59 AM -> Good Morning
  • 12:00 PM - 04:59 PM -> Good Afternoon
  • 05:00 PM - 04:59AM -> Good Evening

Update the Cigarette saved till now (It should be updating in real time)

In the onboarding screens, User enters some data

  • His Name
  • Number of cigarettes smoked per day
  • Number of cigarettes in one pack
  • Cost of a pack

Calculate the cigarettes saved by the user till now and update it accordingly every minute.

Timer in Home Screen is updating every second, you have to calculate the cigarette saved according to timer.

  • First calculate the number of cigarette smoked by user per minute (it could be in decimal).
  • Update it in real time
    HomeScreen

Share the progress of the user as a image.

share
By clicking on share button, user should be able to share his/her progress as a image.

Image to be shared should be like this

imagetobeshared

You can find the tutorial for sharing widget's screenshots here.

Display the LIFE SAVED in hours on HomeScreen calculated by given formula

User enter his/her details in onboarding screens, by using those details

  • Calculate the life of user saved till now in hours.
  • Display it on the HomeScreen.
  • It should be updating in the real time.

Formula for calculating life saved.

1 cigarette can decreases your life span by 11 minutes,

  • It means, if you are not smoking 1 cigarette for 1 day then your life saved will be 11 minutes after a day.
  • Not smoking 10 cigarette for 1 day then you save 660 minutes after a day.

Comment down if any doubt regarding this issue

Display a random motivating fact

Display a random motivating fact that updates everytime in some period of time (like changes in every 30 seconds).

Suggestions

  • Can use any API.
  • or Create a list of many motivating facts and fetches them from that list.
    greetings

Refer Figma file for more info

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.