438 lines
18 KiB
Dart
438 lines
18 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
|
import 'package:gap/gap.dart';
|
|
import 'package:google_fonts/google_fonts.dart';
|
|
import 'package:tanami_app/core/routes/routes.dart';
|
|
import 'package:tanami_app/core/styles/app_color.dart';
|
|
import 'package:tanami_app/core/styles/app_text.dart';
|
|
|
|
import '../../../../../../core/utils/language/localizations_delegate.dart';
|
|
|
|
class DepositPreview extends StatefulWidget {
|
|
const DepositPreview({super.key});
|
|
|
|
@override
|
|
State<DepositPreview> createState() => _DepositPreviewState();
|
|
}
|
|
|
|
class _DepositPreviewState extends State<DepositPreview> {
|
|
List values = [
|
|
'Tanami Capital W.L.L',
|
|
'100000480779',
|
|
'BH 23 BBKU 00100 00048 0779',
|
|
'BBKUBHBM',
|
|
'Bank of Bahrain and Kuwait B.S.C',
|
|
'43 Government Avenue, Manama, Kingdom of Bahrain',
|
|
'BH00600000',
|
|
];
|
|
|
|
List titles2 = [
|
|
AppText.amtTrans,
|
|
AppText.paymentMethod,
|
|
AppText.feeText,
|
|
AppText.depositAmt,
|
|
];
|
|
List values2 = [
|
|
'',
|
|
'Money Transfer',
|
|
'3%',
|
|
'SAR 253',
|
|
];
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
var localizations = AppLocalizations.of(context);
|
|
List titles = [
|
|
localizations.translate("Account Name"),
|
|
localizations.translate("Account No."),
|
|
localizations.translate("IBAN"),
|
|
localizations.translate("SWIFT Code"),
|
|
localizations.translate("Bank Name"),
|
|
localizations.translate("Bank Address"),
|
|
localizations.translate("Client ID"),
|
|
];
|
|
return Scaffold(
|
|
backgroundColor: Colors.white,
|
|
appBar: AppBar(
|
|
backgroundColor: Colors.white,
|
|
elevation: 0,
|
|
scrolledUnderElevation: 0.0,
|
|
centerTitle: true,
|
|
title: Text(
|
|
localizations.translate("Deposit confirmation"),
|
|
style: GoogleFonts.dmSans(
|
|
color: const Color(0xFF272727),
|
|
fontSize: 20.sp,
|
|
fontWeight: FontWeight.w700,
|
|
),
|
|
),
|
|
),
|
|
body: SingleChildScrollView(
|
|
child: Padding(
|
|
padding: const EdgeInsets.all(18.0),
|
|
child: Column(
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
children: [
|
|
// RichText(
|
|
// text: TextSpan(
|
|
// children: [
|
|
// TextSpan(
|
|
// text: '${localizations.translate(AppText.balance)}: ',
|
|
// style: GoogleFonts.dmSans(
|
|
// color: Colors.grey,
|
|
// fontSize: 12.sp,
|
|
// fontWeight: FontWeight.bold,
|
|
// ),
|
|
// ),
|
|
// TextSpan(
|
|
// text: 'SAR 178,000 ',
|
|
// style: GoogleFonts.dmSans(
|
|
// color: Colors.black,
|
|
// fontSize: 14.sp,
|
|
// fontWeight: FontWeight.bold,
|
|
// ),
|
|
// ),
|
|
// ],
|
|
// ),
|
|
// ),
|
|
// SizedBox(
|
|
// height: 20.h,
|
|
// ),
|
|
// Container(
|
|
// width: double.infinity,
|
|
// decoration: BoxDecoration(
|
|
// borderRadius: BorderRadius.circular(22.r),
|
|
// color: Colors.white,
|
|
// boxShadow: [
|
|
// BoxShadow(
|
|
// color: Colors.black.withOpacity(0.15),
|
|
// spreadRadius: 2,
|
|
// blurRadius: 10,
|
|
// offset: const Offset(0, 5),
|
|
// ),
|
|
// ],
|
|
// ),
|
|
// child: Column(
|
|
// children: [
|
|
// Padding(
|
|
// padding: const EdgeInsets.all(12.0),
|
|
// child: Row(
|
|
// children: [
|
|
// Container(
|
|
// decoration: const BoxDecoration(
|
|
// shape: BoxShape.circle,
|
|
// color: Color(0xFF0FA4A4)),
|
|
// child: Padding(
|
|
// padding: const EdgeInsets.all(12.0),
|
|
// child: Image.asset(
|
|
// 'assets/images/wallet_screen/deposit_list.png',
|
|
// height: 36.h,
|
|
// ),
|
|
// ),
|
|
// ),
|
|
// SizedBox(
|
|
// width: 12.w,
|
|
// ),
|
|
// Text(
|
|
// localizations.translate (AppText.depositTitle),
|
|
// style: GoogleFonts.dmSans(
|
|
// color: Colors.black,
|
|
// fontSize: 17.sp,
|
|
// fontWeight: FontWeight.w700,
|
|
// ),
|
|
// ),
|
|
// ],
|
|
// ),
|
|
// ),
|
|
// Container(
|
|
// decoration: BoxDecoration(
|
|
// borderRadius: BorderRadius.only(
|
|
// bottomLeft: Radius.circular(22.r),
|
|
// bottomRight: Radius.circular(22.r),
|
|
// ),
|
|
// color: const Color(0xFFD8D8D8).withOpacity(0.4),
|
|
// ),
|
|
// child: Padding(
|
|
// padding: const EdgeInsets.symmetric(
|
|
// vertical: 16.0, horizontal: 12.0),
|
|
// child: ListView.builder(
|
|
// physics: const NeverScrollableScrollPhysics(),
|
|
// shrinkWrap: true,
|
|
// itemCount: titles2.length,
|
|
// itemBuilder: (context, index) {
|
|
// return Padding(
|
|
// padding:
|
|
// const EdgeInsets.symmetric(vertical: 5.0),
|
|
// child: Row(
|
|
// crossAxisAlignment: CrossAxisAlignment.center,
|
|
// mainAxisAlignment:
|
|
// MainAxisAlignment.spaceBetween,
|
|
// children: [
|
|
// Text(
|
|
// titles2[index],
|
|
// style: GoogleFonts.dmSans(
|
|
// color: const Color(0xFF535353),
|
|
// fontSize: 14.sp,
|
|
// fontWeight: FontWeight.w500,
|
|
// ),
|
|
// ),
|
|
// (index == 0)
|
|
// ? Column(
|
|
// crossAxisAlignment:
|
|
// CrossAxisAlignment.end,
|
|
// children: [
|
|
// Text(
|
|
// 'SAR 55,000',
|
|
// style: GoogleFonts.dmSans(
|
|
// color: Colors.black,
|
|
// fontSize: 14.sp,
|
|
// fontWeight: FontWeight.w700,
|
|
// ),
|
|
// ),
|
|
// Text(
|
|
// '\$ 14,685',
|
|
// style: GoogleFonts.dmSans(
|
|
// color: Colors.black,
|
|
// fontSize: 11.sp,
|
|
// fontWeight: FontWeight.w400,
|
|
// ),
|
|
// ),
|
|
// ],
|
|
// )
|
|
// : Text(
|
|
// values2[index],
|
|
// style: GoogleFonts.dmSans(
|
|
// color: Colors.black,
|
|
// fontSize: 14.sp,
|
|
// fontWeight: FontWeight.w700,
|
|
// ),
|
|
// ),
|
|
// ],
|
|
// ),
|
|
// );
|
|
// },
|
|
// ),
|
|
// ),
|
|
// ),
|
|
// ],
|
|
// ),
|
|
// ),
|
|
|
|
// SizedBox(
|
|
// height: 20.h,
|
|
// ),
|
|
// Container(
|
|
// decoration: BoxDecoration(
|
|
// borderRadius: BorderRadius.circular(22.r),
|
|
// color: const Color(0xFFEEF6FB),
|
|
// border: Border.all(color: const Color(0xFF90D4FF)),
|
|
// boxShadow: const [
|
|
// BoxShadow(
|
|
// color: Color(0xFFB0D3EF),
|
|
// spreadRadius: 1,
|
|
// blurRadius: 10,
|
|
// offset: Offset(0, 3),
|
|
// ),
|
|
// ],
|
|
// ),
|
|
// child: Padding(
|
|
// padding: const EdgeInsets.symmetric(
|
|
// vertical: 12.0, horizontal: 16.0),
|
|
// child: Row(
|
|
// crossAxisAlignment: CrossAxisAlignment.center,
|
|
// children: [
|
|
// Image.asset(
|
|
// 'assets/images/wallet_screen/info.png',
|
|
// height: 25.h,
|
|
// ),
|
|
// SizedBox(
|
|
// width: 10.w,
|
|
// ),
|
|
// Expanded(
|
|
// child: Column(
|
|
// crossAxisAlignment: CrossAxisAlignment.start,
|
|
// children: [
|
|
// Text(
|
|
// AppText.depositScreenTitle,
|
|
// style: GoogleFonts.dmSans(
|
|
// color: const Color(0xFF015698),
|
|
// fontSize: 14.sp,
|
|
// fontWeight: FontWeight.w700,
|
|
// ),
|
|
// ),
|
|
// const Gap(4),
|
|
// SizedBox(
|
|
// width: 280.w,
|
|
// child: Text(
|
|
// AppText.info3,
|
|
// style: GoogleFonts.dmSans(
|
|
// color: const Color(0xFF015698),
|
|
// fontSize: 12.sp,
|
|
// fontWeight: FontWeight.w500,
|
|
// ),
|
|
// ),
|
|
// ),
|
|
// ],
|
|
// ),
|
|
// ),
|
|
// ],
|
|
// ),
|
|
// ),
|
|
// ),
|
|
// SizedBox(
|
|
// height: 20.h,
|
|
// ),
|
|
Card(
|
|
color: AppColor.plainWhite,
|
|
elevation: 5,
|
|
child: Padding(
|
|
padding: const EdgeInsets.all(12.0),
|
|
child: Column(
|
|
mainAxisSize: MainAxisSize.min,
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
children: [
|
|
Text(
|
|
localizations.translate(AppText.depositDetails),
|
|
style: GoogleFonts.dmSans(
|
|
color: Colors.black,
|
|
fontSize: 15.sp,
|
|
fontWeight: FontWeight.w700,
|
|
),
|
|
),
|
|
SizedBox(
|
|
height: 10.h,
|
|
),
|
|
const Divider(
|
|
color: Color(0xFFE3E3E3),
|
|
),
|
|
SizedBox(
|
|
height: 10.h,
|
|
),
|
|
ListView.builder(
|
|
physics: const NeverScrollableScrollPhysics(),
|
|
itemCount: titles.length,
|
|
shrinkWrap: true,
|
|
itemBuilder: (context, index) {
|
|
return Column(
|
|
children: [
|
|
Row(
|
|
mainAxisAlignment:
|
|
MainAxisAlignment.spaceBetween,
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
children: [
|
|
Column(
|
|
crossAxisAlignment:
|
|
CrossAxisAlignment.start,
|
|
children: [
|
|
Text(
|
|
titles[index],
|
|
style: GoogleFonts.dmSans(
|
|
color: Colors.black,
|
|
fontSize: 14.sp,
|
|
fontWeight: FontWeight.w700,
|
|
),
|
|
),
|
|
SizedBox(
|
|
height: 8.h,
|
|
),
|
|
SizedBox(
|
|
width: 0.8.sw,
|
|
child: Text(
|
|
values[index],
|
|
style: GoogleFonts.dmSans(
|
|
color: const Color(0xFF191B1E),
|
|
fontSize: 14.sp,
|
|
fontWeight: FontWeight.w400,
|
|
),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
// Image.asset(
|
|
// 'assets/images/wallet_screen/copy.png',
|
|
// height: 25.h,
|
|
// )
|
|
],
|
|
),
|
|
(index != titles.length - 1)
|
|
? Column(
|
|
children: [
|
|
SizedBox(
|
|
height: 12.h,
|
|
),
|
|
Divider(
|
|
color: const Color(0xFFE3E3E3),
|
|
height: 2.h),
|
|
SizedBox(
|
|
height: 12.h,
|
|
),
|
|
],
|
|
)
|
|
: SizedBox(
|
|
height: 10.h,
|
|
),
|
|
],
|
|
);
|
|
},
|
|
)
|
|
],
|
|
),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
),
|
|
bottomNavigationBar: Column(
|
|
mainAxisSize: MainAxisSize.min,
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
children: [
|
|
GestureDetector(
|
|
onTap: () {
|
|
goRouter.pop();
|
|
goRouter.pop();
|
|
goRouter.pop();
|
|
goRouter.pop();
|
|
},
|
|
child: Container(
|
|
margin: const EdgeInsets.all(10.0),
|
|
height: 65.h,
|
|
width: double.infinity,
|
|
decoration: BoxDecoration(
|
|
borderRadius: BorderRadius.circular(22.r),
|
|
color: const Color(0xFF004717),
|
|
),
|
|
child: Padding(
|
|
padding: const EdgeInsets.symmetric(vertical: 20.0),
|
|
child: Center(
|
|
child: Text(
|
|
localizations.translate(AppText.depositNoti),
|
|
style: GoogleFonts.dmSans(
|
|
color: Colors.white,
|
|
fontSize: 14.sp,
|
|
fontWeight: FontWeight.w700,
|
|
),
|
|
),
|
|
),
|
|
),
|
|
),
|
|
),
|
|
const Gap(10),
|
|
// GestureDetector(
|
|
// onTap: () {
|
|
// goRouter.pop();
|
|
// },
|
|
// child: Center(
|
|
// child: TextWidget().text14W700(
|
|
// localizations.translate(AppText.back),
|
|
// clr: const Color(0xFF363636),
|
|
// textDecoration: TextDecoration.underline,
|
|
// ),
|
|
// ),
|
|
// ),
|
|
// const Gap(20),
|
|
],
|
|
),
|
|
);
|
|
}
|
|
}
|