Fix biometric switch and UI improvements

This commit is contained in:
shital
2025-11-11 00:44:43 +05:30
parent 8cfca113bf
commit d2cce89efb
4 changed files with 116 additions and 56 deletions

View File

@@ -1,4 +1,5 @@
import 'dart:async';
import 'dart:ui';
import 'package:flutter/material.dart';
class CooldownTimer extends StatefulWidget {
@@ -66,23 +67,23 @@ class _CooldownTimerState extends State<CooldownTimer> {
.shrink(); // Or some other widget indicating it's enabled
}
return Column(
crossAxisAlignment: CrossAxisAlignment.end,
return Row(
mainAxisSize: MainAxisSize.min,
children: [
Text(
'Enabled after:',
style: TextStyle(
color: Colors.red.shade700,
fontSize: 10,
fontWeight: FontWeight.bold,
),
Icon(
Icons.timer,
color: Colors.orange.shade700,
size: 18,
),
const SizedBox(width: 6),
Text(
_formatDuration(_timeRemaining),
style: TextStyle(
color: Colors.red.shade700,
color: Colors.orange.shade700,
fontSize: 14,
fontWeight: FontWeight.bold,
fontFamily: 'monospace',
fontFeatures: const [FontFeature.tabularFigures()],
),
),
],