Skip to content

Commit b4b83a1

Browse files
authored
Add buildFeatureCard widget for feature display
Added a new buildFeatureCard widget to create feature cards with an icon, title, and tap functionality.
1 parent 1ab9163 commit b4b83a1

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

lib/view/homescreen.dart

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -704,6 +704,46 @@ class _HomeScreenState extends State<HomeScreen>
704704
color: mdGrey400,
705705
),
706706
child: Text(l10n.transferButton),
707+
Widget buildFeatureCard({
708+
required IconData icon,
709+
required String title,
710+
required VoidCallback onTap,
711+
}) {
712+
return GestureDetector(
713+
onTap: onTap,
714+
child: Container(
715+
margin: const EdgeInsets.symmetric(horizontal: 10, vertical: 8),
716+
padding: const EdgeInsets.all(16),
717+
decoration: BoxDecoration(
718+
color: Colors.white,
719+
borderRadius: BorderRadius.circular(12),
720+
boxShadow: [
721+
BoxShadow(
722+
color: Colors.grey.withOpacity(0.2),
723+
blurRadius: 6,
724+
offset: const Offset(0, 3),
725+
),
726+
],
727+
),
728+
child: Row(
729+
children: [
730+
Icon(icon, size: 28, color: colorPrimary),
731+
const SizedBox(width: 16),
732+
Expanded(
733+
child: Text(
734+
title,
735+
style: const TextStyle(
736+
fontSize: 16,
737+
fontWeight: FontWeight.w500,
738+
),
739+
),
740+
),
741+
const Icon(Icons.arrow_forward_ios, size: 16),
742+
],
743+
),
744+
),
745+
);
746+
}
707747
),
708748
),
709749
),

0 commit comments

Comments
 (0)