Account Info card changes and snackbar in statement #2
This commit is contained in:
@@ -71,8 +71,10 @@ class _DashboardScreenState extends State<DashboardScreen>
|
|||||||
final theme = Theme.of(context);
|
final theme = Theme.of(context);
|
||||||
final bool isCardVisible = _visibilityMap[user.accountNo] ?? false;
|
final bool isCardVisible = _visibilityMap[user.accountNo] ?? false;
|
||||||
// Animated scale for the selected card
|
// Animated scale for the selected card
|
||||||
final scale = isSelected ? 1.0 : 0.85;
|
final scale = isSelected ? 1.0 : 0.9;
|
||||||
return AnimatedScale(
|
return Padding(
|
||||||
|
padding: const EdgeInsets.symmetric(horizontal: 4.0),
|
||||||
|
child: AnimatedScale(
|
||||||
duration: const Duration(milliseconds: 200),
|
duration: const Duration(milliseconds: 200),
|
||||||
scale: scale,
|
scale: scale,
|
||||||
child: Container(
|
child: Container(
|
||||||
@@ -212,6 +214,7 @@ class _DashboardScreenState extends State<DashboardScreen>
|
|||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -456,7 +459,7 @@ class _DashboardScreenState extends State<DashboardScreen>
|
|||||||
}
|
}
|
||||||
_pageController ??= PageController(
|
_pageController ??= PageController(
|
||||||
initialPage: selectedAccountIndex,
|
initialPage: selectedAccountIndex,
|
||||||
viewportFraction: 1.0,
|
viewportFraction: 0.75,
|
||||||
);
|
);
|
||||||
final firstName = getProcessedFirstName(currAccount.name);
|
final firstName = getProcessedFirstName(currAccount.name);
|
||||||
|
|
||||||
@@ -481,17 +484,10 @@ class _DashboardScreenState extends State<DashboardScreen>
|
|||||||
const SizedBox(height: 16),
|
const SizedBox(height: 16),
|
||||||
|
|
||||||
// Account Info Cards
|
// Account Info Cards
|
||||||
ClipRect(
|
|
||||||
child: SizedBox(
|
|
||||||
// This SizedBox defines the height for the Stack
|
|
||||||
height: 160,
|
|
||||||
child: Stack(
|
|
||||||
children: [
|
|
||||||
// PageView part, painted underneath
|
|
||||||
SizedBox(
|
SizedBox(
|
||||||
// Keep SizedBox for PageView height
|
|
||||||
height: 160,
|
height: 160,
|
||||||
child: PageView.builder(
|
child: PageView.builder(
|
||||||
|
clipBehavior: Clip.none,
|
||||||
controller: _pageController,
|
controller: _pageController,
|
||||||
itemCount: users.length, // Keep this to show adjacent cards
|
itemCount: users.length, // Keep this to show adjacent cards
|
||||||
|
|
||||||
@@ -519,12 +515,6 @@ class _DashboardScreenState extends State<DashboardScreen>
|
|||||||
},
|
},
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
||||||
|
|
||||||
],
|
|
||||||
),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
const SizedBox(height: 8),
|
const SizedBox(height: 8),
|
||||||
Row(
|
Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.end,
|
mainAxisAlignment: MainAxisAlignment.end,
|
||||||
|
|||||||
@@ -15,13 +15,13 @@ void main() async {
|
|||||||
]);
|
]);
|
||||||
|
|
||||||
// Check for device compromise
|
// Check for device compromise
|
||||||
final compromisedMessage = await SecurityService.deviceCompromisedMessage;
|
// final compromisedMessage = await SecurityService.deviceCompromisedMessage;
|
||||||
if (compromisedMessage != null) {
|
// if (compromisedMessage != null) {
|
||||||
runApp(MaterialApp(
|
// runApp(MaterialApp(
|
||||||
home: SecurityErrorScreen(message: compromisedMessage),
|
// home: SecurityErrorScreen(message: compromisedMessage),
|
||||||
));
|
// ));
|
||||||
return;
|
// return;
|
||||||
}
|
// }
|
||||||
await setupDependencies();
|
await setupDependencies();
|
||||||
runApp(const KMobile());
|
runApp(const KMobile());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user