import 'package:cheminova/screens/retail/kyc_verification_screen.dart'; import 'package:flutter/material.dart'; import 'package:flutter_svg/svg.dart'; import 'package:get/get.dart'; import 'package:google_fonts/google_fonts.dart'; class RetailDistributerDetailScreen extends StatefulWidget { const RetailDistributerDetailScreen({super.key}); @override State createState() => _RetailDistributerDetailScreenState(); } class _RetailDistributerDetailScreenState extends State { @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( "Retailer Detail", ), ), body: Stack( fit: StackFit.expand, children: [ Image.asset( 'assets/images/image_1.png', fit: BoxFit.cover, ), SafeArea( child: Column( children: [ SizedBox( height: Get.height * 0.02, ), SizedBox( height: Get.height * 0.65, child: Card( margin: const EdgeInsets.symmetric(horizontal: 18), shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(19), side: const BorderSide(color: Color(0xFFFDFDFD)), ), color: const Color(0xFFB4D1E5).withOpacity(0.9), child: SingleChildScrollView( child: Padding( padding: const EdgeInsets.all(12.0), child: Column( mainAxisSize: MainAxisSize.min, children: [ Card( child: Column( children: [ SizedBox( width: Get.width, child: Padding( padding: const EdgeInsets.fromLTRB(8, 8, 8, 0), child: Text( "Retailer Information", style: GoogleFonts.roboto( fontSize: Get.width * 0.04, fontWeight: FontWeight.w600, ), ), ), ), SizedBox( width: Get.width, child: Padding( padding: const EdgeInsets.fromLTRB(8, 8, 8, 0), child: Text( "Name: XYZ", style: GoogleFonts.roboto( fontSize: Get.width * 0.04, fontWeight: FontWeight.w400, ), ), ), ), SizedBox( width: Get.width, child: Padding( padding: const EdgeInsets.fromLTRB(8, 8, 8, 0), child: Text( "Address: Hyderabad", style: GoogleFonts.roboto( fontSize: Get.width * 0.04, fontWeight: FontWeight.w400, ), ), ), ), SizedBox( width: Get.width, child: Padding( padding: const EdgeInsets.fromLTRB(8, 8, 8, 8), child: Text( "Contact: +91 987654321", style: GoogleFonts.roboto( fontSize: Get.width * 0.04, fontWeight: FontWeight.w400, ), ), ), ), ], ), ), SizedBox(height: Get.height * 0.01), Card( child: Column( children: [ SizedBox( width: Get.width, child: Padding( padding: const EdgeInsets.fromLTRB(8, 8, 8, 0), child: Text( "Application Details", style: GoogleFonts.roboto( fontSize: Get.width * 0.04, fontWeight: FontWeight.w600, ), ), ), ), SizedBox( width: Get.width, child: Padding( padding: const EdgeInsets.fromLTRB(8, 8, 8, 0), child: Text( "Date of Application: MM/DD/YYYY", style: GoogleFonts.roboto( fontSize: Get.width * 0.04, fontWeight: FontWeight.w400, ), ), ), ), SizedBox( width: Get.width, child: Padding( padding: const EdgeInsets.all(8.0), child: Text( "Status: Pending", style: GoogleFonts.roboto( fontSize: Get.width * 0.04, fontWeight: FontWeight.w400, ), ), ), ), ], ), ), SizedBox(height: Get.height * 0.01), Card( child: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ Padding( padding: const EdgeInsets.fromLTRB(16, 8, 8, 0), child: Text( "KYC Documents", style: GoogleFonts.roboto( fontSize: 14, fontWeight: FontWeight.w600, ), ), ), Padding( padding: const EdgeInsets.fromLTRB(16, 8, 8, 0), child: Text( "Document Type: ID", style: GoogleFonts.roboto( fontSize: 14, fontWeight: FontWeight.w400, ), ), ), Padding( padding: const EdgeInsets.fromLTRB(16, 8, 8, 8), child: Text( "Status: Processing", style: GoogleFonts.roboto( fontSize: 14, fontWeight: FontWeight.w400, ), ), ), 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( "View Document", style: GoogleFonts.roboto( fontSize: Get.width * 0.032, fontWeight: FontWeight.w400, ), ), ), ), ), SizedBox( width: Get.width * 0.4, child: ElevatedButton( onPressed: () => Get.to( () => const KycVerificationScreen(), ), style: ElevatedButton.styleFrom( foregroundColor: Colors.white, backgroundColor: const Color(0xFF004791), shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(10), ), ), child: Text( "Verify", style: GoogleFonts.roboto( fontSize: Get.width * 0.038, fontWeight: FontWeight.w400, ), ), ), ), ], ) ], ), ), ], ), ), ), ), ), ], ), ), ], ), ); } }