Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Fix code timer progress width so the bar stays visible

Prateek Sunal17c26b80d6f6
diff --git a/mobile/apps/auth/lib/ui/code_timer_progress.dart b/mobile/apps/auth/lib/ui/code_timer_progress.dart
index 58386fe438..ef44276214 100644
--- a/mobile/apps/auth/lib/ui/code_timer_progress.dart
+++ b/mobile/apps/auth/lib/ui/code_timer_progress.dart
@@ -69,19 +69,19 @@ class _CodeTimerProgressState extends State<CodeTimerProgress> {
Widget build(BuildContext context) {
return SizedBox(
height: widget.isCompactMode ? 1 : 3,
+ width: double.infinity,
child: ValueListenableBuilder<double>(
valueListenable: _progress,
builder: (context, progress, _) {
- return CustomPaint(
- key: Key(progress.toString()), // Add key here
- painter: _ProgressPainter(
- progress: progress,
- color: progress > 0.4
- ? getEnteColorScheme(context).primary700
- : Colors.orange,
- ),
- size: const Size.fromHeight(double.infinity),
- );
+ return CustomPaint(
+ key: Key(progress.toString()), // Add key here
+ painter: _ProgressPainter(
+ progress: progress,
+ color: progress > 0.4
+ ? getEnteColorScheme(context).primary700
+ : Colors.orange,
+ ),
+ );
},
),
);