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/pno_data/crud_pno.dart';
|
2024-08-30 12:24:54 +00:00
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
|
|
|
|
class PhonenoProvider extends ChangeNotifier {
|
|
|
|
final apicall = Callapi();
|
|
|
|
List phonelist = [];
|
|
|
|
|
|
|
|
List get phonenolist => phonelist;
|
|
|
|
|
|
|
|
phoneinfo(text) async {
|
|
|
|
print("Location_Text");
|
|
|
|
final phone_result = await apicall.getphonedata(text);
|
|
|
|
phonelist = phone_result;
|
|
|
|
notifyListeners();
|
|
|
|
}
|
2024-10-07 12:41:28 +00:00
|
|
|
|
|
|
|
storePno(row) async {
|
|
|
|
print("Location_Text");
|
|
|
|
final phoneresult = await apicall.getphonedata(row);
|
|
|
|
await addPno(phoneresult);
|
|
|
|
}
|
2024-08-30 12:24:54 +00:00
|
|
|
}
|