import 'package:cheminova/models/kyc_model.dart'; import 'package:flutter/material.dart'; import 'package:flutter_svg/svg.dart'; import 'package:get/get.dart'; import 'package:google_fonts/google_fonts.dart'; import '../../controller/kyc_controller.dart'; class KycVerificationScreen1 extends StatefulWidget { KycModel? kycModel; KycVerificationScreen1({super.key,this.kycModel}); @override State createState() => _KycVerificationScreen1State(); } class _KycVerificationScreen1State extends State { final KycController _kycController = Get.put(KycController()); @override Widget build(BuildContext context) { return Scaffold( extendBodyBehindAppBar: true, appBar: AppBar( centerTitle: true, backgroundColor: Colors.transparent, elevation: 0, leading: GestureDetector( onTap: () {}, child: Padding( padding: const EdgeInsets.all(16.0), child: SvgPicture.asset( 'assets/svg/menu.svg', ), ), ), actions: [ GestureDetector( onTap: () => Get.back(), child: Padding( padding: const EdgeInsets.all(8.0), child: SvgPicture.asset( 'assets/svg/back_arrow.svg', ), ), ), ], title: const Text( "KYC Verification", ), ), body: Stack( fit: StackFit.expand, children: [ Image.asset( 'assets/images/image_1.png', fit: BoxFit.cover, ), SafeArea( child: SingleChildScrollView( child: Padding( padding: const EdgeInsets.all(18.0), child: Column( mainAxisSize: MainAxisSize.min, mainAxisAlignment: MainAxisAlignment.start, children: [ SizedBox(height: Get.height * 0.02), Card( shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(19), side: const BorderSide(color: Color(0xFFFDFDFD)), ), color: const Color(0xFFB4D1E5).withOpacity(0.9), child: Padding( padding: const EdgeInsets.all(12.0), child: Column( mainAxisSize: MainAxisSize.min, children: [ SizedBox(height: Get.height * 0.02), SizedBox( width: Get.width, child: Card( child: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ Padding( padding: const EdgeInsets.fromLTRB( 16, 8, 8, 0), child: Text( "Document Viewer", style: GoogleFonts.roboto( fontSize: 14, fontWeight: FontWeight.w700, ), ), ), Padding( padding: const EdgeInsets.all(8.0), child: ClipRRect( borderRadius: BorderRadius.circular(10), child: Image.network( _kycController.kycList[0].aadharImg!.url as String, //"assets/images/aadhaar_card_sample_300_x_212.png", fit: BoxFit.contain, ), ), ), Padding( padding: const EdgeInsets.all(8.0), child: ClipRRect( borderRadius: BorderRadius.circular(10), child: Image.network( _kycController.kycList[0].panImg!.url as String, //"assets/images/asample_of_permanent_account_number_pan_card.png", fit: BoxFit.contain, ), ), ), ], ), ), ), SizedBox(height: Get.height * 0.01), SizedBox( width: Get.width, child: Card( child: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ Padding( padding: const EdgeInsets.fromLTRB( 16, 8, 8, 0), child: Text( "Verification Options", style: GoogleFonts.roboto( fontSize: 14, fontWeight: FontWeight.w700, ), ), ), Row( children: [ SizedBox( width: Get.width * 0.4, child: Padding( padding: const EdgeInsets.all(8.0), child: ElevatedButton( onPressed: () {}, style: ElevatedButton.styleFrom( foregroundColor: Colors.white, backgroundColor: const Color(0xFF004791), shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(10), ), ), child: Text( "Approve", style: GoogleFonts.roboto( fontSize: 14, fontWeight: FontWeight.w400, ), ), ), ), ), SizedBox( width: Get.width * 0.4, child: Padding( padding: const EdgeInsets.all(8.0), child: ElevatedButton( onPressed: () {}, style: ElevatedButton.styleFrom( foregroundColor: Colors.white, backgroundColor: const Color(0xFF910000), shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(10), ), ), child: Text( "Reject", style: GoogleFonts.roboto( fontSize: 14, fontWeight: FontWeight.w400, ), ), ), ), ), ], ), ], ), ), ), SizedBox(height: Get.height * 0.01), Card( child: SizedBox( width: Get.width, height: Get.height * 0.2, child: Padding( padding: const EdgeInsets.all(12), child: Text( "Comment:", style: GoogleFonts.roboto( fontSize: Get.width * 0.04, fontWeight: FontWeight.w700, ), ), ), ), ), ], ), ), ), ], ), ), ), ), ], ), ); } }