Updated page
This commit is contained in:
parent
79633c721c
commit
98607490ee
1 changed files with 79 additions and 17 deletions
|
|
@ -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/blocs/qr/functions/bloc_getqr.dart';
|
||||||
import 'package:ocbo_esign_mobile/functions/get_api.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/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/input_widget.dart';
|
||||||
import 'package:ocbo_esign_mobile/widgets/text_widget.dart';
|
import 'package:ocbo_esign_mobile/widgets/text_widget.dart';
|
||||||
import 'package:intl/intl.dart';
|
import 'package:intl/intl.dart';
|
||||||
|
|
@ -30,9 +31,9 @@ class _ValidateDetailPageState extends State<ValidateDetailPage> {
|
||||||
_total = double.parse(total).toInt();
|
_total = double.parse(total).toInt();
|
||||||
});
|
});
|
||||||
|
|
||||||
final response = await getApi('get-transactions', name, null);
|
// final response = await getApi('get-transactions', name, null);
|
||||||
final applicationNoList = response['result'];
|
// final applicationNoList = response['result'];
|
||||||
final dateList = response['result2'];
|
// final dateList = response['result2'];
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|
@ -63,11 +64,18 @@ class _ValidateDetailPageState extends State<ValidateDetailPage> {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
child: SizedBox(
|
child: SizedBox(
|
||||||
width: MediaQuery.of(context).size.width - 90,
|
width: MediaQuery.of(context).size.width - 104,
|
||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
const Gap(88),
|
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),
|
const Gap(24),
|
||||||
BoxWidget(
|
BoxWidget(
|
||||||
circular: 16,
|
circular: 16,
|
||||||
|
|
@ -76,7 +84,7 @@ class _ValidateDetailPageState extends State<ValidateDetailPage> {
|
||||||
children: [
|
children: [
|
||||||
Column(
|
Column(
|
||||||
children: [
|
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),
|
TextWidget(text: 'Total Signed Applications', size: 16),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|
@ -84,20 +92,74 @@ class _ValidateDetailPageState extends State<ValidateDetailPage> {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
const Gap(16),
|
const Gap(16),
|
||||||
const BoxWidget(
|
(Column(
|
||||||
circular: 16,
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
content: Row(
|
children: [
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
BoxWidget(
|
||||||
children: [
|
alignment: CrossAxisAlignment.center,
|
||||||
Column(
|
circular: 16,
|
||||||
|
content: Row(
|
||||||
children: [
|
children: [
|
||||||
TextWidget(text: '23-000123', size: 24, bold: true),
|
const ImageWidget(imagePath: 'assets/esign.webp', size: 48, measureByHeight: true),
|
||||||
TextWidget(text: 'Total Signed Applications', size: 20),
|
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),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
)),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue