Account Info card changes and snackbar in statement #3

This commit is contained in:
2025-12-04 16:50:08 +05:30
parent 86aaaa1f6d
commit 4a8c69bb1e
2 changed files with 11 additions and 11 deletions

View File

@@ -71,9 +71,9 @@ class _DashboardScreenState extends State<DashboardScreen>
final theme = Theme.of(context);
final bool isCardVisible = _visibilityMap[user.accountNo] ?? false;
// Animated scale for the selected card
final scale = isSelected ? 1.0 : 0.9;
final scale = isSelected ? 1.02 : 0.9;
return Padding(
padding: const EdgeInsets.symmetric(horizontal: 4.0),
padding: const EdgeInsets.symmetric(horizontal: 3.0),
child: AnimatedScale(
duration: const Duration(milliseconds: 200),
scale: scale,
@@ -84,7 +84,7 @@ class _DashboardScreenState extends State<DashboardScreen>
),
decoration: BoxDecoration(
color: const Color(0xFF01A04C),
borderRadius: BorderRadius.circular(16),
borderRadius: BorderRadius.circular(20),
),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
@@ -471,7 +471,7 @@ class _DashboardScreenState extends State<DashboardScreen>
children: [
const SizedBox(height: 16), // Added spacing
Padding(
padding: const EdgeInsets.only(left: 8.0),
padding: const EdgeInsets.only(left: 4.0),
child: Text(
"${AppLocalizations.of(context).hi} $firstName!",
style: GoogleFonts.baumans().copyWith(

View File

@@ -15,13 +15,13 @@ void main() async {
]);
// Check for device compromise
// final compromisedMessage = await SecurityService.deviceCompromisedMessage;
// if (compromisedMessage != null) {
// runApp(MaterialApp(
// home: SecurityErrorScreen(message: compromisedMessage),
// ));
// return;
// }
final compromisedMessage = await SecurityService.deviceCompromisedMessage;
if (compromisedMessage != null) {
runApp(MaterialApp(
home: SecurityErrorScreen(message: compromisedMessage),
));
return;
}
await setupDependencies();
runApp(const KMobile());
}