DiscoverModule/lib/provider_class/publications_provider.dart

26 lines
646 B
Dart
Raw Normal View History

2024-07-05 08:48:29 +00:00
import 'package:discover_module/service.dart/service.dart';
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();
}
}