-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.kv
32 lines (17 loc) · 860 Bytes
/
main.kv
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
ScreenManager:
id: screen_manager
#:import TypeToWriteScreen typetowritescreen.typetowritescreen.TypeToWriteScreen
#:import FirebaseLoginScreen firebaseloginscreen.firebaseloginscreen.FirebaseLoginScreen
FirebaseLoginScreen:
id:firebaseloginscreen
name:"firebaseloginscreen"
# This should be YOUR web_api_key
on_login_success:
if self.login_state == 'in': app.local_id = self.localId
#If login state = in it will make local_id as self.local id
if self.login_state == 'in': app.user_idToken = self.idToken
if self.login_state == 'in': screen_manager.current = 'typetowritescreen'
#if the login and signup correct it will redirect you to screen1
TypeToWriteScreen:
id:typetowritescreen
name:"typetowritescreen"