26 lines
638 B
Dart
26 lines
638 B
Dart
|
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;
|
||
|
|
||
|
publicatininfo() async {
|
||
|
final publication_result = await apicall.getpublicationsdata();
|
||
|
publist = publication_result;
|
||
|
notifyListeners();
|
||
|
}
|
||
|
|
||
|
allpublicatininfo() async {
|
||
|
final publication_result = await apicall.getallpublicationsdata();
|
||
|
allpublist = publication_result;
|
||
|
notifyListeners();
|
||
|
}
|
||
|
}
|