2024-10-07 12:41:28 +00:00
|
|
|
import 'package:discover_module/contacts_module/service.dart/service.dart';
|
|
|
|
import 'package:discover_module/contacts_module/storage_hive/edu_data/crud_edu.dart';
|
2024-08-30 12:24:54 +00:00
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
|
|
|
|
class EducationProvider extends ChangeNotifier {
|
|
|
|
final apicall = Callapi();
|
|
|
|
List edulist = [];
|
|
|
|
|
|
|
|
List get educationlist => edulist;
|
|
|
|
|
|
|
|
eduinfo(text) async {
|
|
|
|
print("Location_Text");
|
|
|
|
final email_result = await apicall.getedulistdata(text);
|
|
|
|
edulist = email_result;
|
|
|
|
notifyListeners();
|
|
|
|
}
|
2024-10-07 12:41:28 +00:00
|
|
|
|
|
|
|
storeEdu(row) async {
|
|
|
|
final emailresult = await apicall.getedulistdata(row);
|
|
|
|
await addEdu(emailresult);
|
|
|
|
}
|
2024-08-30 12:24:54 +00:00
|
|
|
}
|