fix: move tooltips inside flexible widgets to prevent freezing (#1555)

This commit is contained in:
ggurdin 2025-01-23 11:13:44 -05:00 committed by GitHub
parent d80dea2447
commit b15ed04aa9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 7 additions and 7 deletions

View file

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

View file

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

View file

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