From 029f298b43d0623384cd4b434c7f22c076d9f4ad Mon Sep 17 00:00:00 2001 From: D Shrat <dshrat29@gmail.com> Date: Wed, 27 Apr 2022 16:01:34 +0700 Subject: [PATCH] Merge branch 'main' of gitlab.com:nekoya/app --- lib/components/payment_body.dart | 190 +++++++++++++++++++++++++++---- pubspec.lock | 28 +++++ pubspec.yaml | 2 + 3 files changed, 196 insertions(+), 24 deletions(-) diff --git a/lib/components/payment_body.dart b/lib/components/payment_body.dart index 5e88a79..629bfcf 100644 --- a/lib/components/payment_body.dart +++ b/lib/components/payment_body.dart @@ -11,33 +11,175 @@ class _PaymentBodyState extends State<PaymentBody> { @override Widget build(BuildContext context) { return Container( - constraints: const BoxConstraints.expand(height: 150.0), - decoration: const BoxDecoration(color: Colors.transparent), - child: Column( - children: [ - Row( - mainAxisAlignment: MainAxisAlignment.spaceEvenly, + decoration: const BoxDecoration(color: Colors.transparent), + child: ListView( + scrollDirection: Axis.vertical, + shrinkWrap: true, children: [ - Image.asset( - 'assets/bca.webp', - cacheHeight: 40, - cacheWidth: 100, + Container( + padding: 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, + ), + ], + ), ), - Image.asset( - 'assets/bni.webp', - cacheHeight: 40, - cacheWidth: 100, + ExpansionTile( + backgroundColor: Colors.blue, + collapsedBackgroundColor: Colors.blue.shade800, + textColor: Colors.white, + collapsedTextColor: Colors.white, + title: Text('BCA'), + children: [ + ListTile( + textColor: Colors.white, + title: const Text( + '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'), + ) + ], ), - Image.asset( - 'assets/bri.webp', - cacheHeight: 40, - cacheWidth: 100, + ExpansionTile( + backgroundColor: Colors.blue, + collapsedBackgroundColor: Colors.blue.shade800, + textColor: Colors.white, + collapsedTextColor: Colors.white, + title: Text('BNI'), + children: [ + ListTile( + textColor: Colors.white, + title: const Text( + '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'), + ) + ], ), - ], - ), - Row(), - ], - ), - ); + ExpansionTile( + backgroundColor: Colors.blue, + collapsedBackgroundColor: Colors.blue.shade800, + textColor: Colors.white, + collapsedTextColor: Colors.white, + title: Text('BRI'), + children: [ + ListTile( + textColor: Colors.white, + title: const 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'), + ) + ], + ), + ]) + // children: [ + // Container( + // 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, + // ), + // ], + // ), + // ), + // ExpansionTile( + // title: Text('data'), + // children: [ + // ListView( + // scrollDirection: Axis.vertical, + // shrinkWrap: true, + // children: [ + // Container( + // child: Text('data'), + // ) + // ], + // ) + // ], + // ), + // ListView( + // scrollDirection: Axis.vertical, + // shrinkWrap: true, + // children: [ + // ExpansionTile( + // title: Text('data'), + // children: [ + // ListTile( + // title: const Text('data'), + // ) + // ], + // ), + // ], + // ) + // GFAccordion( + // titleBorderRadius: BorderRadius.circular(20), + // contentBorderRadius: BorderRadius.circular(20), + // expandedTitleBackgroundColor: Colors.blue.shade800, + // contentBackgroundColor: Colors.blue.shade800, + // collapsedTitleBackgroundColor: Colors.blue.shade400, + // title: 'BCA', + // content: + // '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', + // ), + // GFAccordion( + // titleBorderRadius: BorderRadius.circular(20), + // expandedTitleBackgroundColor: Colors.blue.shade800, + // contentBackgroundColor: Colors.blue.shade800, + // collapsedTitleBackgroundColor: Colors.blue.shade400, + // title: 'BCA', + // content: + // '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', + // ), + // GFAccordion( + // titleBorderRadius: BorderRadius.circular(20), + // expandedTitleBackgroundColor: Colors.blue.shade800, + // contentBackgroundColor: Colors.blue.shade800, + // collapsedTitleBackgroundColor: Colors.blue.shade400, + // title: 'BCA', + // content: + // '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', + // ) + // Container( + // margin: const EdgeInsets.all(15.0), + // child: Card( + // color: const Color(0xff1b1c1e), + // shape: RoundedRectangleBorder( + // borderRadius: BorderRadius.circular(10), + // ), + // child: ListView.builder( + // scrollDirection: Axis.vertical, + // shrinkWrap: true, + // itemBuilder: (context, index) { + // return Container( + // child: Text('data'), + // ) + // } + // ), + // ), + // ) + + ); } } diff --git a/pubspec.lock b/pubspec.lock index 5c3cae0..efad088 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -1,6 +1,13 @@ # Generated by pub # See https://dart.dev/tools/pub/glossary#lockfile packages: + accordion: + dependency: "direct main" + description: + name: accordion + url: "https://pub.dartlang.org" + source: hosted + version: "2.2.3" animated_splash_screen: dependency: "direct main" description: @@ -177,6 +184,20 @@ packages: description: flutter source: sdk version: "0.0.0" + get: + dependency: transitive + description: + name: get + url: "https://pub.dartlang.org" + source: hosted + version: "4.6.1" + getwidget: + dependency: "direct main" + description: + name: getwidget + url: "https://pub.dartlang.org" + source: hosted + version: "2.0.5" http: dependency: transitive description: @@ -359,6 +380,13 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "0.27.3" + scroll_to_index: + dependency: transitive + description: + name: scroll_to_index + url: "https://pub.dartlang.org" + source: hosted + version: "2.1.1" shared_preferences: dependency: "direct main" description: diff --git a/pubspec.yaml b/pubspec.yaml index 0325f14..40c9ad4 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -27,6 +27,7 @@ environment: # the latest version available on pub.dev. To see which dependencies have newer # versions available, run `flutter pub outdated`. dependencies: + accordion: ^2.2.3 animated_splash_screen: ^1.2.0 cached_network_image: ^3.2.0 cupertino_icons: ^1.0.2 @@ -35,6 +36,7 @@ dependencies: sdk: flutter flutter_form_builder: ^7.1.1 flutter_launcher_icons_maker: ^0.10.2 + getwidget: ^2.0.5 lottie: ^1.3.0 shared_preferences: ^2.0.13