Skip to content

Commit d9c55e0

Browse files
committed
Show unlock reset in production
1 parent c8a5013 commit d9c55e0

1 file changed

Lines changed: 15 additions & 18 deletions

File tree

lib/src/features/onboarding/unlock_screen.dart

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
import 'dart:io' show Platform, exit;
1+
import 'dart:io' show exit;
22

3-
import 'package:flutter/foundation.dart';
43
import 'package:flutter/material.dart'
54
show AlertDialog, Colors, Scaffold, TextButton, TextStyle, showDialog;
65
import 'package:flutter/widgets.dart';
@@ -190,25 +189,23 @@ class _UnlockScreenState extends ConsumerState<UnlockScreen> {
190189
trailing: const AppIcon(AppIcons.chevronForward),
191190
child: Text(_isSubmitting ? 'Unlocking...' : 'Unlock'),
192191
),
193-
if (kDebugMode && Platform.isMacOS) ...[
194-
const SizedBox(height: AppSpacing.xs),
195-
GestureDetector(
196-
behavior: HitTestBehavior.opaque,
197-
onTap: () => _resetWallet(context),
198-
child: Padding(
199-
padding: const EdgeInsets.symmetric(
200-
horizontal: AppSpacing.xs,
201-
vertical: AppSpacing.xxs,
202-
),
203-
child: Text(
204-
'Reset State',
205-
style: AppTypography.labelLarge.copyWith(
206-
color: colors.text.warning,
207-
),
192+
const SizedBox(height: AppSpacing.xs),
193+
GestureDetector(
194+
behavior: HitTestBehavior.opaque,
195+
onTap: () => _resetWallet(context),
196+
child: Padding(
197+
padding: const EdgeInsets.symmetric(
198+
horizontal: AppSpacing.xs,
199+
vertical: AppSpacing.xxs,
200+
),
201+
child: Text(
202+
'Reset State',
203+
style: AppTypography.labelLarge.copyWith(
204+
color: colors.text.warning,
208205
),
209206
),
210207
),
211-
],
208+
),
212209
],
213210
),
214211
),

0 commit comments

Comments
 (0)