Skip to content

Commit 915d9b0

Browse files
committed
Chat with added friends only (privacy)
1 parent 9bf1980 commit 915d9b0

File tree

11 files changed

+380
-101
lines changed

11 files changed

+380
-101
lines changed

.flutter-plugins

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# This is a generated file; do not edit or check into version control.
2+
cloud_firestore=C:\\flutter\\.pub-cache\\hosted\\pub.dartlang.org\\cloud_firestore-0.14.0+2\\
3+
cloud_firestore_web=C:\\flutter\\.pub-cache\\hosted\\pub.dartlang.org\\cloud_firestore_web-0.2.0+1\\
4+
firebase_analytics=C:\\flutter\\.pub-cache\\hosted\\pub.dartlang.org\\firebase_analytics-6.0.0\\
5+
firebase_analytics_web=C:\\flutter\\.pub-cache\\hosted\\pub.dartlang.org\\firebase_analytics_web-0.1.1\\
6+
firebase_auth=C:\\flutter\\.pub-cache\\hosted\\pub.dartlang.org\\firebase_auth-0.18.0+1\\
7+
firebase_auth_web=C:\\flutter\\.pub-cache\\hosted\\pub.dartlang.org\\firebase_auth_web-0.3.0+1\\
8+
firebase_core=C:\\flutter\\.pub-cache\\hosted\\pub.dartlang.org\\firebase_core-0.5.0\\
9+
firebase_core_web=C:\\flutter\\.pub-cache\\hosted\\pub.dartlang.org\\firebase_core_web-0.2.0\\
10+
firebase_database=C:\\flutter\\.pub-cache\\hosted\\pub.dartlang.org\\firebase_database-4.0.0\\
11+
firebase_messaging=C:\\flutter\\.pub-cache\\hosted\\pub.dartlang.org\\firebase_messaging-7.0.0\\
12+
firebase_storage=C:\\flutter\\.pub-cache\\hosted\\pub.dartlang.org\\firebase_storage-4.0.0\\
13+
flutter_native_image=C:\\flutter\\.pub-cache\\hosted\\pub.dartlang.org\\flutter_native_image-0.0.5+2\\
14+
flutter_plugin_android_lifecycle=C:\\flutter\\.pub-cache\\hosted\\pub.dartlang.org\\flutter_plugin_android_lifecycle-1.0.9\\
15+
fluttertoast=C:\\flutter\\.pub-cache\\hosted\\pub.dartlang.org\\fluttertoast-7.1.1\\
16+
google_sign_in=C:\\flutter\\.pub-cache\\hosted\\pub.dartlang.org\\google_sign_in-4.5.3\\
17+
google_sign_in_web=C:\\flutter\\.pub-cache\\hosted\\pub.dartlang.org\\google_sign_in_web-0.9.2\\
18+
image_picker=C:\\flutter\\.pub-cache\\hosted\\pub.dartlang.org\\image_picker-0.6.7+7\\
19+
path_provider=C:\\flutter\\.pub-cache\\hosted\\pub.dartlang.org\\path_provider-1.6.14\\
20+
path_provider_linux=C:\\flutter\\.pub-cache\\hosted\\pub.dartlang.org\\path_provider_linux-0.0.1+2\\
21+
path_provider_macos=C:\\flutter\\.pub-cache\\hosted\\pub.dartlang.org\\path_provider_macos-0.0.4+4\\
22+
sqflite=C:\\flutter\\.pub-cache\\hosted\\pub.dartlang.org\\sqflite-1.3.1+1\\

.flutter-plugins-dependencies

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"cloud_firestore","path":"C:\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\cloud_firestore-0.14.0+2\\\\","dependencies":["firebase_core"]},{"name":"firebase_analytics","path":"C:\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\firebase_analytics-6.0.0\\\\","dependencies":["firebase_core"]},{"name":"firebase_auth","path":"C:\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\firebase_auth-0.18.0+1\\\\","dependencies":["firebase_core"]},{"name":"firebase_core","path":"C:\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\firebase_core-0.5.0\\\\","dependencies":[]},{"name":"firebase_database","path":"C:\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\firebase_database-4.0.0\\\\","dependencies":["firebase_core"]},{"name":"firebase_messaging","path":"C:\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\firebase_messaging-7.0.0\\\\","dependencies":["firebase_core"]},{"name":"firebase_storage","path":"C:\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\firebase_storage-4.0.0\\\\","dependencies":["firebase_core"]},{"name":"flutter_native_image","path":"C:\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\flutter_native_image-0.0.5+2\\\\","dependencies":[]},{"name":"fluttertoast","path":"C:\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\fluttertoast-7.1.1\\\\","dependencies":[]},{"name":"google_sign_in","path":"C:\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\google_sign_in-4.5.3\\\\","dependencies":[]},{"name":"image_picker","path":"C:\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\image_picker-0.6.7+7\\\\","dependencies":[]},{"name":"path_provider","path":"C:\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider-1.6.14\\\\","dependencies":[]},{"name":"sqflite","path":"C:\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\sqflite-1.3.1+1\\\\","dependencies":[]}],"android":[{"name":"cloud_firestore","path":"C:\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\cloud_firestore-0.14.0+2\\\\","dependencies":["firebase_core"]},{"name":"firebase_analytics","path":"C:\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\firebase_analytics-6.0.0\\\\","dependencies":["firebase_core"]},{"name":"firebase_auth","path":"C:\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\firebase_auth-0.18.0+1\\\\","dependencies":["firebase_core"]},{"name":"firebase_core","path":"C:\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\firebase_core-0.5.0\\\\","dependencies":[]},{"name":"firebase_database","path":"C:\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\firebase_database-4.0.0\\\\","dependencies":["firebase_core"]},{"name":"firebase_messaging","path":"C:\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\firebase_messaging-7.0.0\\\\","dependencies":["firebase_core"]},{"name":"firebase_storage","path":"C:\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\firebase_storage-4.0.0\\\\","dependencies":["firebase_core"]},{"name":"flutter_native_image","path":"C:\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\flutter_native_image-0.0.5+2\\\\","dependencies":[]},{"name":"flutter_plugin_android_lifecycle","path":"C:\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\flutter_plugin_android_lifecycle-1.0.9\\\\","dependencies":[]},{"name":"fluttertoast","path":"C:\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\fluttertoast-7.1.1\\\\","dependencies":[]},{"name":"google_sign_in","path":"C:\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\google_sign_in-4.5.3\\\\","dependencies":[]},{"name":"image_picker","path":"C:\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\image_picker-0.6.7+7\\\\","dependencies":["flutter_plugin_android_lifecycle"]},{"name":"path_provider","path":"C:\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider-1.6.14\\\\","dependencies":[]},{"name":"sqflite","path":"C:\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\sqflite-1.3.1+1\\\\","dependencies":[]}],"macos":[{"name":"cloud_firestore","path":"C:\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\cloud_firestore-0.14.0+2\\\\","dependencies":["firebase_core"]},{"name":"firebase_auth","path":"C:\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\firebase_auth-0.18.0+1\\\\","dependencies":["firebase_core"]},{"name":"firebase_core","path":"C:\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\firebase_core-0.5.0\\\\","dependencies":[]},{"name":"firebase_database","path":"C:\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\firebase_database-4.0.0\\\\","dependencies":["firebase_core"]},{"name":"firebase_storage","path":"C:\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\firebase_storage-4.0.0\\\\","dependencies":["firebase_core"]},{"name":"path_provider_macos","path":"C:\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider_macos-0.0.4+4\\\\","dependencies":[]},{"name":"sqflite","path":"C:\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\sqflite-1.3.1+1\\\\","dependencies":[]}],"linux":[{"name":"path_provider_linux","path":"C:\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider_linux-0.0.1+2\\\\","dependencies":[]}],"windows":[],"web":[{"name":"cloud_firestore_web","path":"C:\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\cloud_firestore_web-0.2.0+1\\\\","dependencies":[]},{"name":"firebase_analytics_web","path":"C:\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\firebase_analytics_web-0.1.1\\\\","dependencies":[]},{"name":"firebase_auth_web","path":"C:\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\firebase_auth_web-0.3.0+1\\\\","dependencies":[]},{"name":"firebase_core_web","path":"C:\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\firebase_core_web-0.2.0\\\\","dependencies":[]},{"name":"fluttertoast","path":"C:\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\fluttertoast-7.1.1\\\\","dependencies":[]},{"name":"google_sign_in_web","path":"C:\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\google_sign_in_web-0.9.2\\\\","dependencies":[]}]},"dependencyGraph":[{"name":"cloud_firestore","dependencies":["firebase_core","cloud_firestore_web"]},{"name":"cloud_firestore_web","dependencies":["firebase_core"]},{"name":"firebase_analytics","dependencies":["firebase_core","firebase_analytics_web"]},{"name":"firebase_analytics_web","dependencies":[]},{"name":"firebase_auth","dependencies":["firebase_core","firebase_auth_web"]},{"name":"firebase_auth_web","dependencies":["firebase_core"]},{"name":"firebase_core","dependencies":["firebase_core_web"]},{"name":"firebase_core_web","dependencies":[]},{"name":"firebase_database","dependencies":["firebase_core"]},{"name":"firebase_messaging","dependencies":["firebase_core"]},{"name":"firebase_storage","dependencies":["firebase_core"]},{"name":"flutter_native_image","dependencies":[]},{"name":"flutter_plugin_android_lifecycle","dependencies":[]},{"name":"fluttertoast","dependencies":[]},{"name":"google_sign_in","dependencies":["google_sign_in_web"]},{"name":"google_sign_in_web","dependencies":[]},{"name":"image_picker","dependencies":["flutter_plugin_android_lifecycle"]},{"name":"path_provider","dependencies":["path_provider_macos","path_provider_linux"]},{"name":"path_provider_linux","dependencies":[]},{"name":"path_provider_macos","dependencies":[]},{"name":"sqflite","dependencies":[]}],"date_created":"2020-09-17 12:37:22.756944","version":"1.20.0-3.0.pre.126"}

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.flutter-plugins
2+
.flutter-plugins-dependencies
3+
.packages

.packages

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
# Generated by pub on 2020-09-23 12:04:17.472988.
2+
async:file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/async-2.4.1/lib/
3+
boolean_selector:file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/boolean_selector-2.0.0/lib/
4+
cached_network_image:file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/cached_network_image-2.2.0+1/lib/
5+
characters:file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/characters-1.0.0/lib/
6+
charcode:file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/charcode-1.1.3/lib/
7+
clock:file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/clock-1.0.1/lib/
8+
cloud_firestore:file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-0.14.0+2/lib/
9+
cloud_firestore_platform_interface:file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore_platform_interface-2.0.1/lib/
10+
cloud_firestore_web:file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore_web-0.2.0+1/lib/
11+
collection:file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/collection-1.14.13/lib/
12+
convert:file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/convert-2.1.1/lib/
13+
crypto:file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/crypto-2.1.5/lib/
14+
cupertino_icons:file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/cupertino_icons-1.0.0/lib/
15+
fake_async:file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/fake_async-1.1.0/lib/
16+
file:file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/file-5.2.1/lib/
17+
firebase:file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.3.0/lib/
18+
firebase_analytics:file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_analytics-6.0.0/lib/
19+
firebase_analytics_platform_interface:file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_analytics_platform_interface-1.0.3/lib/
20+
firebase_analytics_web:file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_analytics_web-0.1.1/lib/
21+
firebase_auth:file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth-0.18.0+1/lib/
22+
firebase_auth_platform_interface:file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_platform_interface-2.0.1/lib/
23+
firebase_auth_web:file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_web-0.3.0+1/lib/
24+
firebase_core:file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core-0.5.0/lib/
25+
firebase_core_platform_interface:file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core_platform_interface-2.0.0/lib/
26+
firebase_core_web:file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core_web-0.2.0/lib/
27+
firebase_database:file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_database-4.0.0/lib/
28+
firebase_messaging:file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-7.0.0/lib/
29+
firebase_storage:file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_storage-4.0.0/lib/
30+
flutter:file:///C:/flutter/packages/flutter/lib/
31+
flutter_cache_manager:file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_cache_manager-1.4.2/lib/
32+
flutter_dialogflow:file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_dialogflow-0.1.3/lib/
33+
flutter_native_image:file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_native_image-0.0.5+2/lib/
34+
flutter_plugin_android_lifecycle:file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_plugin_android_lifecycle-1.0.9/lib/
35+
flutter_test:file:///C:/flutter/packages/flutter_test/lib/
36+
flutter_web_plugins:file:///C:/flutter/packages/flutter_web_plugins/lib/
37+
fluttertoast:file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-7.1.1/lib/
38+
google_sign_in:file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/google_sign_in-4.5.3/lib/
39+
google_sign_in_platform_interface:file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/google_sign_in_platform_interface-1.1.2/lib/
40+
google_sign_in_web:file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/google_sign_in_web-0.9.2/lib/
41+
googleapis_auth:file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/googleapis_auth-0.2.12/lib/
42+
http:file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/http-0.12.2/lib/
43+
http_parser:file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/http_parser-3.1.4/lib/
44+
image_picker:file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.6.7+7/lib/
45+
image_picker_platform_interface:file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker_platform_interface-1.1.0/lib/
46+
intl:file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/intl-0.16.1/lib/
47+
js:file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/js-0.6.2/lib/
48+
matcher:file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/matcher-0.12.8/lib/
49+
meta:file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/meta-1.1.8/lib/
50+
path:file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/path-1.7.0/lib/
51+
path_provider:file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider-1.6.14/lib/
52+
path_provider_linux:file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_linux-0.0.1+2/lib/
53+
path_provider_macos:file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_macos-0.0.4+4/lib/
54+
path_provider_platform_interface:file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_platform_interface-1.0.3/lib/
55+
pedantic:file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/pedantic-1.9.0/lib/
56+
photo_view:file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/photo_view-0.10.2/lib/
57+
platform:file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/platform-2.2.1/lib/
58+
plugin_platform_interface:file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/plugin_platform_interface-1.0.2/lib/
59+
process:file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/process-3.0.13/lib/
60+
quiver:file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/quiver-2.1.3/lib/
61+
rxdart:file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/rxdart-0.24.1/lib/
62+
sky_engine:file:///C:/flutter/bin/cache/pkg/sky_engine/lib/
63+
source_span:file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/source_span-1.7.0/lib/
64+
sqflite:file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-1.3.1+1/lib/
65+
sqflite_common:file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite_common-1.0.2+1/lib/
66+
stack_trace:file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/stack_trace-1.9.3/lib/
67+
stream_channel:file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/stream_channel-2.0.0/lib/
68+
string_scanner:file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/string_scanner-1.0.5/lib/
69+
synchronized:file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/synchronized-2.2.0+2/lib/
70+
term_glyph:file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/term_glyph-1.1.0/lib/
71+
test_api:file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/test_api-0.2.17/lib/
72+
typed_data:file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/typed_data-1.2.0/lib/
73+
uuid:file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/uuid-2.2.2/lib/
74+
vector_math:file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/vector_math-2.0.8/lib/
75+
xdg_directories:file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/xdg_directories-0.1.0/lib/
76+
flutter_chat:lib/

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
## version 1.1.0 Chat with added friends only (privacy)
12
## version 1.0.0 dependencies updated
23
## version 0.1.4 user online/offline status
34
## version 0.1.3 widget seprated

README.md

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
11
# flutter_chat
2-
32
A Chat Helper for create chat application in Flutter using Firebase as backend services.
43

4+
# Support Development
5+
If you found this project helpful or you learned something from the source code and want to thank me, consider buying me a cup of ☕️
6+
7+
[PayPal](https://paypal.me/ankeshkumar01)
8+
9+
[<img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" height="60px" width="200px"/>](https://www.buymeacoffee.com/ankeshkumar)
10+
511
## Features:
6-
1. 1-1 chat
7-
2. User online status
12+
1. 1-1 chat.
13+
2. Chat with only added friends(Privacy). New
14+
3. Share Pic with Gallery/Camera
15+
2. User online status
816

917
## Next Future Scope
1018

@@ -13,7 +21,7 @@ A Chat Helper for create chat application in Flutter using Firebase as backend s
1321
3. User acceptance on chat request
1422
4. share location on chat
1523

16-
(Sponsor project and support development)
24+
1725

1826
## Screenshots:
1927

@@ -25,19 +33,15 @@ A Chat Helper for create chat application in Flutter using Firebase as backend s
2533
* Add this to your package's pubspec.yaml file:<br/>
2634
dependencies:<br/>[flutter_chat](https://pub.dev/packages/flutter_chat)
2735

28-
* add [firebase](https://firebase.google.com/) in your android and ios project.
36+
* Add [firebase](https://firebase.google.com/) in your android and ios project.
37+
38+
* Deploy "Cloud Function" on firebase. (provided on cloudFunction folder, used for show user online/offline status).
2939

3040
* Create a Stateful widget class and call the method in body (example can be found in Github repo),<br/>
3141
within initState():<br/>
3242
-> ChatData.init("app name",context); <br/>
3343
and in body of Widget build:<br/>
3444
-> ChatData.widgetWelcomeScreen(context)
3545

36-
37-
# Support Development
38-
If you found this project helpful or you learned something from the source code and want to thank me, consider buying me a cup of ☕️
39-
40-
[PayPal](https://paypal.me/ankeshkumar01)
41-
4246
# Thanks for coffee:
43-
Eirik Bakken
47+
Eirik Bakken

lib/chatDB.dart

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,24 @@ class ChatDBFireStore {
2323
}
2424

2525
static saveNewUser(User logInUser) {
26+
List<String> friendList = [];
27+
2628
FirebaseFirestore.instance.collection(getDocName()).doc(logInUser.uid).set({
2729
'nickname': logInUser.displayName,
2830
'photoUrl': logInUser.photoURL,
2931
'userId': logInUser.uid,
32+
'email': logInUser.email,
33+
'friends': friendList,
3034
'createdAt': DateTime.now().millisecondsSinceEpoch.toString(),
3135
'chattingWith': null,
3236
'online': null
3337
});
3438
}
3539

3640
static streamChatData() {
37-
Firestore.instance.collection(ChatDBFireStore.getDocName()).snapshots();
41+
FirebaseFirestore.instance
42+
.collection(ChatDBFireStore.getDocName())
43+
.snapshots();
3844
}
3945

4046
static Future<void> makeUserOnline(User logInUser) async {

0 commit comments

Comments
 (0)