fix: move tooltips inside flexible widgets to prevent freezing (#1555)
This commit is contained in:
parent
d80dea2447
commit
b15ed04aa9
3 changed files with 7 additions and 7 deletions
|
|
@ -146,9 +146,9 @@ class LemmaMeaningWidgetState extends State<LemmaMeaningWidget> {
|
|||
);
|
||||
}
|
||||
|
||||
return Tooltip(
|
||||
message: L10n.of(context).doubleClickToEdit,
|
||||
child: Flexible(
|
||||
return Flexible(
|
||||
child: Tooltip(
|
||||
message: L10n.of(context).doubleClickToEdit,
|
||||
child: GestureDetector(
|
||||
onLongPress: () => _toggleEditMode(true),
|
||||
onDoubleTap: () => _toggleEditMode(true),
|
||||
|
|
|
|||
|
|
@ -164,9 +164,9 @@ class MorphologicalCenterWidgetState extends State<MorphologicalCenterWidget> {
|
|||
@override
|
||||
Widget build(BuildContext context) {
|
||||
if (!editMode) {
|
||||
return Tooltip(
|
||||
message: L10n.of(context).doubleClickToEdit,
|
||||
child: Flexible(
|
||||
return Flexible(
|
||||
child: Tooltip(
|
||||
message: L10n.of(context).doubleClickToEdit,
|
||||
child: GestureDetector(
|
||||
onLongPress: enterEditMode,
|
||||
onDoubleTap: enterEditMode,
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ description: Learn a language while texting your friends.
|
|||
# Pangea#
|
||||
publish_to: none
|
||||
# On version bump also increase the build number for F-Droid
|
||||
version: 4.1.5+23
|
||||
version: 4.1.5+24
|
||||
|
||||
environment:
|
||||
sdk: ">=3.0.0 <4.0.0"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue