DiscoverModule/lib/contacts_module/provider_class/publications_provider.dart

36 lines
959 B
Dart
Raw Normal View History

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/pub_data/curd_pub.dart';
2024-07-05 08:48:29 +00:00
import 'package:flutter/cupertino.dart';
class PublicatioProvider extends ChangeNotifier {
final apicall = Callapi();
List publist = [];
List get publicationlist => publist;
List allpublist = [];
List get allpublicationlist => allpublist;
2024-08-30 12:24:54 +00:00
publicatininfo(text) async {
final publication_result = await apicall.getpublicationsdata(text);
2024-07-05 08:48:29 +00:00
publist = publication_result;
notifyListeners();
}
allpublicatininfo() async {
final publication_result = await apicall.getallpublicationsdata();
allpublist = publication_result;
notifyListeners();
}
2024-10-07 12:41:28 +00:00
storePub(row) async {
final publication_result = await apicall.getpublicationsdata(row);
print("Affiliations_MyStoringData:$publication_result ");
await addPublication(publication_result);
}
2024-07-05 08:48:29 +00:00
}