fix: prevent word card title from bouncing around (#4325)

This commit is contained in:
ggurdin 2025-10-10 11:14:18 -04:00 committed by GitHub
parent 2e9dde93db
commit 2ab664ecea
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -57,10 +57,9 @@ class WordZoomWidget extends StatelessWidget {
return Stack(
children: [
Container(
height: AppConfig.toolbarMaxHeight - 8,
padding: const EdgeInsets.all(12.0),
constraints: const BoxConstraints(
minHeight: AppConfig.toolbarMinHeight - 8,
maxHeight: AppConfig.toolbarMaxHeight - 8,
maxWidth: AppConfig.toolbarMinWidth,
),
child: CompositedTransformTarget(
@ -68,7 +67,6 @@ class WordZoomWidget extends StatelessWidget {
child: SingleChildScrollView(
child: Column(
spacing: 12.0,
mainAxisSize: MainAxisSize.min,
children: [
Row(
crossAxisAlignment: CrossAxisAlignment.start,
@ -132,7 +130,6 @@ class WordZoomWidget extends StatelessWidget {
builder: (context, controller) {
if (controller.editMode) {
return Column(
mainAxisSize: MainAxisSize.min,
children: [
Text(
"${L10n.of(context).pangeaBotIsFallible} ${L10n.of(context).whatIsMeaning(
@ -140,13 +137,15 @@ class WordZoomWidget extends StatelessWidget {
construct.category,
)}",
textAlign: TextAlign.center,
style:
const TextStyle(fontStyle: FontStyle.italic),
style: const TextStyle(
fontStyle: FontStyle.italic,
),
),
const SizedBox(height: 10),
Padding(
padding:
const EdgeInsets.symmetric(horizontal: 16.0),
padding: const EdgeInsets.symmetric(
horizontal: 16.0,
),
child: TextField(
minLines: 1,
maxLines: 3,