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/patent_data/crud_patent.dart';
|
2024-08-30 12:24:54 +00:00
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
|
|
|
|
class PatentProvider extends ChangeNotifier {
|
|
|
|
final apicall = Callapi();
|
|
|
|
List palist = [];
|
|
|
|
|
|
|
|
List get patentlist => palist;
|
|
|
|
|
|
|
|
patentinfo(text) async {
|
|
|
|
print("Location_Text");
|
|
|
|
final patent_result = await apicall.getpatentdata(text);
|
|
|
|
palist = patent_result;
|
|
|
|
notifyListeners();
|
|
|
|
}
|
2024-10-07 12:41:28 +00:00
|
|
|
|
|
|
|
storePet(row) async {
|
|
|
|
final patentresult = await apicall.getpatentdata(row);
|
|
|
|
await addPatent(patentresult);
|
|
|
|
}
|
2024-08-30 12:24:54 +00:00
|
|
|
}
|