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/traning_data/crud_training.dart';
|
2024-08-30 12:24:54 +00:00
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
|
|
|
|
class TrainigProvider extends ChangeNotifier {
|
|
|
|
final apicall = Callapi();
|
|
|
|
List tralist = [];
|
|
|
|
|
|
|
|
List get traininglist => tralist;
|
|
|
|
|
|
|
|
traininginfo(text) async {
|
|
|
|
print("Location_Text");
|
|
|
|
final email_result = await apicall.gettrainingdata(text);
|
|
|
|
tralist = email_result;
|
|
|
|
notifyListeners();
|
|
|
|
}
|
2024-10-07 12:41:28 +00:00
|
|
|
|
|
|
|
storeTraining(row) async {
|
|
|
|
final trainingresult = await apicall.gettrainingdata(row);
|
|
|
|
await addtraining(trainingresult);
|
|
|
|
}
|
2024-08-30 12:24:54 +00:00
|
|
|
}
|