23 lines
615 B
Dart
23 lines
615 B
Dart
|
import 'package:konectar_events/contacts_module/service.dart/service.dart';
|
||
|
import 'package:konectar_events/contacts_module/storage_hive/awa_data/crud_awa.dart';
|
||
|
import 'package:flutter/cupertino.dart';
|
||
|
|
||
|
class AwardProvider extends ChangeNotifier {
|
||
|
final apicall = Callapi();
|
||
|
List awalist = [];
|
||
|
|
||
|
List get awardlist => awalist;
|
||
|
|
||
|
awainfo(text) async {
|
||
|
print("Location_Text");
|
||
|
final email_result = await apicall.getawarddata(text);
|
||
|
awalist = email_result;
|
||
|
notifyListeners();
|
||
|
}
|
||
|
|
||
|
storeAwa(row) async {
|
||
|
final awaresult = await apicall.getawarddata(row);
|
||
|
await addAwa(awaresult);
|
||
|
}
|
||
|
}
|