mirror of
https://github.com/ente-io/ente.git
synced 2025-08-08 15:30:40 +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: (_) {
|
builder: (_) {
|
||||||
return BottomActionBarWidget(
|
return BottomActionBarWidget(
|
||||||
code: widget.code,
|
code: widget.code,
|
||||||
onNotes: () => _onShowNotesPressed(true),
|
|
||||||
onEdit: () => _onEditPressed(true),
|
onEdit: () => _onEditPressed(true),
|
||||||
onShare: () => _onSharePressed(true),
|
onShare: () => _onSharePressed(true),
|
||||||
onPin: () => _onPinPressed(true),
|
onPin: () => _onPinPressed(true),
|
||||||
|
@ -12,7 +12,6 @@ class BottomActionBarWidget extends StatelessWidget {
|
|||||||
final Code code;
|
final Code code;
|
||||||
final VoidCallback? onCancel;
|
final VoidCallback? onCancel;
|
||||||
final Color? backgroundColor;
|
final Color? backgroundColor;
|
||||||
final VoidCallback? onNotes;
|
|
||||||
final VoidCallback? onShare;
|
final VoidCallback? onShare;
|
||||||
final VoidCallback? onPin;
|
final VoidCallback? onPin;
|
||||||
final VoidCallback? onShowQR;
|
final VoidCallback? onShowQR;
|
||||||
@ -26,7 +25,6 @@ class BottomActionBarWidget extends StatelessWidget {
|
|||||||
this.onCancel,
|
this.onCancel,
|
||||||
this.backgroundColor,
|
this.backgroundColor,
|
||||||
super.key,
|
super.key,
|
||||||
this.onNotes,
|
|
||||||
this.onShare,
|
this.onShare,
|
||||||
this.onPin,
|
this.onPin,
|
||||||
this.onShowQR,
|
this.onShowQR,
|
||||||
@ -67,7 +65,6 @@ class BottomActionBarWidget extends StatelessWidget {
|
|||||||
const SizedBox(height: 8),
|
const SizedBox(height: 8),
|
||||||
CodeSelectionActionsWidget(
|
CodeSelectionActionsWidget(
|
||||||
code: code,
|
code: code,
|
||||||
onNotes: onNotes,
|
|
||||||
onShare: onShare,
|
onShare: onShare,
|
||||||
onPin: onPin,
|
onPin: onPin,
|
||||||
onShowQR: onShowQR,
|
onShowQR: onShowQR,
|
||||||
|
@ -5,7 +5,6 @@ import 'package:flutter/material.dart';
|
|||||||
|
|
||||||
class CodeSelectionActionsWidget extends StatefulWidget {
|
class CodeSelectionActionsWidget extends StatefulWidget {
|
||||||
final Code code;
|
final Code code;
|
||||||
final VoidCallback? onNotes;
|
|
||||||
final VoidCallback? onShare;
|
final VoidCallback? onShare;
|
||||||
final VoidCallback? onPin;
|
final VoidCallback? onPin;
|
||||||
final VoidCallback? onShowQR;
|
final VoidCallback? onShowQR;
|
||||||
@ -17,7 +16,6 @@ class CodeSelectionActionsWidget extends StatefulWidget {
|
|||||||
const CodeSelectionActionsWidget({
|
const CodeSelectionActionsWidget({
|
||||||
super.key,
|
super.key,
|
||||||
required this.code,
|
required this.code,
|
||||||
this.onNotes,
|
|
||||||
this.onShare,
|
this.onShare,
|
||||||
this.onPin,
|
this.onPin,
|
||||||
this.onShowQR,
|
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) {
|
if (widget.code.isTrashed) {
|
||||||
items.add(
|
items.add(
|
||||||
SelectionActionButton(
|
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/l10n/l10n.dart';
|
||||||
import 'package:ente_auth/services/preference_service.dart';
|
import 'package:ente_auth/services/preference_service.dart';
|
||||||
import 'package:ente_auth/utils/platform_util.dart';
|
import 'package:ente_auth/utils/platform_util.dart';
|
||||||
import 'package:flutter/cupertino.dart';
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
class CoachMarkWidget extends StatelessWidget {
|
class CoachMarkWidget extends StatelessWidget {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user