Professional Documents
Culture Documents
Muhammad Ashhar
Muhammad Sufian
Nauman Rasheed
Supervised By
Engr Muhammad Umer Haroon
OCTOBER, 2022
ABSTRACT
In the era of the 21st century, the world is progressing with every passing day. The world has
seen a revolution in the form of technology over the years. As humans around the world are
interested in measuring their weight, eating more healthy meals, and keeping off junk foods,
a system that could measure energy and nutrition in everyday food may be very useful for
keeping our fitness. Food calorie and nutrition measurement systems may be very beneficial
for dietitians and users to measure and control their day-by-day food consumption.
The developed AI-based nutritionist will help the users maintain their diet without the need to
visit a nutritionist or a dietitian. A dietitian consults a person based on his/her schedule, body
type, height, and weight. The system asks for this data from the user and processes it. It asks
about how many hours the user works, his/her height, weight, and age. The system stores and
processes this data and then calculates the nutrient value needed to fill up the user’s needs.
The system can act as your personal nutritionist while nutritionists can also get a lot of
information by using this system. The user can get details about several nutrients, and
vitamins of a fruit or vegetable. The system helps the user choose what to eat and what is
good and what will help him.
The system was tested by one of our team members and it helped him in managing his daily
diet and losing weight using the daily meal plan generated by the system.
I
CERTIFICATE
Dated: _____________
Final Approval
COMMITTEE
Mr.Naveed Ahmed
Head Project Committee Signature: _______________
I
DECLARATION
We hereby declare that our dissertation is entirely our work and genuine / original. We
understand that in case of discovery of any PLAGIARISM at any stage, our group will be
assigned an F (FAIL) grade and it may result in withdrawal of our Bachelor’s degree.
1
UNDERTAKING
We hereby undertake that we are marking this group for our final year project by our own choice. We
entirely must complete this project in time. In case of failure or underperforming, neither the
university nor the supervisor will be held responsible for unsatisfactory performance.
1
TABLE OF CONTENTS
Chapter
Page
Chapter 1: Introduction...........................................................................................................1
1.1 Introduction..................................................................................................................2
1.2 Motivation...................................................................................................................2
1.3 Problem Description....................................................................................................2
1.4 Personal Nutritionist....................................................................................................2
1.5 Goals and Objectives...................................................................................................3
1.6 System Features...........................................................................................................3
1.6.1 Registration..................................................................................................................3
1.6.2 Diet Plan......................................................................................................................3
1.6.3 Diet Plan Guide............................................................................................................3
1.6.4 Weight Graph...............................................................................................................3
1.6.5 Integrity of Data...........................................................................................................3
1.7 Scope...........................................................................................................................3
1.8 Process Model.............................................................................................................4
1.9 Nature of the Project....................................................................................................4
1.9.1 Android Studio.............................................................................................................4
1.9.2 Flutter Framework.......................................................................................................4
1.9.3 Firebase........................................................................................................................4
1.9.4 Python..........................................................................................................................4
1.10 Overview of the Report...............................................................................................4
Chapter 2: Background and Existing Work..........................................................................5
2 Introduction.................................................................................................................6
2.1 Important Construction of the Application Domain....................................................6
2.1.1 Android application for User.......................................................................................6
2.1.2 Updating Data in Real-Time Database........................................................................6
2.2 Existing System and Their Limitations.......................................................................6
2.2.1 Personalized Nutrition.................................................................................................6
2.2.2 DNA FIT......................................................................................................................7
2.2.3 FAT Secret...................................................................................................................7
2.3 Limitations of the Existing Systems............................................................................7
i
2.3.1 Personalized Nutrition.................................................................................................7
2.3.2 DNA Fit.......................................................................................................................7
2.3.3 FAT Secret...................................................................................................................7
2.4 Comparison with the Existing System........................................................................8
2.5 Summary......................................................................................................................8
Chapter 3: Requirements Specification.................................................................................9
3 Introduction..............................................................................................................10
3.1 Developmental flow of the system...........................................................................10
3.2 Interface Requirements.............................................................................................12
3.2.1 Hardware Interface Requirements............................................................................12
3.2.2 Software Interface Requirements..............................................................................12
3.3 Functional Requirements..........................................................................................13
3.3.1 User Registration......................................................................................................13
3.3.2 Diet Planner..............................................................................................................13
3.3.3 Workout....................................................................................................................13
3.4 Use Case...................................................................................................................14
3.5 Use-Case Description...............................................................................................16
3.5.1 Registration..............................................................................................................16
3.5.2 Login........................................................................................................................16
3.5.3 Subscribe for E-mail................................................................................................17
3.5.4 Personal Info............................................................................................................17
3.5.5 Search Meal Info......................................................................................................18
3.5.6 View Food Details....................................................................................................19
3.5.7 Add Workout............................................................................................................19
3.5.8 Setting......................................................................................................................20
3.6 Non-Functional Requirements.................................................................................20
3.6.1 Efficiency.................................................................................................................20
3.6.2 Usability...................................................................................................................30
3.6.3 Consistency..............................................................................................................30
3.7 Resource Requirements............................................................................................30
3.6.4 Hardware Resources.................................................................................................30
3.6.1 Software Interface....................................................................................................31
3.7 Project Feasibility....................................................................................................31
ii
3.7.1 Technical Feasibility................................................................................................31
3.7.2 Social Feasibility......................................................................................................31
3.7.3 Economic Feasibility................................................................................................31
3.8 Summary..................................................................................................................31
Chapter 4: System Modeling.................................................................................................25
4 Introduction..............................................................................................................26
4.1 Design Approach.....................................................................................................26
4.1.1 Top-Down Design Approach...................................................................................26
4.1.2 Bottom-Up Design Approach..................................................................................26
4.2 Design Interface.......................................................................................................26
4.3 High Fidelity Prototype............................................................................................26
4.3.1 Welcome Screen.......................................................................................................27
4.3.2 Login Screen...........................................................................................................27
4.3.3 User Registration.....................................................................................................28
4.3.4 Personal info Form..................................................................................................29
4.3.5 Homepage...............................................................................................................33
4.3.6 Diet plan Screen......................................................................................................34
4.3.7 Setting screen..........................................................................................................35
4.3.8 Workout screen.......................................................................................................36
4.4 View Model of Architecture...................................................................................37
4.4.1 Logical View...........................................................................................................37
4.4.2 Process View...........................................................................................................39
4.4.3 Sequence Diagrams.................................................................................................44
4.4.4 Development View..................................................................................................50
4.4.5 Physical view...........................................................................................................51
4.5 Summary.................................................................................................................51
Chapter 5: Implementation...................................................................................................52
5 Introduction.............................................................................................................53
5.1 Modules...................................................................................................................53
5.1.1 Login Module..........................................................................................................53
5.1.2 Signup Module........................................................................................................53
5.1.3 Personal info gathering Module..............................................................................53
5.1.4 Food choices............................................................................................................53
iii
5.1.5 Diet plan..................................................................................................................53
5.1.6 Workout...................................................................................................................53
5.1.7 Dishes......................................................................................................................54
5.1.8 Graphs.....................................................................................................................54
5.2 Framework..............................................................................................................54
5.2.1 Flutter......................................................................................................................54
5.3 Libraries..................................................................................................................54
5.3.1 Firebase-database....................................................................................................54
5.3.2 Get...........................................................................................................................54
5.3.3 Path-provider...........................................................................................................54
5.3.4 Cache network images............................................................................................54
5.3.5 Front awesome flutter..............................................................................................54
5.3.5.1 Bottom Navy Bar.....................................................................................................55
5.3.5.2 Local Auth...............................................................................................................55
5.4 Summary.................................................................................................................55
Chapter 6: Result/Testing, Analysis and Validation...........................................................56
6 Introduction................................................................................................................57
6.1 Testing Methodology.................................................................................................57
6.2 Test Bed......................................................................................................................57
6.3 Test Cases...................................................................................................................57
6.3.1 Test Case of signup....................................................................................................58
6.3.2 Test Case of Login.....................................................................................................59
6.3.1 Test Case of Profile info............................................................................................60
6.3.2 Test Case of Food choices..........................................................................................61
6.3.3 Test Case of Diet plan................................................................................................62
6.3.4 Test Case of Home Screen.........................................................................................63
6.3.5 Test Case of Dishes....................................................................................................64
6.3.6 Test case of Dishes (Fixed)........................................................................................65
6.3.7 Test case of Workout..................................................................................................66
6.4 Summary....................................................................................................................67
Chapter 7: Conclusion and Future Work............................................................................68
7 Introduction................................................................................................................69
7.1 Overview of System...................................................................................................69
iv
7.2 Milestone Achieved....................................................................................................69
7.2.1 Android Based Application Development..............................................................69
7.2.1.1 Login.......................................................................................................................69
7.2.1.2 Signup.....................................................................................................................69
7.2.1.3 Personal info............................................................................................................69
7.2.1.4 Food choices............................................................................................................69
7.2.1.5 Diet plan..................................................................................................................69
7.2.1.6 Workout...................................................................................................................69
7.2.1.7 Dishes......................................................................................................................70
7.3 Limitations..............................................................................................................70
7.4 Future Work............................................................................................................70
7.5 Summary.................................................................................................................70
APPENDICES..........................................................................................................................71
Appendix I – User Manual.......................................................................................................71
Appendix II – Glossary............................................................................................................72
References
v
LIST OF FIGURES
Figures Caption Page
3.1 Flow Diagram................................................................................................................
3.2 Use Case Diagram.........................................................................................................
4.1 Welcome Screen............................................................................................................
4.2 Login Screen.................................................................................................................
4.3 User registration............................................................................................................
4.4 Age selector...................................................................................................................
4.5 Height selector...............................................................................................................
4.6 Weight selector..............................................................................................................
4.7 Homepage.....................................................................................................................
4.8 Diet plan........................................................................................................................
4.9 Settings..........................................................................................................................
4.10 Workout page................................................................................................................
4.11 Class Diagram...............................................................................................................
4.12 Activity Diagram...........................................................................................................
4.13 Login Activity diagram.................................................................................................
4.14 Signup Activity Diagram..............................................................................................
4.15 Personal info Activity Diagram.....................................................................................
4.16 Homepage activity diagram..........................................................................................
4.17 State machine diagram..................................................................................................
4.18 Login Sequence.............................................................................................................
4.19 Register Sequence.........................................................................................................
4.20 Graph Sequence.............................................................................................................
4.21 Meal Data Sequence......................................................................................................
4.22 Workout.........................................................................................................................
4.23 Share application sequence...........................................................................................
4.24 Diet plan sequence........................................................................................................
4.25 Component Diagram.....................................................................................................
vi
LIST OF TABLES
Table Caption Page
2.1 Comparison between Existing System and developed System.......................................
3.1 FR-1 User Registration...................................................................................................
3.2 Diet Planner.....................................................................................................................
3.3 Workout...........................................................................................................................
3.4 Registration Use case:....................................................................................................
3.5 Login Use Case..............................................................................................................
3.6 Subscribe for E-mail Use Case.......................................................................................
3.7 Personal Info Use Case..................................................................................................
3.8 Search Meal Info............................................................................................................
3.9 View Food Details Use Case..........................................................................................
3.10 Add Workout Use Case.................................................................................................
3.11 Setting Use Case...........................................................................................................
6.1 Test Case of Signup......................................................................................................
6.2 Test Case of Login........................................................................................................
6.3 Test Case of Signup......................................................................................................
6.4 Test Case of Location....................................................................................................
6.5 Test Case Vehicle Info..................................................................................................
6.6 Test Case Search...........................................................................................................
6.7 Test Case of Store Screen..............................................................................................
6.8 Test Case of View Product............................................................................................
6.9 Test case of Dishes (Fixed)...........................................................................................
6.10 Test case of Workout.....................................................................................................
vii
CHAPTER 1
INTRODUCTION
1.1 Introduction:
This chapter gives an overview of our system like what was the initial problem that motivated
us to create the system, how our system solves the problem, and what extra features it
provides. The technologies used to create the system are also discussed in this chapter.
1.2 Motivation:
As individuals across the globe are turning out to be keener on watching their weight, eating
better food and keeping away from lousy nourishment, a system that can quantify calories
and sustenance in consistently dinners can be exceptionally helpful for keeping up with our
wellbeing. Food Calorie and Nutrition estimation system is exceptionally advantageous for
dietitians and patients to gauge and deal with the everyday food admission. The developed
system is a responsive app, which contains the information and information with respect to
the wellness of an individual. The fundamental data identified with the wellness like how to
keep up with great wellbeing by doing a few exercises and by eating some food items which
incorporates calories, proteins and starches and so on.
2
routine requires ace data on food things and is a drawn-out methodology. Diet plan changes
from one individual to another, which was not remembered while growing a large portion of
system and AI applications. The application is generally imperative to keep track on
wellbeing status of the client. No need of extraordinary dietitian and no more need of
squandering cash out for looking up yourself.
1.6.1 Registration:
The system will get personal information from the user to get the fully functional system and
create a profile for them.
1.7 Scope:
The developed system is for the public to set their diet plan and live a healthy life. This
system is very free and have features like diet plans, food recipes and many more but not
have the feature to post users their experience on a timeline. In future it will have a home feed
3
in which people can share their own experiences and their own food recipes and diet plans
with other people so it also become a social app.
1.9.3 Firebase:
It is real time online application so the database which is used for it is the firebase database so
the data will be updated and generate notification in the real-time [2].
1.9.4 Python:
For the AI features Python will used at back end. Python is used for AI base programs or
features [3].
4
survived or diminished. Third Chapter is about the necessity particulars utilized for the
system. Therefore, the prerequisites canvassed in the section are useful, non-practical,
interface, and information base and asset necessities. Interface prerequisites are further
subcategorized into programming and equipment interface necessities First we foster the
utilization cases chart alongside the clarification of each utilization case for system to create
the better understanding about the undertaking. Forward section is about the framework plan
and displaying. This section is about the prerequisite data portrayal of a system.
Configuration moves toward that will be utilized (top/down or base/up), interface plan, 4+1
view models that will be talked about in this part it incorporates undeniable level view,
intelligent view, actual view, process view and the last one advancement view graphs. Fifth
Chapter depends on execution of the system. The instruments, advances and dialects are
talked about exhaustively. 6th system is about the quality confirmation exercises will be
covered, for example, testing which is applied on the created system during the period of
testing for example Testing, approval. It included Detail depiction of experiments. Last part is
about the end, further proposals. Fruition, limits, achievements that are accomplished from
the task.
5
CHAPTER 2
2.2.1.1 Features:
This application will gather personal information from the user, it gives diet plans to the user,
and it provide the data integrity.
2.2.2 DNA FIT:
This application is also available on the play store and it is totally free. It also gathers
personal information from the user.
2.2.2.1 Features
This application also collects personal information about the user and it also gives diet plans
to the user that user must set it manually. It also gives data integrity to the user information or
data.
2.2.3.1 Features:
In this application user must give their personal information and it gives information about
the different diet but user must set plans manually according to their diet. It gives premium
plan to the user premium feature for using the application.
8
Table 2.1: comparison between Existing system and developed system
Features System
AI Personal Personaliz DNA FIT FAT Secret
Nutritionist ed
Nutrition
Registration Fast and Time Time Time Taking and
Reliable Taking and Taking and Less
Less Less
Reliable
Reliable Reliable
Diet plan Accurate andManual Manual Premium feature
free AI based
Diet plan Effective NO proper Not Chances of
Guide Guide misinterpretation
Available
Integrity of Can’t be Can be Can be Can be easily
Data compromised
Compromised
Workout Yes No No No
2.5 Summary:
In this Chapter system foundation and the need of the system is talked about. What's more,
significant agreements that are utilized in the application space are talked about such android,
firebase data set. Existing system are likewise clarifying and correlation of their elements is
additionally finished with the forthcoming system.
9
CHAPTER 3
REQUIREMENTS SPECIFICATION
3 Introduction:
In this chapter, the UML diagrams are described. The flow diagram and use cases of the
system are described. In flow diagram, the data flows of the system are concise. The use
cases are also discussed in this chapter. Use cases are clear that shows interface with system
and user to achieve a task. System modelling describes the theoretical view of a system and a
graphical notation which are based on UML (Unified Modelling Language). It chains the
developer to work easily in every complex unit.
11
define flow and sequence. They can range from simple, hand-drawn charts to comprehensive
computer drawn diagrams depicting multiple steps and routes.
12
Figure 3.1: Flow Diagram
13
3.2 Interface Requirements:
The main IDE interface is designed using Dart (FLUTTER). The machine-learning algorithm
are coded in python. To run the system the server must be in running state so that the server
responds as the client communicate with the server.
3.2.2.1 Androidstudio:
As our system is dependent on android app, so android studio is one of the best
Fastest developer tools for building market-leading apps and accelerating performance.
3.2.2.3 Firebase:
Firebase is Google's mobile database platform that helps quickly develop high-quality apps.
As firebase will easily be integrated with the android studio, so it is good for us to easily
connect it to the application.
3.2.2.4 Python:
For the AI features Python will used at back end. Python is used for AI base programs or
features. It is often used to build to website software automate task, and conduct data
analysis.
14
3.3 Functional Requirements:
Functional requirements describe a software system or its components. A function is nothing
but inputs to the software system, its behavior, and outputs. Our system functional
requirements are user registration, a Diet planner and workout. These requirements work for
user to help him reduce or gain his/her weight.
Identifier FR-1
Title User Registration
Requirement E-mail, Username, Password
Source Account
Rational To collect data and register the user
Restrictions User e-mail and Password must be true
Dependencies No
Priority High
Identifier FR-2
Title Diet Planner
Requirement Age, Weight and Height
Source User
Rational To collect the personal information to make plan
Restrictions User information must be true
Dependencies No
Priority High
3.3.3 Workout:
The table 3.3 represents detailed view of User workout on daily basis functional requirement.
Table 3.3: Workout
Identifier FR-4
Title Workout
Requirement User weight, height and Age
15
Source User
Rational To collect the information of user workout
Restrictions Must be specify Male or Female
Dependencies FR-2, FR-3
Priority High
16
Figure 3.1: Use Case Diagram
17
3.5 Use-Case Description:
Use case description in as significant as use case chart, from use case outline we get data like
which entertainer will perform which task yet at the same time it is an exceptionally
ambiguous thought. To make it more justifiable use case depiction proves to be useful. Being
used case portrayal, we shortly compose the collaboration of system and entertainer. This
assists software engineers with welling nonprofessional, which can be a customer to
comprehend or get a thought how the finished result will perform.
3.5.1 Registration:
The table 3.4 illustrates meticulous depiction of Registration use case.
Table 3.4: Registration Use case:
3.5.2 Login:
The table 3.5 illustrates meticulous depiction of Login use case.
Table 3.5: Login Use Case
18
Preconditions: System will display login form
Post conditions: System login the user successfully
Normal Flow: System will get user name and password to login the user
Alternative System will show the message if the user already subscribed
Flows:
19
Table3.7: Personal Info Use Case
Exceptions: No
Includes: No
Assumptions: Aim is to user get foods as he/she search
Notes and
Issues:
Exceptions: No
Includes: No
Assumptions: Aim is to user add meal in diet plan as he/she search
20
3.5.6 View Food Details:
The table 3.9 illustrates meticulous depiction of Food details use case.
Table 3.9: View Food Details Use Case
Alternative None
Flows:
Exceptions: No
Includes: No
Assumptions: Aim to get details of the foods
Notes and
Issues:
Alternative None
Flows:
Exceptions: No
21
Includes: No
Assumptions: Aim to add workout on daily and weekly basis
3.5.8 Setting:
The table 3.11 illustrates meticulous depiction of setting use case.
Alternative
Flows:
Exceptions: No
Includes: No
Assumptions: Aim to show other info like logout, rate us, share
Notes and
Issues:
3.6.1 Efficiency:
As our system, does a great deal of capacities continuously, so it is essential for the system to
be proficient..
22
3.6.2 Usability:
The system UI having great shading mixes and is easy to use, very straightforward, simple
and extremely straightforward in only couple of moments by the client.
3.6.3 Consistency:
System should work precisely. This necessity has a ton of significance as exactness and
consistency is key components for working continuously. The showed text ought to be 100%
precise, the circumstance ought to be great, and as needs be.
23
3.7.1.4 Flutter Formwork:
Flutter is Google's free and open-source UI framework for creating native mobile
applications. It allows developers to build mobile applications for both IOS and Android with
a single codebase and programming language, which is beneficial in our case.
3.7.1.5 Firebase:
Firebase is Google's mobile database platform that helps quickly develop high-quality apps.
As firebase will easily be integrated with the android studio, so it is good for us to easily
connect it to the application.
3.7.1.6 Python:
For the AI features Python will used at back end. Python is used for AI base programs or
features.
3.9 Summary:
This Chapter gives whole necessity particular of our system. The entire system stream is
depicted what the system can do. The part additionally shortly portrays the interface
prerequisites including equipment and programming interface determinations. This Chapter
additionally covers practical and non-useful prerequisites. Use case graphs and portrayal is
24
additionally examined to comprehend the inside and out working of the system. Moreover,
equipment and programming assets are additionally referenced which are needed to create
and the test the system effectively and productively.
25
CHAPTER 4
SYSTEM MODELING
4 Introduction:
This Chapter gives completely requirement detail of our system. The entire system stream is
depicted what the system can do. The part likewise shortly depicts the interface prerequisites
including equipment and programming interface determinations. This Chapter likewise
covers useful and non-useful prerequisites. Use case graphs and depiction is likewise
examined to comprehend the inside and out working of the system. Besides, equipment and
programming assets are likewise referenced which are needed to create and the test the
system effectively and proficiently. Specialized, Social, and affordable achievability of the
system is likewise talked about for better agreement to foster the system.
27
or sometimes it also shows working too. No matter what end product you are coding whether
its web end or application of different operating systems, now a days a lot of tools are
available which allow you to design these prototypes with minimum human effort.
28
Figure 4.2: Login Screen
29
account. Email and password fields also use validation so email must be correct and password
must be six characters. The signup button is to submit the information.
30
Figure 4.4: Age selector
The figure 4.5 shows the screen is for the input of height from the user. The user can either
input the height in feet’s or in centimeters. The two radio selections or switches of ft and cm
can be used to switch the measurement scale input. The continue button will take the user to
the next screen.
31
Figure 4.5: Height selector
32
Figure 4.6: Weight selector
The figure 4.6 shows the simple screen is for the input of weight from the user. Just like the
previous height input screen user can enter the weight in kg or in lb by switching between lb
and kg switches. The default weight on the screen is 25kg which can be changed by typing
the new weight from the user using the keypad.
33
4.3.5: Homepage:
The figure 4.7 shows the homepage screen shows the name of user on the top than the
calendar and meal plan downward respectively. The meal plan contains four categories which
are breakfast, snack, lunch and dinner. The user can slide the meals on left and right. The
footer contains the buttons for other features of app and the main home button to return to the
main home screen.
34
4.3.6: Diet plan Screen:
The figure 4.8 shows the diet plan screen contains the three categories button on top. The
main body of the screen contains the content of each category. In diet tips user can also use
the heart icon to save the diet tip into favorite list. Every tip also shows the time when it was
published. The footer in the bottom is same for the whole app.
35
4.3.7: Setting screen:
The figure 4.9 shows the settings screen can be opened up using the setting button in the right
corner of the footer. The settings screen contains options for a lot of other pages. The night
mode on the top can be used to switch to the dark mode. The use can also change his/her data
using the edit profile option. This screen also contains other options like notifications,
favorite and many more.
36
4.3.8: Workout screen:
The figure 4.10 shows the screen contains the two main categories option on the top than the
other options for that selected main category in the main body. These options include the
different workouts like chest, arm, leg etc.
37
4.10 View Model of Architecture:
Planning system before now days is very mind boggling as society is turning out to be more
serious programming organizations are barring errands like necessity assembling and
planning bringing about large number of task disappointments. This issue presented
programming project the board, which permits designers to follow each progression without
squandering any occasions. 4+1 model is one of that it permits groups to chip away at various
perspectives so not all human exertion is in one undertaking various groups are relegated to it
so that organizations can deal with different errands all at once and complete them on
schedule. In 4+1 model, there are 4 distinct perspectives on system sensible view, process
view, actual view and advancement view and the center of them is that 4+1 situations which
can be use cases or little piece of utilization cases.
38
Figure 4.13: Class Diagram
39
4.10.2 Process View:
Process view shows the dynamic performance of system unlike other views it offerings how
system will perform, what are the constraints and how they communicate. Process view in
classified into 3 diagrams “activity”,” state machine” and lastly “Sequence”.
40
computer drawn diagrams depicting multiple steps and routes. They are the most common
diagrams on the planet.
41
Figure 4.15: Activity Diagram
42
4.10.2.2 Login Activity Diagram:
The figure 4.16 shows the login process of the application.
43
4.10.2.4 Personal Info Activity Diagram:
The figure 4.18 shows the personal info process of the application.
44
Figure 4.19: Homepage activity diagram
45
Figure 4.20: State machine diagram
46
sequence that is why it is named “Sequence Diagram”. It discusses more dynamic behavior of
the system and makes it more reasonable to students in figure 4.21.
47
Figure 4.22: Register Sequence
48
shows everything in a sequence that is why it is named “Sequence Diagram”. It discusses
more dynamic behavior of the system and makes it more reasonable to students.
49
Figure 4.24: Meal Data Sequence
50
Figure 4.25: Workout sequence
51
Figure 4.26: share application sequence
52
Figure 4.27: diet plan sequence
53
Figure 4.28: Component Diagram
4.11 Summary:
In this Chapter, we profoundly examined 4+1 plan model and how it helps various associates
of the system. Three of these four physicals, legitimate, advancement sees are static view and
just one interaction is dynamic. This does not imply that the static perspectives are of no
utilization they come in extremely convenient in code so, it is a finished plan model with all
parts of various perspectives so it helps each one end client, designer, PC specialist and
integrators. This system additionally determines what system configuration is? Why it is
significant? What's more, for whom is planned? In this section, every one of the responses to
this Chapter can be found.
54
CHAPTER 5
IMPLEMENTATION
5 Introduction:
In this chapter, how the modules of the system are working is discussed. In this chapter each
module is discussed briefly that how it is working and how it is integrated with other modules
to make the system work correctly.
The functionality of system, libraries and their details are defined completely in this chapter.
5.1 Modules:
Modules are the main functionalities of an application. In this section the modules present in
the application are discussed. By integration, all modules together form a complete
application there are following modules used in the app.
5.1.6 Workout:
In this module user can explore the various workouts. It includes workouts for weight gain,
weight loss, chest workout, leg workout etc.
56
5.1.7 Dishes:
In this module user can explore many dishes. The dishes can help in managing diet and in
cooking a hygienic and healthy food.
5.1.8 Graphs:
In this module user can see his weight graph and the BMI graph, which help in understanding
the obesity levels.
5.2 Framework:
Frameworks are the core technologies in which an application is being developed. There are
following frameworks are used in the app.
5.2.1 Flutter:
Flutter is an open-source UI software development kit created by Google. It is used to
develop cross platform applications for Android, iOS, Linux, macOS, Windows, Google
Fuchsia, and the web from a single codebase. First described in 2015, Flutter was released in
May 2017
There are many libraries used in this system. Here are all the libraries given below.
5.3 Libraries:
In this section we discuss about the libraries of application.
5.3.1 Firebase-database:
This library is used for database integration and for using database operations in the app. It is
the library of Firebase database for android. It is available for both android and iOS.
5.3.2 Get
Get X is an extra-light and powerful solution for Flutter. It combines high-performance
state management, intelligent dependency injection, and route management quickly and
practically [4].
5.3.3 Path-provider:
A Flutter plugin for finding commonly used locations on the file system. Supports android,
iOS, Linux, MACOS and Windows. Not all methods are supported on all platforms [5].
57
The Font Awesome Icon pack available as set of Flutter Icons [7].
Based on Font Awesome 6.1.0. Includes all free icons:
Regular
Solid
Brands
5.4 Summary:
In this chapter we have discussed about how we implemented this project and what
challenges we faced during implementation. All the modules implemented in the application
are discussed that how and for what purpose they have been implemented. What kind of
framework has been used and which type of libraries used for implementation of the system.
58
CHAPTER 6
60
6.3.1 Test Case of signup:
The table 6.1 describes Signup functionality is used for registering a new user in the app. For
registering a new user, you have to input an email and a password then click on signup
button. This test case is for simply entering the require information and registering a new
user.
61
Comments
62
2. User login by Successfully logged in
Clicking on login
button
Comments
63
1. The user presses the System gets the personal information
login button to get the
personal info screen
Comments
Objective The user selects the foods category and system have to save it
into database without any error.
64
Step No. Description of Result of Procedure
Execution
Comments
The user navigates to home page.
65
Step No. Description of Result of Procedure
Execution
Comments
The user can click on any Diet plan product, and it will open its details.
Objective The user clicks on home button from tab navigation at the
bottom.
66
Step No. Description of Result of Procedure
Execution
Comments
The user can click on home button to see the list of Diet plans retrieve from the database.
67
Pre-Requisite The user is on home screen or any screen
Comments
The user navigates to details page, but it was not showing the correct details.
68
Pre-Requisite The user is on home screen or any screen.
Comments
The user navigates to details page with correct details and now user can click to add Dishes.
69
Assumptions The user clicks on Workout tab to see details.
Pre-Requisite The user is on Workout screen or any screen where there are
workout.
Comments
The user select different workout plans on workout tab to see details.
6.4 Summary:
Testing is the important part of software development. Testing improves the quality of the
system by addressing errors and bugs. In this chapter complete testing of the system is
performed. Testing is performed by testing each functionality of the system. For testing each
functionality of the system, we design test cases for each test that is performed on the system.
Each test case is briefly described in this chapter.
70
CHAPTER 7
7.2.1.2 Signup:
In this a new user can register in the app by inputting its details and click on signup button.
7.2.1.3 Personal info:
In this user gives his basic info like weight, height, gender.
7.2.1.4 Food choices:
In this user can select whether he wants to eat veg or non-veg and many other choices.
7.2.1.5 Diet plan:
All acquired information is used to generate the diet plan for the specific person using AI.
7.2.1.6 Workout:
72
In this tab user can see different type of workouts like workout for chest, legs, muscles etc.
The weight-losing workout, weight gaining workout, fitness workout.
7.2.1.7 Dishes:
In this different types of dishes are stored which can be used to cook food.
7.3 Limitations:
There are some limitations in the application that we developed such as it cannot handle the
diets for patients and children. The system cannot add Diet plan manually.
Our app in future will be able to contact the user with real time consultant via text or call.
7.5 Summary:
The project, android-based application for Diet Plan. The android user can easily access this
application for Diet plan. The application would provide the facility that the user can get
recommended Diet plans. This application also provides the facility of Workout option.
Limitation of this application are also discussed in this chapter and Future work including
generate the diet plan for Patients.
73
7.6 APPENDICES
7.7.6 Dishes
The Dishes page contain different type of dishes, which help in getting ready the diet, which
is recommended by the system.
7.7.7 Setting
This page contains all the setting of the applications like mode change. It also contains the
BMI calculator, BMR calculator and weight graph.
74
7.8 Appendix II – Glossary
Android App Development
The IDE used to develop this app is a frontend of the app is developed with dart using
the flutter framework and firebase is use as the database to configure the user data.
Process View
The process architecture views describe the system’s processes.
Firebase Database
Firebase is called a database and it is important to store data of mobile apps. This platform is
developed by google and it stores data in JSON format.
Project Feasibility
A feasibility study takes all the factors that are related to the project like budget, cost,
time, unlike the project is feasible or not within a time.
Test Bed
Test bed is method in which testing is performed. For performing the tests, a test bed required
and for test bed some specific software, hardware and operating systems are required.
75
REFERENCES
1. Google, "Home. flutter.dev.," [Online] 2015.. [Online]. Available:
https://flutter.dev/?
gclid=CjwKCAiA4veMBhAMEiwAU4XRrwX8F9BLMQ5eQ68TATe9pVni.
2. "firebase.google.com," 2011.. [Online]. Available: https://firebase.google.com/?
gclid=CjwKCAiA4veMBhAMEiwAU4XRr5BilfXs8d09t9jUBGH.
3. "python.org," 20 February 1991. [Online]. Available: https://www.python.org/.
4. Google, "pub.dev," Google, [Online]. Available: https://pub.dev/packages/get/install.
5. Google, "Pub.dev," Google, [Online]. Available: https://pub.dev/packages/get/install.
6. Google, "pub.dev," Google, [Online]. Available:
https://pub.dev/packages/cached_network_image.
7. Google, "pub.dev," Google, [Online]. Available:
https://pub.dev/packages/font_awesome_flutter.
8. Google, "pub.dev," Google, [Online]. Available: https://pub.dev/packages/local_auth.
76