app/lib/components/payment_body.dart

147 lines
5.5 KiB
Dart
Raw Normal View History

2022-04-26 11:15:38 +02:00
import 'package:flutter/material.dart';
2022-04-29 12:50:01 +02:00
import 'package:nekoya_flutter/components/menu.dart';
2022-04-26 11:15:38 +02:00
class PaymentBody extends StatefulWidget {
const PaymentBody({Key? key}) : super(key: key);
@override
State<PaymentBody> createState() => _PaymentBodyState();
}
class _PaymentBodyState extends State<PaymentBody> {
@override
Widget build(BuildContext context) {
return Container(
2022-04-28 16:17:54 +02:00
decoration: const BoxDecoration(color: Colors.transparent),
child: ListView(
scrollDirection: Axis.vertical,
shrinkWrap: true,
children: [
Container(
padding: const EdgeInsets.only(top: 40, bottom: 30),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [
Image.asset(
'assets/bca.webp',
cacheHeight: 40,
cacheWidth: 100,
),
Image.asset(
'assets/bni.webp',
cacheHeight: 40,
cacheWidth: 100,
),
Image.asset(
'assets/bri.webp',
cacheHeight: 40,
cacheWidth: 100,
),
],
),
),
Container(
2022-04-28 21:20:36 +02:00
padding: const EdgeInsets.only(bottom: 20),
2022-04-28 16:17:54 +02:00
child: ClipRRect(
borderRadius: BorderRadius.circular(18),
2022-04-29 15:32:17 +02:00
child: const ExpansionTile(
backgroundColor: Color(0xff8B0000),
collapsedBackgroundColor: Color(0xff8B0000),
textColor: Colors.white,
collapsedTextColor: Colors.white,
2022-04-29 15:32:17 +02:00
title: Text('BCA'),
children: [
ListTile(
textColor: Colors.white,
2022-04-27 12:16:07 +02:00
title: Text(
2022-04-28 21:20:36 +02:00
'1. Login pada alamat Internet Banking BCA (***) \n2. Pilih menu Pembayaran Tagihan > Pembayaran \n3. Pada Ke Rekening masukkan Rekening perusahaan \n4. Masukkan Jumlah Nominal yang akan ditransfer \n5. Kemudian tekan send. Cetak/simpan stuck Transfer sebagai bukti pembayaran'),
)
],
2022-04-26 11:15:38 +02:00
),
2022-04-28 16:17:54 +02:00
),
),
Container(
2022-04-28 21:20:36 +02:00
padding: const EdgeInsets.only(bottom: 20),
2022-04-28 16:17:54 +02:00
child: ClipRRect(
borderRadius: BorderRadius.circular(18),
2022-04-29 15:32:17 +02:00
child: const ExpansionTile(
backgroundColor: Color(0xff8B0000),
collapsedBackgroundColor: Color(0xff8B0000),
textColor: Colors.white,
collapsedTextColor: Colors.white,
2022-04-29 15:32:17 +02:00
title: Text('BNI'),
children: [
ListTile(
textColor: Colors.white,
2022-04-27 12:16:07 +02:00
title: Text(
2022-04-28 21:20:36 +02:00
'1. Login pada alamat Internet Banking BNI (***)\n2. Pilih menu Pembayaran Tagihan > Pembayaran > Antar Rekening\n3. Pada Ke Rekening masukkan Rekening perusahaan\n4. Masukkan Jumlah Nominal yang akan ditransfer\n5. Kemudian tekan send. Cetak/simpan stuck Transfer sebagai bukti pembayaran'),
)
],
),
2022-04-28 16:17:54 +02:00
),
),
2022-04-28 21:20:36 +02:00
ClipRRect(
borderRadius: BorderRadius.circular(18),
2022-04-29 15:32:17 +02:00
child: const ExpansionTile(
backgroundColor: Color(0xff8B0000),
collapsedBackgroundColor: Color(0xff8B0000),
2022-04-28 21:20:36 +02:00
textColor: Colors.white,
collapsedTextColor: Colors.white,
2022-04-29 15:32:17 +02:00
title: Text('BRI'),
children: [
2022-04-28 21:20:36 +02:00
ListTile(
textColor: Colors.white,
title: Text(
'1. Login pada alamat Internet Banking BRI (***)\n2. Pilih menu Pembayaran Tagihan > Pembayaran > Antar Rekening\n3. Pada Ke Rekening masukkan Rekening perusahaan\n4. Masukkan Jumlah Nominal yang akan ditransfer\n5. Kemudian tekan send. Cetak/simpan stuck Transfer sebagai bukti pembayaran'),
)
],
),
),
2022-04-28 16:17:54 +02:00
Container(
2022-04-28 21:20:36 +02:00
padding: const EdgeInsets.only(top: 40),
2022-04-28 16:17:54 +02:00
color: Colors.transparent,
),
Container(
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(0),
color: const Color(0xff8B0000),
),
2022-04-28 21:20:36 +02:00
child: const Text(
2022-04-28 16:17:54 +02:00
'13000000',
style: TextStyle(
fontSize: 30,
color: Colors.white,
),
textAlign: TextAlign.center,
),
),
Container(
2022-04-28 21:20:36 +02:00
padding: const EdgeInsets.only(top: 40),
2022-04-28 16:17:54 +02:00
color: Colors.transparent,
),
2022-04-28 21:20:36 +02:00
ElevatedButton(
style: ButtonStyle(
foregroundColor:
2022-04-29 15:02:45 +02:00
MaterialStateProperty.all(const Color(0xff8B0000)),
2022-04-28 21:20:36 +02:00
backgroundColor:
2022-04-29 15:02:45 +02:00
MaterialStateProperty.all(const Color(0xff8B0000)),
2022-04-28 21:20:36 +02:00
shape: MaterialStateProperty.all<RoundedRectangleBorder>(
RoundedRectangleBorder(
borderRadius: BorderRadius.circular(18.0),
2022-05-10 06:52:50 +02:00
side: const BorderSide(color: Color(0xff8B0000))))),
2022-04-28 21:20:36 +02:00
onPressed: () {
2022-04-29 15:02:45 +02:00
Navigator.of(context).pushReplacement(MaterialPageRoute(
builder: (context) => const Menu(initialScreen: 4)));
2022-04-28 21:20:36 +02:00
},
child: const Text(
'Transaction',
style: TextStyle(color: Colors.white, fontSize: 25),
2022-04-28 16:17:54 +02:00
),
),
],
),
);
2022-04-26 11:15:38 +02:00
}
}