From 98607490eeef19cf202c53cde553364d56629b54 Mon Sep 17 00:00:00 2001 From: Patrick Alvin Alcala Date: Wed, 4 Feb 2026 10:36:59 +0800 Subject: [PATCH] Updated page --- lib/pages/validate_detail_page.dart | 96 ++++++++++++++++++++++++----- 1 file changed, 79 insertions(+), 17 deletions(-) diff --git a/lib/pages/validate_detail_page.dart b/lib/pages/validate_detail_page.dart index c69b0dd..ddd2cf8 100644 --- a/lib/pages/validate_detail_page.dart +++ b/lib/pages/validate_detail_page.dart @@ -5,6 +5,7 @@ import 'package:gap/gap.dart'; import 'package:ocbo_esign_mobile/blocs/qr/functions/bloc_getqr.dart'; import 'package:ocbo_esign_mobile/functions/get_api.dart'; import 'package:ocbo_esign_mobile/widgets/box_widget.dart'; +import 'package:ocbo_esign_mobile/widgets/image_widget.dart'; import 'package:ocbo_esign_mobile/widgets/input_widget.dart'; import 'package:ocbo_esign_mobile/widgets/text_widget.dart'; import 'package:intl/intl.dart'; @@ -30,9 +31,9 @@ class _ValidateDetailPageState extends State { _total = double.parse(total).toInt(); }); - final response = await getApi('get-transactions', name, null); - final applicationNoList = response['result']; - final dateList = response['result2']; + // final response = await getApi('get-transactions', name, null); + // final applicationNoList = response['result']; + // final dateList = response['result2']; } @override @@ -63,11 +64,18 @@ class _ValidateDetailPageState extends State { ), ), child: SizedBox( - width: MediaQuery.of(context).size.width - 90, + width: MediaQuery.of(context).size.width - 104, child: Column( children: [ const Gap(88), - InputWidget(controller: _searchController, password: false, placeholder: 'Specify Application Number'), + ClipRRect( + borderRadius: BorderRadius.circular(36), + child: InputWidget( + controller: _searchController, + password: false, + placeholder: 'Search Application Number', + ), + ), const Gap(24), BoxWidget( circular: 16, @@ -76,7 +84,7 @@ class _ValidateDetailPageState extends State { children: [ Column( children: [ - TextWidget(text: formatter.format(_total), size: 64, bold: true), + TextWidget(text: formatter.format(_total), size: 50, bold: true), TextWidget(text: 'Total Signed Applications', size: 16), ], ), @@ -84,20 +92,74 @@ class _ValidateDetailPageState extends State { ), ), const Gap(16), - const BoxWidget( - circular: 16, - content: Row( - mainAxisAlignment: MainAxisAlignment.center, - children: [ - Column( + (Column( + crossAxisAlignment: CrossAxisAlignment.center, + children: [ + BoxWidget( + alignment: CrossAxisAlignment.center, + circular: 16, + content: Row( children: [ - TextWidget(text: '23-000123', size: 24, bold: true), - TextWidget(text: 'Total Signed Applications', size: 20), + const ImageWidget(imagePath: 'assets/esign.webp', size: 48, measureByHeight: true), + const Gap(16), + Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + TextWidget(text: '23-000123', size: 18, bold: true), + const Gap(4), + TextWidget(text: 'Total Signed Applications', size: 12), + ], + ), ], ), - ], - ), - ), + ), + const Gap(8), + BoxWidget( + alignment: CrossAxisAlignment.center, + circular: 16, + content: Row( + children: [ + const ImageWidget(imagePath: 'assets/esign.webp', size: 48, measureByHeight: true), + const Gap(16), + Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + TextWidget(text: '23-000123', size: 18, bold: true), + const Gap(4), + TextWidget(text: 'Total Signed Applications', size: 12), + const Gap(4), + Expanded( + child: Row( + mainAxisAlignment: MainAxisAlignment.end, + children: [TextWidget(text: 'Dates', size: 8)], + ), + ), + ], + ), + ], + ), + ), + const Gap(8), + BoxWidget( + alignment: CrossAxisAlignment.center, + circular: 16, + content: Row( + children: [ + const ImageWidget(imagePath: 'assets/esign.webp', size: 48, measureByHeight: true), + const Gap(16), + Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + TextWidget(text: '23-000123', size: 18, bold: true), + const Gap(4), + TextWidget(text: 'Total Signed Applications', size: 12), + ], + ), + ], + ), + ), + ], + )), ], ), ),