Compare commits
No commits in common. "e57f8af97dd185192e7a5e61eb741bfb2f652171" and "621d2f1614edd48a244fd0ac079b5fd39c4ab1d1" have entirely different histories.
e57f8af97d
...
621d2f1614
4 changed files with 21 additions and 83 deletions
Binary file not shown.
|
Before Width: | Height: | Size: 6.2 KiB |
|
|
@ -5,7 +5,6 @@ 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';
|
||||||
|
|
@ -31,9 +30,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
|
||||||
|
|
@ -64,18 +63,11 @@ class _ValidateDetailPageState extends State<ValidateDetailPage> {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
child: SizedBox(
|
child: SizedBox(
|
||||||
width: MediaQuery.of(context).size.width - 104,
|
width: MediaQuery.of(context).size.width - 90,
|
||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
const Gap(88),
|
const Gap(88),
|
||||||
ClipRRect(
|
InputWidget(controller: _searchController, password: false, placeholder: 'Specify Application Number'),
|
||||||
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,
|
||||||
|
|
@ -84,7 +76,7 @@ class _ValidateDetailPageState extends State<ValidateDetailPage> {
|
||||||
children: [
|
children: [
|
||||||
Column(
|
Column(
|
||||||
children: [
|
children: [
|
||||||
TextWidget(text: formatter.format(_total), size: 50, bold: true),
|
TextWidget(text: formatter.format(_total), size: 64, bold: true),
|
||||||
TextWidget(text: 'Total Signed Applications', size: 16),
|
TextWidget(text: 'Total Signed Applications', size: 16),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|
@ -92,74 +84,20 @@ class _ValidateDetailPageState extends State<ValidateDetailPage> {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
const Gap(16),
|
const Gap(16),
|
||||||
(Column(
|
const BoxWidget(
|
||||||
crossAxisAlignment: CrossAxisAlignment.center,
|
circular: 16,
|
||||||
children: [
|
content: Row(
|
||||||
BoxWidget(
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
alignment: CrossAxisAlignment.center,
|
children: [
|
||||||
circular: 16,
|
Column(
|
||||||
content: Row(
|
|
||||||
children: [
|
children: [
|
||||||
const ImageWidget(imagePath: 'assets/esign.webp', size: 48, measureByHeight: true),
|
TextWidget(text: '23-000123', size: 24, bold: true),
|
||||||
const Gap(16),
|
TextWidget(text: 'Total Signed Applications', size: 20),
|
||||||
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),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
),
|
|
||||||
],
|
|
||||||
)),
|
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,13 @@
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:gap/gap.dart';
|
||||||
|
import 'package:ocbo_esign_mobile/widgets/text_widget.dart';
|
||||||
|
|
||||||
class BoxWidget extends StatelessWidget {
|
class BoxWidget extends StatelessWidget {
|
||||||
final Widget content;
|
final Widget content;
|
||||||
final double? circular;
|
final double? circular;
|
||||||
final CrossAxisAlignment? alignment;
|
|
||||||
// final double? titleSize;
|
// final double? titleSize;
|
||||||
|
|
||||||
const BoxWidget({super.key, required this.content, this.circular = 8, this.alignment = CrossAxisAlignment.start});
|
const BoxWidget({super.key, required this.content, this.circular = 8});
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
|
@ -19,7 +20,7 @@ class BoxWidget extends StatelessWidget {
|
||||||
),
|
),
|
||||||
width: MediaQuery.of(context).size.width - 30,
|
width: MediaQuery.of(context).size.width - 30,
|
||||||
child: Column(
|
child: Column(
|
||||||
crossAxisAlignment: alignment ?? CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: [Padding(padding: const EdgeInsets.all(16), child: content)],
|
children: [Padding(padding: const EdgeInsets.all(16), child: content)],
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -45,4 +45,3 @@ flutter:
|
||||||
- .env
|
- .env
|
||||||
- assets/logo.webp
|
- assets/logo.webp
|
||||||
- assets/pat-alcala.webp
|
- assets/pat-alcala.webp
|
||||||
- assets/esign.webp
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue