Makes error analytics close button more noticeable

pull/1384/head
Kelrap 1 year ago
parent 8fba3b667e
commit 340d0ac1e2

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

Loading…
Cancel
Save