Skip to content

armgit / ente

Public Imported from GitHub
0

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

fix: don't show bg painter if not pinned

Prateek Sunal6d1ab3f1cada
diff --git a/auth/lib/ui/code_widget.dart b/auth/lib/ui/code_widget.dart
index 072080a03c..72e23b3a59 100644
--- a/auth/lib/ui/code_widget.dart
+++ b/auth/lib/ui/code_widget.dart
@@ -113,17 +113,18 @@ class _CodeWidgetState extends State<CodeWidget> {
Widget getCardContents(AppLocalizations l10n) {
return Stack(
children: [
- Align(
- alignment: Alignment.topRight,
- child: CustomPaint(
- painter: PinBgPainter(
- color: colorScheme.pinnedBgColor,
+ if (widget.code.isPinned)
+ Align(
+ alignment: Alignment.topRight,
+ child: CustomPaint(
+ painter: PinBgPainter(
+ color: colorScheme.pinnedBgColor,
+ ),
+ size: widget.isCompactMode
+ ? const Size(24, 24)
+ : const Size(39, 39),
),
- size: widget.isCompactMode
- ? const Size(24, 24)
- : const Size(39, 39),
),
- ),
if (widget.code.isTrashed && kDebugMode)
Align(
alignment: Alignment.topLeft,