mirror of
https://github.com/ente-io/ente.git
synced 2025-08-08 07:28:26 +00:00
fix: remove onNotes tap for mobile
This commit is contained in:
parent
1bfa7b1998
commit
bbd7be4423
@ -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),
|
||||
|
@ -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,
|
||||
|
@ -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(
|
||||
|
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user