Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
87e1c91
feat: update adapter implementation details for remote message
dewabisma Feb 17, 2026
302316e
feat: add real endpoint
dewabisma Feb 17, 2026
3edb9b2
Merge branch 'main' of https://github.com/Quantus-Network/quantus-app…
dewabisma Feb 20, 2026
b74ff49
Merge branch 'main' of https://github.com/Quantus-Network/quantus-app…
dewabisma Feb 23, 2026
8616d74
feat: update senoti and fcm service to support multiple addresses and…
dewabisma Feb 23, 2026
f446c00
chore: pubspec.lock
dewabisma Feb 23, 2026
3291f9a
feat: add unregister device on reset
dewabisma Feb 23, 2026
1424126
feat: properly handle registering and addding new address to remote n…
dewabisma Feb 23, 2026
4153b47
chore: formatting
dewabisma Feb 23, 2026
0120605
feat: add remote notification under feature flags
dewabisma Feb 23, 2026
3a7d27b
feat: finish updating reset confirm sheet
dewabisma Feb 23, 2026
6e7d0ce
feat: disable on not checked confirmation
dewabisma Feb 23, 2026
5a19d98
chore: code formatting
dewabisma Feb 23, 2026
e971763
Merge branch 'beast/finalize-notification' of https://github.com/Quan…
dewabisma Feb 23, 2026
46884b9
feat: remove auth for registering device remote notifications
dewabisma Feb 24, 2026
b119864
chore: revert sdks but new sdks update some packages version
dewabisma Feb 24, 2026
fccdfe8
chore: latest flutter somehow add this automatically
dewabisma Feb 24, 2026
dcae7d9
feat: migrate to UIScene
dewabisma Feb 24, 2026
70cb86b
fix: blocking request register device, crashing on reset
dewabisma Feb 24, 2026
0a2fe21
Merge branch 'beast/finalize-notification' of https://github.com/Quan…
dewabisma Feb 24, 2026
26de2dc
feat: make all device token methods non blocking
dewabisma Feb 25, 2026
5a145f8
leftover previous commit
dewabisma Feb 25, 2026
f4f41fd
Merge branch 'beast/finalize-notification' of https://github.com/Quan…
dewabisma Feb 25, 2026
3cca25e
feat: remove rethrow for unregister device
dewabisma Feb 25, 2026
a68e4fa
Merge branch 'beast/finalize-notification' of https://github.com/Quan…
dewabisma Feb 25, 2026
94a7a4a
Merge branch 'main' of https://github.com/Quantus-Network/quantus-app…
dewabisma Feb 25, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 72 additions & 0 deletions mobile-app/lib/v2/screens/settings/reset_confirmation_sheet.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
import 'package:flutter/material.dart';
import 'package:quantus_sdk/quantus_sdk.dart';
import 'package:resonance_network_wallet/v2/components/bottom_sheet_container.dart';
import 'package:resonance_network_wallet/v2/components/glass_container.dart';
import 'package:resonance_network_wallet/v2/theme/app_colors.dart';
import 'package:resonance_network_wallet/v2/theme/app_text_styles.dart';

class ResetConfirmationSheet extends StatefulWidget {
final VoidCallback onReset;
const ResetConfirmationSheet({super.key, required this.onReset});

@override
State<ResetConfirmationSheet> createState() => _ResetConfirmationSheetState();
}

class _ResetConfirmationSheetState extends State<ResetConfirmationSheet> {
bool _isCheckboxChecked = false;

@override
Widget build(BuildContext context) {
final buttonTextStyle = context.themeText.paragraph?.copyWith(fontWeight: FontWeight.w500);

return BottomSheetContainer(
title: 'Confirm Reset',
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
const SizedBox(height: 32),
Text(
'Are you sure you want to proceed? This will delete all local wallet data. Make sure you have backed up your recovery phrase.',
style: context.themeText.smallParagraph,
),
const SizedBox(height: 64),
CheckboxListTile(
contentPadding: const EdgeInsets.all(0),
controlAffinity: ListTileControlAffinity.leading,
value: _isCheckboxChecked,
onChanged: (bool? value) {
setState(() {
_isCheckboxChecked = value ?? false;
});
},
activeColor: context.colors.success,
checkColor: context.colors.success,
side: const BorderSide(color: Colors.white),
title: Text('I have backed up my recovery phrase', style: context.themeText.smallParagraph),
),
const SizedBox(height: 64),
GlassContainer(
asset: GlassContainer.wideAsset,
onTap: _isCheckboxChecked ? widget.onReset : null,
child: Center(child: Text('Confirm', style: buttonTextStyle)),
),
const SizedBox(height: 16),
InkWell(
onTap: () => Navigator.pop(context),
child: Center(
child: Text(
'Cancel',
style: buttonTextStyle?.copyWith(color: context.colors.textPrimary.useOpacity(0.5)),
),
),
),
],
),
);
}
}

void showResetConfirmationSheetV2(BuildContext context, VoidCallback onReset) {
BottomSheetContainer.show(context, builder: (_) => ResetConfirmationSheet(onReset: onReset));
}
8 changes: 2 additions & 6 deletions mobile-app/lib/v2/screens/settings/settings_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:quantus_sdk/quantus_sdk.dart';
import 'package:resonance_network_wallet/features/components/reset_confirmation_bottom_sheet.dart';
import 'package:resonance_network_wallet/services/firebase_messaging_service.dart';
import 'package:resonance_network_wallet/utils/feature_flags.dart';
import 'package:resonance_network_wallet/v2/screens/settings/recovery_phrase_screen.dart';
import 'package:resonance_network_wallet/v2/screens/settings/reset_confirmation_sheet.dart';
import 'package:resonance_network_wallet/v2/screens/settings/select_wallet_screen.dart';
import 'package:resonance_network_wallet/v2/screens/welcome/welcome_screen.dart';
import 'package:resonance_network_wallet/providers/account_associations_providers.dart';
Expand Down Expand Up @@ -81,11 +81,7 @@ class _SettingsScreenV2State extends ConsumerState<SettingsScreenV2> {
}

void _showResetConfirmation() {
showModalBottomSheet(
context: context,
backgroundColor: Colors.transparent,
builder: (_) => ResetConfirmationBottomSheet(onReset: _resetAndClearData),
);
showResetConfirmationSheetV2(context, _resetAndClearData);
}

String _timeLimitLabel() {
Expand Down