fix: make morph/lemma edit tooltips more obvious (#1539)
This commit is contained in:
parent
ce57cbfdea
commit
0bb323b95d
2 changed files with 12 additions and 14 deletions
|
|
@ -146,13 +146,12 @@ class LemmaMeaningWidgetState extends State<LemmaMeaningWidget> {
|
|||
);
|
||||
}
|
||||
|
||||
return Flexible(
|
||||
child: GestureDetector(
|
||||
onLongPress: () => _toggleEditMode(true),
|
||||
onDoubleTap: () => _toggleEditMode(true),
|
||||
child: Tooltip(
|
||||
message: L10n.of(context).doubleClickToEdit,
|
||||
waitDuration: const Duration(milliseconds: 2000),
|
||||
return Tooltip(
|
||||
message: L10n.of(context).doubleClickToEdit,
|
||||
child: Flexible(
|
||||
child: GestureDetector(
|
||||
onLongPress: () => _toggleEditMode(true),
|
||||
onDoubleTap: () => _toggleEditMode(true),
|
||||
child: Text(
|
||||
snapshot.data!.meaning,
|
||||
textAlign: TextAlign.center,
|
||||
|
|
|
|||
|
|
@ -164,13 +164,12 @@ class MorphologicalCenterWidgetState extends State<MorphologicalCenterWidget> {
|
|||
@override
|
||||
Widget build(BuildContext context) {
|
||||
if (!editMode) {
|
||||
return Flexible(
|
||||
child: GestureDetector(
|
||||
onLongPress: enterEditMode,
|
||||
onDoubleTap: enterEditMode,
|
||||
child: Tooltip(
|
||||
message: L10n.of(context).doubleClickToEdit,
|
||||
waitDuration: const Duration(milliseconds: 2000),
|
||||
return Tooltip(
|
||||
message: L10n.of(context).doubleClickToEdit,
|
||||
child: Flexible(
|
||||
child: GestureDetector(
|
||||
onLongPress: enterEditMode,
|
||||
onDoubleTap: enterEditMode,
|
||||
child: Text(
|
||||
"$morphCopy: $tagCopy",
|
||||
textAlign: TextAlign.center,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue