|
|
|
|
@ -244,126 +244,102 @@ class _FinancialMainScreenState extends State<FinancialMainScreen>
|
|
|
|
|
SizedBox(width: 4),
|
|
|
|
|
Text(
|
|
|
|
|
"Create Account",
|
|
|
|
|
style: fontTextStyle(
|
|
|
|
|
14, const Color(0xFFFFFFFF), FontWeight.w400),
|
|
|
|
|
style: fontTextStyle(12, const Color(0xFFFFFFFF), FontWeight.w400),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
// Account Summary (ONLY header + count)
|
|
|
|
|
Container(
|
|
|
|
|
padding: const EdgeInsets.all(16),
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
borderRadius: BorderRadius.circular(16),
|
|
|
|
|
),
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
child: Row(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
|
children: [
|
|
|
|
|
Row(
|
|
|
|
|
Expanded(
|
|
|
|
|
child: Text(
|
|
|
|
|
"Account Summary",
|
|
|
|
|
style: fontTextStyle(12, const Color(0xFF2D2E30), FontWeight.w500),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.end,
|
|
|
|
|
children: [
|
|
|
|
|
const Expanded(
|
|
|
|
|
child: Text(
|
|
|
|
|
"Account Summary",
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontSize: 16, fontWeight: FontWeight.w600),
|
|
|
|
|
),
|
|
|
|
|
Text(
|
|
|
|
|
"05",
|
|
|
|
|
style: fontTextStyle(24, const Color(0xFF0D3771), FontWeight.w500),
|
|
|
|
|
),
|
|
|
|
|
Column(
|
|
|
|
|
children: const [
|
|
|
|
|
Text(
|
|
|
|
|
"05",
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontSize: 28,
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
color: Colors.blue),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(height: 2),
|
|
|
|
|
Text(
|
|
|
|
|
"4 active, 1 overdue",
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontSize: 12,
|
|
|
|
|
color: Colors.grey,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
const SizedBox(height: 2),
|
|
|
|
|
Text(
|
|
|
|
|
"4 active, 1 overdue",
|
|
|
|
|
style: fontTextStyle(10, const Color(0xFF646566), FontWeight.w400),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
const SizedBox(height: 16),
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
Expanded(
|
|
|
|
|
child: Container(
|
|
|
|
|
padding: const EdgeInsets.all(12),
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
borderRadius: BorderRadius.circular(12),
|
|
|
|
|
color: const Color(0xfffafafa),
|
|
|
|
|
),
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: const [
|
|
|
|
|
Text(
|
|
|
|
|
"Receivable Balance",
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontSize: 12, color: Colors.black54),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(height: 4),
|
|
|
|
|
Text(
|
|
|
|
|
"₹24,000",
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontSize: 16,
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
color: Colors.red),
|
|
|
|
|
),
|
|
|
|
|
Text(
|
|
|
|
|
"40.6% of total credit",
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontSize: 11, color: Colors.grey),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
const SizedBox(height: 12),
|
|
|
|
|
|
|
|
|
|
// NEW: Balances in a separate container/card
|
|
|
|
|
Container(
|
|
|
|
|
padding: const EdgeInsets.all(16),
|
|
|
|
|
|
|
|
|
|
child: Row(
|
|
|
|
|
children: [
|
|
|
|
|
Expanded(
|
|
|
|
|
child: Container(
|
|
|
|
|
padding: const EdgeInsets.all(12),
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
borderRadius: BorderRadius.circular(12),
|
|
|
|
|
color: const Color(0xffFFFFFF),
|
|
|
|
|
),
|
|
|
|
|
const SizedBox(width: 12),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: Container(
|
|
|
|
|
padding: const EdgeInsets.all(12),
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
borderRadius: BorderRadius.circular(12),
|
|
|
|
|
color: const Color(0xfffafafa),
|
|
|
|
|
),
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: const [
|
|
|
|
|
Text(
|
|
|
|
|
"Advance Balance",
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontSize: 12, color: Colors.black54),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(height: 4),
|
|
|
|
|
Text(
|
|
|
|
|
"₹24,000",
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontSize: 16,
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
color: Colors.green),
|
|
|
|
|
),
|
|
|
|
|
Text(
|
|
|
|
|
"60.4% of total credit",
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontSize: 11, color: Colors.grey),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
Text("Receivable Balance",
|
|
|
|
|
style: fontTextStyle(12, Color(0xFF2D2E30), FontWeight.w500)),
|
|
|
|
|
const SizedBox(height: 4),
|
|
|
|
|
Text("₹24,000",
|
|
|
|
|
style: fontTextStyle(16, Color(0xFFE2483D), FontWeight.w500)),
|
|
|
|
|
Text("40.6% of total credit",
|
|
|
|
|
style: fontTextStyle(10, Color(0xFF646566), FontWeight.w400)),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
const SizedBox(width: 12),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: Container(
|
|
|
|
|
padding: const EdgeInsets.all(12),
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
borderRadius: BorderRadius.circular(12),
|
|
|
|
|
color: const Color(0xffFFFFFF),
|
|
|
|
|
),
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
Text("Advance Balance",
|
|
|
|
|
style: fontTextStyle(12, Color(0xFF2D2E30), FontWeight.w500)),
|
|
|
|
|
const SizedBox(height: 4),
|
|
|
|
|
Text("₹24,000",
|
|
|
|
|
style: fontTextStyle(16, Color(0xFFE2483D), FontWeight.w500)),
|
|
|
|
|
Text("60.4% of total credit",
|
|
|
|
|
style: fontTextStyle(10, Color(0xFF646566), FontWeight.w400)),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
const SizedBox(height: 20),
|
|
|
|
|
|
|
|
|
|
// Search Bar
|
|
|
|
|
@ -386,13 +362,13 @@ class _FinancialMainScreenState extends State<FinancialMainScreen>
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
IconButton(
|
|
|
|
|
onPressed: () {},
|
|
|
|
|
icon: const Icon(Icons.sort, color: Colors.grey),
|
|
|
|
|
),
|
|
|
|
|
Image.asset("images/icon_tune.png", width: 24, height: 24),
|
|
|
|
|
const SizedBox(width: 16),
|
|
|
|
|
Image.asset("images/up_down arrow.png", width: 24, height: 24),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
const SizedBox(height: 20),
|
|
|
|
|
|
|
|
|
|
// Accounts List
|
|
|
|
|
@ -462,36 +438,7 @@ class _FinancialMainScreenState extends State<FinancialMainScreen>
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
// Name + Status
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
Expanded(
|
|
|
|
|
child: Text(
|
|
|
|
|
name,
|
|
|
|
|
style: const TextStyle(
|
|
|
|
|
fontSize: 16, fontWeight: FontWeight.bold),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Container(
|
|
|
|
|
padding:
|
|
|
|
|
const EdgeInsets.symmetric(horizontal: 8, vertical: 4),
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
color: status == "active"
|
|
|
|
|
? Colors.green.withOpacity(0.1)
|
|
|
|
|
: Colors.red.withOpacity(0.1),
|
|
|
|
|
borderRadius: BorderRadius.circular(12),
|
|
|
|
|
),
|
|
|
|
|
child: Text(
|
|
|
|
|
status,
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
color:
|
|
|
|
|
status == "active" ? Colors.green : Colors.redAccent,
|
|
|
|
|
fontSize: 12,
|
|
|
|
|
fontWeight: FontWeight.w500,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
Row( children: [ Expanded( child: Text( name, style: fontTextStyle(14, Color(0xFF2D2E30), FontWeight.w500)), ), Container( padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 4), decoration: BoxDecoration( color: status == "active" ? Colors.green.withOpacity(0.1) : Colors.red.withOpacity(0.1), borderRadius: BorderRadius.circular(12), ), child: Text( status, style: TextStyle( color: status == "active" ? Colors.green : Colors.redAccent, fontSize: 12, fontWeight: FontWeight.w500, ), ), ) ], ),
|
|
|
|
|
const SizedBox(height: 4),
|
|
|
|
|
Text(
|
|
|
|
|
orders,
|
|
|
|
|
|