2024-07-05 08:48:29 +00:00
|
|
|
import 'package:discover_module/service.dart/service.dart';
|
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
|
|
|
|
class EventProvider extends ChangeNotifier {
|
|
|
|
final apicall = Callapi();
|
|
|
|
|
|
|
|
List eventlist = [];
|
|
|
|
|
|
|
|
List get EventsList => eventlist;
|
|
|
|
|
|
|
|
List alleventlist = [];
|
|
|
|
|
|
|
|
List get allEventsList => alleventlist;
|
|
|
|
|
2024-08-30 12:24:54 +00:00
|
|
|
geteventdata(text) async {
|
|
|
|
final events = await apicall.geteventsdata(text);
|
2024-07-05 08:48:29 +00:00
|
|
|
|
|
|
|
eventlist = events;
|
|
|
|
notifyListeners();
|
|
|
|
}
|
|
|
|
|
|
|
|
allgeteventdata() async {
|
|
|
|
final events = await apicall.allgeteventsdata();
|
|
|
|
|
|
|
|
alleventlist = events;
|
|
|
|
notifyListeners();
|
|
|
|
}
|
|
|
|
}
|