-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtest.puml
More file actions
342 lines (264 loc) · 8.82 KB
/
test.puml
File metadata and controls
342 lines (264 loc) · 8.82 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
@startuml
scale 2
set namespaceSeparator ::
' class "sublet_app::Firebase_functions.dart::Firebase_functions" {
' {static} +FirebaseFirestore db
' {static} +Future<bool> Upload_owner()
' {static} +Future<bool> owner_exists()
' {static} +Future<Owner_data> get_owner()
' {static} +Future<bool> Add_Property()
' {static} +Future<bool> Remove_Property()
' {static} +Future<bool> Upload_property()
' {static} +Future<bool> property_exists()
' {static} +Future<Property> get_property()
' {static} +Future<bool> Delete_property()
' {static} +Future<List<Property>> get_avail_properties()
' {static} +Future<List<Property>> get_properties_of_owner()
' {static} +Future<bool> Add_user()
' {static} +Future<String> get_user_type()
' }
' "sublet_app::Firebase_functions.dart::Firebase_functions" o-- "cloud_firestore::cloud_firestore.dart::FirebaseFirestore"
' class "sublet_app::firebase_options.dart::DefaultFirebaseOptions" {
' {static} +FirebaseOptions android
' {static} +FirebaseOptions currentPlatform
' }
' "sublet_app::firebase_options.dart::DefaultFirebaseOptions" o-- "firebase_core_platform_interface::firebase_core_platform_interface.dart::FirebaseOptions"
' class "sublet_app::main.dart::MyApp" {
' {static} +String property_id
' {static} +String uid
' {static} +String uType
' +Widget build()
' }
' class "sublet_app::models::http_exception.dart::HttpException" {
' +String message
' +String toString()
' }
' class "sublet_app::providers::auth.dart::Auth" {
' -String _token
' -DateTime? _expiryDate
' -String _userId
' +bool isAuth
' +String token
' -Future<String> _authentication()
' +Future<String> signup()
' +Future<String> login()
' +void logout()
' }
class "sublet_app::screens::chat_screen.dart::ChatScreen" {
{static} -ChatScreen _singleton
+Widget build()
}
"sublet_app::screens::chat_screen.dart::ChatScreen" o-- "sublet_app::screens::chat_screen.dart::ChatScreen"
class "sublet_app::screens::Home::home_page.dart::HomeScreen" {
+State<HomeScreen> createState()
}
' class "sublet_app::screens::Home::home_page.dart::_HomeScreenState" {
' -GlobalKey<FormState> _formKey
' +Widget build()
' }
' class "sublet_app::screens::Home::home_page.dart::AuthCard" {
' +State<AuthCard> createState()
' }
class "sublet_app::screens::Home::home_page.dart::_AuthCardState" {
-GlobalKey<FormState> _formKey
+String type
-AuthMode _authMode
-Map<String, String> _authData
-TextEditingController _userName
-bool _isLoading
-TextEditingController _passwordController
-void _showErrorDiallog()
-Future<void> _submit()
-void _switchAuthMode()
+Widget build()
}
"sublet_app::screens::Home::home_page.dart::_AuthCardState" o-- "sublet_app::screens::Home::home_page.dart::AuthMode"
class "sublet_app::screens::Home::home_page.dart::AuthMode" {
+int index
{static} +List<AuthMode> values
{static} +AuthMode Signup
{static} +AuthMode Login
}
"sublet_app::screens::Home::home_page.dart::AuthMode" o-- "sublet_app::screens::Home::home_page.dart::AuthMode"
class "sublet_app::screens::Owner::manage_customers.dart::ManageCustomers" {
+State<ManageCustomers> createState()
}
class "sublet_app::screens::Owner::manage_customers.dart::_ManageCustomersState" {
+Widget build()
}
class "sublet_app::screens::Owner::manage_properties.dart::ManageProperties" {
+State<ManageProperties> createState()
}
class "sublet_app::screens::Owner::manage_properties.dart::_ManagePropertiesState" {
-String _recently
-String _occupied
-String _unoccupied
+Widget build()
}
class "sublet_app::screens::Owner::new_property.dart::NewProperty" {
+Function refresh
+State<NewProperty> createState()
}
class "sublet_app::screens::Owner::new_property.dart::_NewPropertyState" {
+TextEditingController propNameController
+TextEditingController propLocationController
+TextEditingController propPriceController
+TextEditingController propStatusController
+TextEditingController propStartDateController
+TextEditingController propEndDateController
+Widget build()
}
class "sublet_app::screens::Owner::Owner_data.dart::Owner_data" {
+String id
+String name
+List<String>? plist
+int joined_at
+List<String> chat_id_list
+void Add_Property()
+void Remove_Property()
+Map<String, dynamic> toJson()
}
class "sublet_app::screens::Owner::properties_list_categories.dart::PropertiesListCategories" {
+State<PropertiesListCategories> createState()
}
class "sublet_app::screens::Owner::properties_list_categories.dart::_PropertiesListCategoriesState" {
-Future<List<Property>> _properties
+List<Property> plist
+Future<Null> u
+void onPropertyCardPress()
+void initState()
+void update_plist()
+Widget build()
}
class "sublet_app::screens::Owner::property.dart::Property" {
+String? id
+String owner_id
+String name
+String location
+DateTime? dateAdded
+DateTime? fromdate
+DateTime? tilldate
+bool? occupied
+int? price
+String? description
+void assign_id()
+Map<String, dynamic> toJson()
}
class "sublet_app::screens::Owner::property_card.dart::PropertyCard" {
-Property _property
+Widget build()
}
"sublet_app::screens::Owner::property_card.dart::PropertyCard" o-- "sublet_app::screens::Owner::property.dart::Property"
class "sublet_app::screens::Owner::property_screen.dart::PropertyScreen" {
-void _startEditProperty()
+Widget build()
}
class "sublet_app::screens::Owner::property_screen.dart::EditProperty" {
-Property _property
+State<EditProperty> createState()
}
"sublet_app::screens::Owner::property_screen.dart::EditProperty" o-- "sublet_app::screens::Owner::property.dart::Property"
class "sublet_app::screens::Owner::property_screen.dart::_EditPropertyState" {
+String name
+String location
+TextEditingController propNameController
+TextEditingController propLocationController
+Widget build()
}
' "sublet_app::screens::Owner::property_screen.dart::_EditPropertyState" o-- "flutter::src::widgets::editable_text.dart::TextEditingController"
class "sublet_app::screens::Owner::tabs_screen.dart::TabsScreen" {
+State<TabsScreen> createState()
}
class "sublet_app::screens::Owner::tabs_screen.dart::_TabsScreenState" {
-TabController _tabController
-int _screenIndex
-List<CustomTabItem> _tabs
+AppBar appBar
+void refresh()
-void _startAddNewProperty()
-dynamic _init()
+void initState()
+void dispose()
+Widget build()
}
class "sublet_app::screens::Owner::tabs_screen.dart::CustomTabItem" {
+String label
+Icon icon
+Widget screen
+FloatingActionButton? floatingActionButton
}
class "sublet_app::screens::Renter::Asset_Page.dart::Asset_Page" {
+State<Asset_Page> createState()
}
class "sublet_app::screens::Renter::Asset_Page.dart::_Asset_PageState" {
+Color contact_color
+Property property
+Future<Owner_data> fut_owner
+Owner_data owner
+void get_owner_data()
+void initState()
+Widget build()
}
' "sublet_app::screens::Renter::Asset_Page.dart::_Asset_PageState" o-- "dart::ui::Color"
"sublet_app::screens::Renter::Asset_Page.dart::_Asset_PageState" o-- "sublet_app::screens::Owner::property.dart::Property"
"sublet_app::screens::Renter::Asset_Page.dart::_Asset_PageState" o-- "sublet_app::screens::Owner::Owner_data.dart::Owner_data"
class "sublet_app::screens::Renter::Renter_Screen.dart::Renter_Screen" {
+State<Renter_Screen> createState()
}
class "sublet_app::screens::Renter::Renter_Screen.dart::_Renter_ScreenState" {
+String uname
+Widget build()
}
class "sublet_app::screens::Renter::Renter_Screen.dart::Assetlist" {
+State<Assetlist> createState()
}
class "sublet_app::screens::Renter::Renter_Screen.dart::_AssetlistState" {
+Future<List<Property>> list
+List<Property> plist
+int list_length
+List<Card> cards
+void get_avail_properties()
+void initState()
+Widget build()
+void onPress()
}
class "sublet_app::screens::Renter::renter_tab_screen.dart::RenterTabsScreen" {
+State<RenterTabsScreen> createState()
}
class "sublet_app::screens::Renter::renter_tab_screen.dart::_RenterTabsScreenState" {
-TabController _tabController
-int _screenIndex
-List<CustomTabItem> _tabs
+AppBar appBar
+void refresh()
-void _startAddNewProperty()
-dynamic _init()
+void initState()
+void dispose()
+Widget build()
}
class "sublet_app::screens::Renter::renter_tab_screen.dart::CustomTabItem" {
+String label
+Icon icon
+Widget screen
+FloatingActionButton? floatingActionButton
}
class "sublet_app::widgets::chat::messages.dart::Messages" {
+Widget build()
}
class "sublet_app::widgets::chat::message_bubble.dart::MessageBubble" {
+Key key
+String message
+bool isMe
+Widget build()
}
class "sublet_app::widgets::chat::new_message.dart::NewMessage" {
+State<NewMessage> createState()
}
class "sublet_app::widgets::chat::new_message.dart::_NewMessageState" {
-String _entryMessage
-TextEditingController _controller
-void _sendMessage()
+Widget build()
}
@enduml