Skip to content

armgit / ente

Public Imported from GitHub
0

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

hide the recovery key progess bar

AmanRajSinghMouryaf999a709bd69
diff --git a/mobile/packages/accounts/lib/pages/recovery_key_page.dart b/mobile/packages/accounts/lib/pages/recovery_key_page.dart
index e2cb3c9a93..cec4ebcbc0 100644
--- a/mobile/packages/accounts/lib/pages/recovery_key_page.dart
+++ b/mobile/packages/accounts/lib/pages/recovery_key_page.dart
@@ -200,29 +200,31 @@ class _RecoveryKeyPageState extends State<RecoveryKeyPage> {
final textTheme = getEnteTextTheme(context);
final List<Widget> childrens = [];
- childrens.add(
- Center(
- child: DotsIndicator(
- dotsCount: 3,
- position: 2,
- decorator: DotsDecorator(
- activeColor: colorScheme.primary700,
- color: colorScheme.primary700.withValues(alpha: 0.32),
- activeShape: RoundedRectangleBorder(
- borderRadius: BorderRadius.circular(14),
- ),
- shape: RoundedRectangleBorder(
- borderRadius: BorderRadius.circular(14),
+ if (widget.showProgressBar) {
+ childrens.add(
+ Center(
+ child: DotsIndicator(
+ dotsCount: 3,
+ position: 2,
+ decorator: DotsDecorator(
+ activeColor: colorScheme.primary700,
+ color: colorScheme.primary700.withValues(alpha: 0.32),
+ activeShape: RoundedRectangleBorder(
+ borderRadius: BorderRadius.circular(14),
+ ),
+ shape: RoundedRectangleBorder(
+ borderRadius: BorderRadius.circular(14),
+ ),
+ size: const Size(10, 10),
+ activeSize: const Size(20, 10),
+ spacing: const EdgeInsets.all(6),
),
- size: const Size(10, 10),
- activeSize: const Size(20, 10),
- spacing: const EdgeInsets.all(6),
),
),
- ),
- );
+ );
- childrens.add(const SizedBox(height: 20));
+ childrens.add(const SizedBox(height: 20));
+ }
childrens.add(
GradientButton(