|
|
|
|
@ -355,15 +355,17 @@ class ConstructMessagesDialog extends StatelessWidget {
|
|
|
|
|
|
|
|
|
|
final msgEventMatches = controller.getMessageEventMatches();
|
|
|
|
|
|
|
|
|
|
final noData = controller.constructs![controller.lemmaIndex].uses.length >
|
|
|
|
|
controller._msgEvents.length;
|
|
|
|
|
|
|
|
|
|
return AlertDialog(
|
|
|
|
|
title: Center(child: Text(controller.widget.controller.currentLemma!)),
|
|
|
|
|
content: SizedBox(
|
|
|
|
|
height: 350,
|
|
|
|
|
width: 500,
|
|
|
|
|
height: noData ? 90 : 250,
|
|
|
|
|
width: noData ? 200 : 400,
|
|
|
|
|
child: Column(
|
|
|
|
|
children: [
|
|
|
|
|
if (controller.constructs![controller.lemmaIndex].uses.length >
|
|
|
|
|
controller._msgEvents.length)
|
|
|
|
|
if (noData)
|
|
|
|
|
Center(
|
|
|
|
|
child: Padding(
|
|
|
|
|
padding: const EdgeInsets.all(8.0),
|
|
|
|
|
@ -398,8 +400,8 @@ class ConstructMessagesDialog extends StatelessWidget {
|
|
|
|
|
child: Text(
|
|
|
|
|
L10n.of(context)!.close.toUpperCase(),
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
color:
|
|
|
|
|
Theme.of(context).textTheme.bodyMedium?.color?.withAlpha(150),
|
|
|
|
|
color: Theme.of(context).colorScheme.primary,
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
|