DiscoverModule/lib/contacts_module/provider_class/award_provider.dart

23 lines
615 B
Dart
Raw Normal View History

2024-10-07 12:41:28 +00:00
import 'package:discover_module/contacts_module/service.dart/service.dart';
import 'package:discover_module/contacts_module/storage_hive/awa_data/crud_awa.dart';
2024-08-30 12:24:54 +00:00
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();
}
2024-10-07 12:41:28 +00:00
storeAwa(row) async {
final awaresult = await apicall.getawarddata(row);
await addAwa(awaresult);
}
2024-08-30 12:24:54 +00:00
}