-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added OpenAI service to fetch macros
- Loading branch information
Ketan Choyal
committed
Mar 15, 2024
1 parent
b0ade66
commit caa40b1
Showing
30 changed files
with
2,330 additions
and
1,010 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -132,3 +132,5 @@ firebase_app_id_file.json | |
GoogleService-Info.plist | ||
.firebase/* | ||
*.cache | ||
|
||
keys.dart |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"dart.flutterSdkPath": "/Users/ketanchoyal/fvm/versions/stable", | ||
"dart.flutterSdkPath": "~/fvm/versions/3.13.0", | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
enum ServingType { | ||
hundreedGrams('100g'), | ||
onePiece('1pc'), | ||
oneCup('1cup'), | ||
smallSized('small-sized'), | ||
mediumSized('medium-sized'), | ||
largeSized('large-sized'); | ||
|
||
final String value; | ||
|
||
String get displayValue { | ||
switch (this) { | ||
case ServingType.hundreedGrams: | ||
return '100 grams'; | ||
case ServingType.onePiece: | ||
return '1 Piece'; | ||
case ServingType.oneCup: | ||
return '1 Cup'; | ||
case ServingType.smallSized: | ||
return 'Small Sized'; | ||
case ServingType.mediumSized: | ||
return 'Medium Sized'; | ||
case ServingType.largeSized: | ||
return 'Large Sized'; | ||
} | ||
} | ||
|
||
const ServingType(this.value); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.