fix: remove onNotes tap for mobile

This commit is contained in:
Prateek Sunal 2024-09-26 01:11:29 +05:30
parent 1bfa7b1998
commit bbd7be4423
4 changed files with 0 additions and 17 deletions

View File

@ -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),

View File

@ -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,

View File

@ -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(

View File

@ -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 {