chore: fix text overflow in morph meaning popup (#2643)

This commit is contained in:
ggurdin 2025-05-05 09:58:04 -04:00 committed by GitHub
parent 8febe1e2bb
commit b2a0435380
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 11 additions and 10 deletions

View file

@ -1,5 +1,4 @@
import 'dart:convert';
import 'dart:developer';
import 'package:flutter/foundation.dart';
@ -95,7 +94,6 @@ class MorphInfoRepo {
LanguageKeys.defaultLanguage,
),
);
debugger(when: kDebugMode);
final morph = res.getFeatureByCode(feature.name);
final data = morph?.getTagByCode(tag);

View file

@ -260,14 +260,17 @@ class MorphMeaningPopupState extends State<MorphMeaningPopup> {
morphTag: _morphTag,
),
),
Text(
getGrammarCopy(
category: _morphFeature.name,
lemma: _morphTag,
context: context,
) ??
_morphTag,
style: Theme.of(context).textTheme.titleMedium,
Flexible(
child: Text(
textAlign: TextAlign.center,
getGrammarCopy(
category: _morphFeature.name,
lemma: _morphTag,
context: context,
) ??
_morphTag,
style: Theme.of(context).textTheme.titleMedium,
),
),
if (MatrixState.pangeaController.getAnalytics
.constructListModel