23 lines
629 B
Dart
23 lines
629 B
Dart
import 'package:konectar_events/contacts_module/service.dart/service.dart';
|
|
import 'package:konectar_events/contacts_module/storage_hive/procedure_data/crud_pro.dart';
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
class ProcedureProvider extends ChangeNotifier {
|
|
final apicall = Callapi();
|
|
List procedurelist = [];
|
|
|
|
List get prolist => procedurelist;
|
|
|
|
proinfo(text) async {
|
|
print("Location_Text");
|
|
final nih_result = await apicall.getprodata(text);
|
|
procedurelist = nih_result;
|
|
notifyListeners();
|
|
}
|
|
|
|
storePro(row) async {
|
|
final proData = await apicall.getprodata(row);
|
|
await addPro(proData);
|
|
}
|
|
}
|