Compare commits
No commits in common. 'c85c2ebd1073f2884e9607e2ceaee3b474efd0b1' and '91b738ce4b4e6da1c54b37b6c220df349d348950' have entirely different histories.
c85c2ebd10
...
91b738ce4b
@ -1,28 +0,0 @@
|
||||
import 'package:call_log/call_log.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
import '../model/phone_num_model.dart';
|
||||
import '../utils/hive_store.dart';
|
||||
|
||||
class PhoneNumProvider extends ChangeNotifier{
|
||||
final List<PhoneNumModel> _phoneNum=[PhoneNumModel(num: "",time: 0,name: "", state:false)];
|
||||
List<PhoneNumModel> get phoneNum=>_phoneNum;
|
||||
Future list(List<PhoneNumModel> phoneList) async{
|
||||
// await HiveStore.dataBox!.get();
|
||||
// final Iterable<CallLogEntry> entries = await CallLog.query();
|
||||
|
||||
// for (CallLogEntry entrie in entries) {
|
||||
// _phoneNum.add(PhoneNumModel(
|
||||
// num: entrie.number,
|
||||
// time: entrie.timestamp,
|
||||
// name: entrie.name,
|
||||
// state: false,
|
||||
// ));
|
||||
// // a.add(entrie.number);
|
||||
// }
|
||||
// final phoneList=_phoneNum.toSet();
|
||||
// final phoneList= HiveStore.dataBox?.get(phoneNum);
|
||||
return ;
|
||||
}
|
||||
// Future
|
||||
}
|
@ -1,16 +1,10 @@
|
||||
// import 'package:project_telephony/providers/phone_provider.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
import '../providers/phone_num_provider.dart';
|
||||
import '../providers/user_provider.dart';
|
||||
import 'headers.dart';
|
||||
|
||||
class UserTool {
|
||||
static UserProvider userProvider =
|
||||
Provider.of<UserProvider>(Get.context!, listen: false);
|
||||
// static PhoneProvider phoneProvider=Provider.of<PhoneProvider>(Get.context!, listen: false);
|
||||
}
|
||||
|
||||
class PhoneTool {
|
||||
static PhoneNumProvider phoneNumProvider =
|
||||
Provider.of<PhoneNumProvider>(Get.context!, listen: false);
|
||||
// static PhoneProvider phoneProvider=Provider.of<PhoneProvider>(Get.context!, listen: false);
|
||||
}
|
||||
|
Loading…
Reference in new issue