2023-06-18 13:41:52 +02:00
|
|
|
import 'package:cloud_firestore/cloud_firestore.dart';
|
|
|
|
import 'package:firebase_auth/firebase_auth.dart';
|
|
|
|
|
|
|
|
import '../services/global_variables.dart';
|
|
|
|
|
2023-06-23 12:12:02 +02:00
|
|
|
class Persistent {
|
2023-06-09 20:38:31 +02:00
|
|
|
static List<String> jobCategoryList = [
|
|
|
|
"Architecture and Construction",
|
|
|
|
"Education and Training",
|
|
|
|
"Development - Programming",
|
|
|
|
"Business",
|
|
|
|
"Information Technology",
|
|
|
|
"Human Resources",
|
|
|
|
"Marketing",
|
|
|
|
"Design",
|
|
|
|
"Accounting"
|
|
|
|
];
|
2023-06-18 13:41:52 +02:00
|
|
|
|
2023-06-23 12:12:02 +02:00
|
|
|
void getMyData() async {
|
|
|
|
final DocumentSnapshot userDoc = await FirebaseFirestore.instance
|
|
|
|
.collection("users")
|
|
|
|
.doc(FirebaseAuth.instance.currentUser!.uid)
|
2023-06-18 13:41:52 +02:00
|
|
|
.get();
|
2023-06-23 12:12:02 +02:00
|
|
|
name = userDoc.get("name");
|
|
|
|
userImage = userDoc.get("userImage");
|
|
|
|
location = userDoc.get("location");
|
2023-06-18 13:41:52 +02:00
|
|
|
}
|
2023-06-23 12:12:02 +02:00
|
|
|
}
|