From 9a579e818c17d4930cf93345ac02194cb70abfc1 Mon Sep 17 00:00:00 2001 From: otsmr Date: Mon, 13 Jul 2026 23:19:48 +0200 Subject: [PATCH] bump version --- CHANGELOG.md | 4 +++ lib/src/services/intent/links.intent.dart | 5 +-- .../onboarding/recover_password.view.dart | 32 ++++++++++--------- pubspec.yaml | 2 +- 4 files changed, 25 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d54f5e7d..008bc369 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 0.3.7 + +- Fix: Multiple UI issues + ## 0.3.6 - Improve: Visibility of the verification badge diff --git a/lib/src/services/intent/links.intent.dart b/lib/src/services/intent/links.intent.dart index 6de3623e..c8042ebc 100644 --- a/lib/src/services/intent/links.intent.dart +++ b/lib/src/services/intent/links.intent.dart @@ -1,9 +1,9 @@ import 'dart:async'; import 'dart:convert'; import 'dart:io'; -import 'dart:typed_data'; import 'package:collection/collection.dart'; +import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; import 'package:flutter_sharing_intent/flutter_sharing_intent.dart'; import 'package:flutter_sharing_intent/model/sharing_file.dart'; @@ -32,7 +32,8 @@ Future handleIntentUrl(BuildContext context, Uri uri) async { // Check if this is the QR code link which was // therefore scanned with the system camera - if (uri.toString().startsWith(PasswordlessRecoveryService.linkPrefix)) { + if (kDebugMode && + uri.toString().startsWith(PasswordlessRecoveryService.linkPrefix)) { await PasswordlessRecoveryService.handleRecoveryLink(uri.toString()); return true; } diff --git a/lib/src/visual/views/onboarding/recover_password.view.dart b/lib/src/visual/views/onboarding/recover_password.view.dart index 205949f5..425c9271 100644 --- a/lib/src/visual/views/onboarding/recover_password.view.dart +++ b/lib/src/visual/views/onboarding/recover_password.view.dart @@ -1,3 +1,4 @@ +import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; import 'package:font_awesome_flutter/font_awesome_flutter.dart'; import 'package:go_router/go_router.dart'; @@ -167,22 +168,23 @@ class _BackupRecoveryViewState extends State { : Text(context.lang.twonlySafeRecoverBtn), ), const SizedBox(height: 16), - MyButton( - variant: MyButtonVariant.secondary, - onPressed: () async { - await KeyValueStore.update( - key: KeyValueKeys.onboardingState, - update: (state) => - state.hasStartedPasswordlessRecovery = true, - ); - if (context.mounted) { - await context.push(Routes.recoverPasswordless); - } - }, - child: Text( - context.lang.passwordlessRecoveryRecoverBtn, + if (kDebugMode) + MyButton( + variant: MyButtonVariant.secondary, + onPressed: () async { + await KeyValueStore.update( + key: KeyValueKeys.onboardingState, + update: (state) => + state.hasStartedPasswordlessRecovery = true, + ); + if (context.mounted) { + await context.push(Routes.recoverPasswordless); + } + }, + child: Text( + context.lang.passwordlessRecoveryRecoverBtn, + ), ), - ), const Spacer(), const SizedBox(height: 40), ], diff --git a/pubspec.yaml b/pubspec.yaml index 478ea0ed..d55ded6c 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -3,7 +3,7 @@ description: "twonly, a privacy-friendly way to connect with friends through sec publish_to: 'none' -version: 0.3.6+152 +version: 0.3.7+153 environment: sdk: ^3.11.0