feat: Update biometric icon color to match theme and enhance visibility
This commit is contained in:
@@ -56,9 +56,10 @@ class BiometricChoiceScreen extends StatelessWidget {
|
|||||||
mainAxisSize: MainAxisSize.min,
|
mainAxisSize: MainAxisSize.min,
|
||||||
crossAxisAlignment: CrossAxisAlignment.stretch,
|
crossAxisAlignment: CrossAxisAlignment.stretch,
|
||||||
children: [
|
children: [
|
||||||
const Icon(
|
Icon(
|
||||||
Icons.fingerprint,
|
Icons.fingerprint,
|
||||||
size: 44,
|
size: 44,
|
||||||
|
color: IconTheme.of(context).color,
|
||||||
),
|
),
|
||||||
const SizedBox(height: 16),
|
const SizedBox(height: 16),
|
||||||
const Text(
|
const Text(
|
||||||
|
|||||||
@@ -80,9 +80,10 @@ class _BiometricGateScreenState extends State<BiometricGateScreen> {
|
|||||||
mainAxisSize: MainAxisSize.min,
|
mainAxisSize: MainAxisSize.min,
|
||||||
crossAxisAlignment: CrossAxisAlignment.stretch,
|
crossAxisAlignment: CrossAxisAlignment.stretch,
|
||||||
children: [
|
children: [
|
||||||
const Icon(
|
Icon(
|
||||||
Icons.fingerprint,
|
Icons.fingerprint,
|
||||||
size: 44,
|
size: 44,
|
||||||
|
color: IconTheme.of(context).color,
|
||||||
),
|
),
|
||||||
const SizedBox(height: 16),
|
const SizedBox(height: 16),
|
||||||
const Text(
|
const Text(
|
||||||
|
|||||||
@@ -42,6 +42,8 @@ class MenuDrawer extends StatelessWidget {
|
|||||||
label: 'Mis notas borradas',
|
label: 'Mis notas borradas',
|
||||||
selected: selectedItem == 'deleted_notes',
|
selected: selectedItem == 'deleted_notes',
|
||||||
onTap: () => onMenuItemTapped?.call('deleted_notes'),
|
onTap: () => onMenuItemTapped?.call('deleted_notes'),
|
||||||
|
iconColor: Colors.redAccent,
|
||||||
|
textColor: Colors.redAccent,
|
||||||
),
|
),
|
||||||
const Divider(color: Colors.white12, height: 16),
|
const Divider(color: Colors.white12, height: 16),
|
||||||
_MenuItemTile(
|
_MenuItemTile(
|
||||||
@@ -62,12 +64,16 @@ class _MenuItemTile extends StatelessWidget {
|
|||||||
required this.label,
|
required this.label,
|
||||||
this.selected = false,
|
this.selected = false,
|
||||||
this.onTap,
|
this.onTap,
|
||||||
|
this.iconColor,
|
||||||
|
this.textColor,
|
||||||
});
|
});
|
||||||
|
|
||||||
final IconData icon;
|
final IconData icon;
|
||||||
final String label;
|
final String label;
|
||||||
final bool selected;
|
final bool selected;
|
||||||
final VoidCallback? onTap;
|
final VoidCallback? onTap;
|
||||||
|
final Color? iconColor;
|
||||||
|
final Color? textColor;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
@@ -95,10 +101,10 @@ class _MenuItemTile extends StatelessWidget {
|
|||||||
: BorderRadius.circular(12),
|
: BorderRadius.circular(12),
|
||||||
),
|
),
|
||||||
child: ListTile(
|
child: ListTile(
|
||||||
leading: Icon(icon, color: foregroundColor),
|
leading: Icon(icon, color: iconColor ?? foregroundColor),
|
||||||
title: Text(
|
title: Text(
|
||||||
label,
|
label,
|
||||||
style: TextStyle(color: foregroundColor, fontSize: 14),
|
style: TextStyle(color: textColor ?? foregroundColor, fontSize: 14),
|
||||||
),
|
),
|
||||||
onTap: onTap,
|
onTap: onTap,
|
||||||
hoverColor: Colors.white.withValues(alpha: 0.1),
|
hoverColor: Colors.white.withValues(alpha: 0.1),
|
||||||
|
|||||||
Reference in New Issue
Block a user