step 9 : listing history scan dan pull to refresh, perbaikan auth model add host
This commit is contained in:
@@ -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,
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user