24 lines
659 B
Dart
24 lines
659 B
Dart
import 'package:konectar_events/contacts_module/service.dart/service.dart';
|
|
import 'package:konectar_events/contacts_module/storage_hive/pno_data/crud_pno.dart';
|
|
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();
|
|
}
|
|
|
|
storePno(row) async {
|
|
print("Location_Text");
|
|
final phoneresult = await apicall.getphonedata(row);
|
|
await addPno(phoneresult);
|
|
}
|
|
}
|