Modified Dashboard Screen
This commit is contained in:
parent
8fb84abe83
commit
095b35c996
@ -38,8 +38,8 @@ class _DashboardScreenState extends State<DashboardScreen> {
|
|||||||
child: InkWell(
|
child: InkWell(
|
||||||
borderRadius: BorderRadius.circular(20),
|
borderRadius: BorderRadius.circular(20),
|
||||||
onTap: (){
|
onTap: (){
|
||||||
Navigator.push(context, MaterialPageRoute(
|
// Navigator.push(context, MaterialPageRoute(
|
||||||
builder: (context) => const CustomerInfoScreen()));
|
// builder: (context) => const CustomerInfoScreen()));
|
||||||
},
|
},
|
||||||
child: const CircleAvatar(
|
child: const CircleAvatar(
|
||||||
backgroundImage: AssetImage('assets/images/avatar.jpg'), // Replace with your image
|
backgroundImage: AssetImage('assets/images/avatar.jpg'), // Replace with your image
|
||||||
@ -103,14 +103,24 @@ class _DashboardScreenState extends State<DashboardScreen> {
|
|||||||
shrinkWrap: true,
|
shrinkWrap: true,
|
||||||
physics: const NeverScrollableScrollPhysics(),
|
physics: const NeverScrollableScrollPhysics(),
|
||||||
children: [
|
children: [
|
||||||
_buildQuickLink(Symbols.id_card, "Customer \n Info"),
|
_buildQuickLink(Symbols.id_card, "Customer \n Info", () {
|
||||||
_buildQuickLink(Symbols.currency_rupee, "Quick \n Pay"),
|
Navigator.push(context, MaterialPageRoute(
|
||||||
_buildQuickLink(Symbols.send_money, "Fund \n Transfer"),
|
builder: (context) => const CustomerInfoScreen()));;
|
||||||
_buildQuickLink(Symbols.server_person, "Account \n Info"),
|
}),
|
||||||
_buildQuickLink(Symbols.receipt_long, "Account \n History"),
|
_buildQuickLink(Symbols.currency_rupee, "Quick \n Pay",
|
||||||
_buildQuickLink(Symbols.checkbook, "Handle \n Cheque"),
|
() => print("")),
|
||||||
_buildQuickLink(Icons.group, "Manage \n Beneficiary"),
|
_buildQuickLink(Symbols.send_money, "Fund \n Transfer",
|
||||||
_buildQuickLink(Symbols.support_agent, "Contact \n Us"),
|
() => print("")),
|
||||||
|
_buildQuickLink(Symbols.server_person, "Account \n Info",
|
||||||
|
() => print("")),
|
||||||
|
_buildQuickLink(Symbols.receipt_long, "Account \n History",
|
||||||
|
() => print("")),
|
||||||
|
_buildQuickLink(Symbols.checkbook, "Handle \n Cheque",
|
||||||
|
() => print("")),
|
||||||
|
_buildQuickLink(Icons.group, "Manage \n Beneficiary",
|
||||||
|
() => print("")),
|
||||||
|
_buildQuickLink(Symbols.support_agent, "Contact \n Us",
|
||||||
|
() => print("")),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
const SizedBox(height: 10),
|
const SizedBox(height: 10),
|
||||||
@ -135,14 +145,17 @@ class _DashboardScreenState extends State<DashboardScreen> {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
Widget _buildQuickLink(IconData icon, String label) {
|
Widget _buildQuickLink(IconData icon, String label, VoidCallback onTap) {
|
||||||
return Column(
|
return InkWell(
|
||||||
mainAxisSize: MainAxisSize.min,
|
onTap: onTap,
|
||||||
children: [
|
child: Column(
|
||||||
Icon(icon, size: 30, color: Colors.blue[700]),
|
mainAxisSize: MainAxisSize.min,
|
||||||
const SizedBox(height: 4),
|
children: [
|
||||||
Text(label, textAlign: TextAlign.center, style: const TextStyle(fontSize: 12)),
|
Icon(icon, size: 30, color: Colors.blue[700]),
|
||||||
],
|
const SizedBox(height: 4),
|
||||||
|
Text(label, textAlign: TextAlign.center, style: const TextStyle(fontSize: 12)),
|
||||||
|
],
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user