Skip to content

armgit / ente

Public Imported from GitHub
0

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

fix: remove onNotes tap for mobile

Prateek Sunalbbd7be4423c5
diff --git a/auth/lib/ui/code_widget.dart b/auth/lib/ui/code_widget.dart
index 6447c47de4..7f213964c0 100644
--- a/auth/lib/ui/code_widget.dart
+++ b/auth/lib/ui/code_widget.dart
@@ -220,7 +220,6 @@ class _CodeWidgetState extends State<CodeWidget> {
builder: (_) {
return BottomActionBarWidget(
code: widget.code,
- onNotes: () => _onShowNotesPressed(true),
onEdit: () => _onEditPressed(true),
onShare: () => _onSharePressed(true),
onPin: () => _onPinPressed(true),
diff --git a/auth/lib/ui/components/bottom_action_bar_widget.dart b/auth/lib/ui/components/bottom_action_bar_widget.dart
index bc062161be..ed25cf7308 100644
--- a/auth/lib/ui/components/bottom_action_bar_widget.dart
+++ b/auth/lib/ui/components/bottom_action_bar_widget.dart
@@ -12,7 +12,6 @@ class BottomActionBarWidget extends StatelessWidget {
final Code code;
final VoidCallback? onCancel;
final Color? backgroundColor;
- final VoidCallback? onNotes;
final VoidCallback? onShare;
final VoidCallback? onPin;
final VoidCallback? onShowQR;
@@ -26,7 +25,6 @@ class BottomActionBarWidget extends StatelessWidget {
this.onCancel,
this.backgroundColor,
super.key,
- this.onNotes,
this.onShare,
this.onPin,
this.onShowQR,
@@ -67,7 +65,6 @@ class BottomActionBarWidget extends StatelessWidget {
const SizedBox(height: 8),
CodeSelectionActionsWidget(
code: code,
- onNotes: onNotes,
onShare: onShare,
onPin: onPin,
onShowQR: onShowQR,
diff --git a/auth/lib/ui/components/code_selection_actions_widget.dart b/auth/lib/ui/components/code_selection_actions_widget.dart
index 821693ef02..9cf514f7c2 100644
--- a/auth/lib/ui/components/code_selection_actions_widget.dart
+++ b/auth/lib/ui/components/code_selection_actions_widget.dart
@@ -5,7 +5,6 @@ import 'package:flutter/material.dart';
class CodeSelectionActionsWidget extends StatefulWidget {
final Code code;
- final VoidCallback? onNotes;
final VoidCallback? onShare;
final VoidCallback? onPin;
final VoidCallback? onShowQR;
@@ -17,7 +16,6 @@ class CodeSelectionActionsWidget extends StatefulWidget {
const CodeSelectionActionsWidget({
super.key,
required this.code,
- this.onNotes,
this.onShare,
this.onPin,
this.onShowQR,
@@ -76,16 +74,6 @@ class _CodeSelectionActionsWidgetState
);
}
- if (widget.code.note.isNotEmpty) {
- items.add(
- SelectionActionButton(
- labelText: context.l10n.notes,
- icon: Icons.notes_outlined,
- onTap: widget.onNotes,
- ),
- );
- }
-
if (widget.code.isTrashed) {
items.add(
SelectionActionButton(
diff --git a/auth/lib/ui/home/coach_mark_widget.dart b/auth/lib/ui/home/coach_mark_widget.dart
index 9234aa7074..52d97bf26b 100644
--- a/auth/lib/ui/home/coach_mark_widget.dart
+++ b/auth/lib/ui/home/coach_mark_widget.dart
@@ -5,7 +5,6 @@ import 'package:ente_auth/events/codes_updated_event.dart';
import 'package:ente_auth/l10n/l10n.dart';
import 'package:ente_auth/services/preference_service.dart';
import 'package:ente_auth/utils/platform_util.dart';
-import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
class CoachMarkWidget extends StatelessWidget {