parent
30755b1742
commit
e0bade4ec2
@ -0,0 +1,19 @@
|
|||||||
|
import 'package:json_annotation/json_annotation.dart';
|
||||||
|
import 'package:equatable/equatable.dart';
|
||||||
|
part 'phone_num_model.g.dart';
|
||||||
|
|
||||||
|
|
||||||
|
@JsonSerializable()
|
||||||
|
class PhoneNumModel extends Equatable{
|
||||||
|
final String num;
|
||||||
|
final int time;
|
||||||
|
factory PhoneNumModel.fromJson(Map<String, dynamic> json) =>_$PhoneNumModelFromJson(json);
|
||||||
|
|
||||||
|
|
||||||
|
const PhoneNumModel({
|
||||||
|
required this.num,
|
||||||
|
required this.time,
|
||||||
|
});
|
||||||
|
@override
|
||||||
|
List<Object?> get props => [num,time,];
|
||||||
|
}
|
@ -0,0 +1,13 @@
|
|||||||
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||||
|
|
||||||
|
part of 'phone_num_model.dart';
|
||||||
|
|
||||||
|
// **************************************************************************
|
||||||
|
// JsonSerializableGenerator
|
||||||
|
// **************************************************************************
|
||||||
|
|
||||||
|
PhoneNumModel _$PhoneNumModelFromJson(Map<String, dynamic> json) =>
|
||||||
|
PhoneNumModel(
|
||||||
|
num: json['num'] as String,
|
||||||
|
time: json['time'] as int,
|
||||||
|
);
|
@ -0,0 +1,26 @@
|
|||||||
|
|
||||||
|
|
||||||
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
|
import '../../../../model/phone_num_model.dart';
|
||||||
|
|
||||||
|
class CallRecordsList extends StatefulWidget {
|
||||||
|
const CallRecordsList({Key? key}) : super(key: key);
|
||||||
|
|
||||||
|
@override
|
||||||
|
_CallRecordsListState createState() => _CallRecordsListState();
|
||||||
|
}
|
||||||
|
|
||||||
|
class _CallRecordsListState extends State<CallRecordsList> {
|
||||||
|
List<PhoneNumModel> phoneNum=[];
|
||||||
|
|
||||||
|
@override
|
||||||
|
Widget build(BuildContext context) {
|
||||||
|
return Container();
|
||||||
|
}
|
||||||
|
|
||||||
|
// _getPhone(){
|
||||||
|
// return ListView.builder(itemBuilder: (context,index){},itemCount: ,);
|
||||||
|
// }
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in new issue