25 lines
613 B
Dart
25 lines
613 B
Dart
|
import 'package:konectar_events/contacts_module/service.dart/service.dart';
|
||
|
import 'package:konectar_events/contacts_module/storage_hive/speaker_data/crud.speaker.dart';
|
||
|
|
||
|
import 'package:flutter/cupertino.dart';
|
||
|
|
||
|
class SpekerEvalutionProvider extends ChangeNotifier {
|
||
|
final callapi = Callapi();
|
||
|
|
||
|
List speaker_data = [];
|
||
|
|
||
|
List get speakerlist => speaker_data;
|
||
|
|
||
|
getspeakerdata() async {
|
||
|
final data = await callapi.getSpeakerdata();
|
||
|
|
||
|
speaker_data = data;
|
||
|
notifyListeners();
|
||
|
}
|
||
|
|
||
|
storeSpeaker(row) async {
|
||
|
final dataSpe = await callapi.getSpeakerdata();
|
||
|
await addSpeaker(dataSpe);
|
||
|
}
|
||
|
}
|