step 9 : listing history scan dan pull to refresh, perbaikan auth model add host

This commit is contained in:
sindhu
2025-02-15 22:04:19 +07:00
parent 32abcb60dc
commit e90c710333
10 changed files with 378 additions and 122 deletions

View File

@@ -1,11 +1,17 @@
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:hooks_riverpod/hooks_riverpod.dart';
import 'package:scanktpflutter/app/app_extension.dart';
import '../../app/constant.dart';
import '../../model/person_ktp_model.dart';
class CardRiwayatScan extends HookConsumerWidget {
const CardRiwayatScan({super.key});
final PersonKtp data;
const CardRiwayatScan({
super.key,
required this.data,
});
@override
Widget build(BuildContext context, WidgetRef ref) {
@@ -30,15 +36,20 @@ class CardRiwayatScan extends HookConsumerWidget {
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Text(
'3171234567890123',
data.personNIK,
style: Constant.titleInputan600(context: context).copyWith(
color: Constant.textBlack,
),
),
Icon(
Icons.edit,
color: Constant.bgButton,
size: 20,
InkWell(
onTap: (){
print('id : ${data.personID}');
},
child: Icon(
Icons.edit,
color: Constant.bgButton,
size: 20,
),
),
],
),
@@ -63,7 +74,7 @@ class CardRiwayatScan extends HookConsumerWidget {
),
),
Text(
'MIRA SETIAWAN',
data.personName,
style: Constant.cardText(context: context).copyWith(
color: Constant.textCardGrey,
),
@@ -92,7 +103,7 @@ class CardRiwayatScan extends HookConsumerWidget {
),
),
Text(
'18-02-1996',
formatDateJiffy(data.personDob),
style: Constant.cardText(context: context).copyWith(
color: Constant.textCardGrey,
),
@@ -128,7 +139,7 @@ class CardRiwayatScan extends HookConsumerWidget {
),
),
Text(
'Perempuan',
data.personSex,
style: Constant.cardText(context: context).copyWith(
color: Constant.textCardGrey,
),