Skip to content

Commit fa4125b

Browse files
committed
version 2.0.0 is done, updated the README.md
1 parent 3c82601 commit fa4125b

File tree

5 files changed

+19
-23
lines changed

5 files changed

+19
-23
lines changed

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -8,31 +8,31 @@
88
<sub>Built with ❤︎ by
99
<a href="https://github.com/noobcoder17">Akash Debnath</a>
1010
</h2>
11-
<p align="center">Drinkable is a Flutter App powered by Firebase to keep track your daily water intake.</p>
11+
<p align="center">Drinkable is a Flutter App powered by Firebase to keep track your daily water intake and remind you to drink water by sending notifications.</p>
1212

1313

1414

1515
<h1 align="center">
1616
<img src="screenshot/flutter_01.png" height="420" />
1717
</h1>
1818

19-
In this app user will sign up using there Google Account (Google Sign-In) and if he/she is a new user, then he/she have to fill a form with basic details like gender, age, weight. We also added the daily wake up time. It will be used in next version where user will be notified to drink water in intervals. By providing the basis information, your can get your recommended daily water intake which is editable.
19+
In this app user will sign up using their Google Account (Google Sign-In) and if he/she is a new user, then he/she have to fill a form with basic details like gender, age, weight. We also added the daily wake up time. It will be used to send you a notification dauly at that time. By providing the basis information, your can get your recommended daily water intake which is editable.
2020

2121
<p align='left'>
2222
<img src="screenshot/flutter_06.png" height="380" />
2323
<img src="screenshot/flutter_08.png" height="380" />
2424
</p>
2525

26-
Now once you signed up, you can add water that you consumed. You can track your intakes in Statistics screen.
26+
Now once you signed up, you can add water that you consumed. You can track your intakes in Statistics screen. If you add water, then you will be notified after one and half hour later to drink water again. If you reach your daily target, then you won't be notified for that day again.
2727

28-
In future if you want to update your profile data like you weight and get the recommended water intake automatically, then you can do it in profile page.
28+
In future if you want to update your profile data like your weight and get the recommended water intake automatically, then you can do it in profile page.
2929

3030
<p align='left'>
3131
<img src="screenshot/flutter_03.png" height="380" />
3232
<img src="screenshot/flutter_04.png" height="380" />
3333
</p>
3434

35-
This app also access your location and gets the weather from <a href="https://openweathermap.org/">Open Weather</a> api of your location.
35+
This app also access your location and gets the weather details from <a href="https://openweathermap.org/">Open Weather</a> api of your location.
3636

3737
For this app I made a custom looking App Drawer.
3838
<p align='left'>

lib/providers/auth_provider.dart

+3-9
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,14 @@ import '../models/app_user.dart';
1010
//utils
1111
import '../utils/notification_utils.dart';
1212

13-
1413
class AuthProvider extends ChangeNotifier {
1514
FirebaseFirestore _firestore = FirebaseFirestore.instance;
1615
GoogleSignIn _googleSignIn = GoogleSignIn();
1716
FirebaseAuth _firebaseAuth = FirebaseAuth.instance;
1817

19-
GoogleSignInAccount get googleAcount {
20-
return _googleSignIn.currentUser;
21-
}
22-
23-
User get user {
24-
return _firebaseAuth.currentUser;
25-
}
26-
18+
GoogleSignInAccount get googleAcount => _googleSignIn.currentUser;
19+
20+
User get user => _firebaseAuth.currentUser;
2721

2822
Future<bool> selectGoogleAcount() async {
2923
try {

lib/providers/home_provider.dart

+7-5
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,20 @@ class HomeProvider extends ChangeNotifier {
4141
}else{
4242
_isInited = false;
4343
_uid = null;
44+
_weeklyData = null;
4445
_appUser = null;
4546
_weekColRef = null;
4647
_userRef = null;
48+
_currentWeek = null;
49+
_weather = null;
50+
_locationData = null;
4751
}
4852
notifyListeners();
4953
}
5054

51-
Map<String,dynamic> get weather {
52-
return _weather;
53-
}
55+
Map<String,dynamic> get weather => _weather;
56+
57+
AppUser get appUser => _appUser;
5458

5559
String get dailyTarget {
5660
int target = _appUser.dailyTarget;
@@ -74,8 +78,6 @@ class HomeProvider extends ChangeNotifier {
7478
return consumed/target;
7579
}
7680

77-
AppUser get appUser => _appUser;
78-
7981
Future<void> init()async{
8082
if(_isInited==false){
8183
try {

lib/utils/notification_utils.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ Future<void> setDailyStartNotification(TimeOfDay time, String user)async{
4141
await plugin.cancel(0);
4242
await plugin.showDailyAtTime(
4343
0,
44-
"Good Morning, $user",
45-
"Don't forget to dring enoung water today",
44+
"Good morning, $user",
45+
"Don't forget to dring enough water today",
4646
Time(time.hour,time.minute),
4747
notificationDetails
4848
);

pubspec.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ description: A Flutter application which keeps track your water intake and remin
33

44
publish_to: 'none'
55

6-
version: 1.0.0
6+
version: 2.0.0
77

88
environment:
99
sdk: ">=2.7.0 <3.0.0"
@@ -18,8 +18,8 @@ dependencies:
1818
provider: ^4.3.2+1
1919
firebase_core: ^0.5.0
2020
firebase_auth: ^0.18.0+1
21-
google_sign_in: ^4.5.3
2221
cloud_firestore: ^0.14.0+2
22+
google_sign_in: ^4.5.3
2323
location: ^3.0.2
2424
http: ^0.12.2
2525
flutter_local_notifications: ^1.4.4+4

0 commit comments

Comments
 (0)