From 89b385215a2c3232ff1356a9a6c76050985bf22c Mon Sep 17 00:00:00 2001 From: Tommy Chow Date: Tue, 5 Jul 2022 04:57:47 -0400 Subject: [PATCH] Fix long alerts getting cut off --- lib/widgets/alert_message.dart | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/lib/widgets/alert_message.dart b/lib/widgets/alert_message.dart index 56f3702f..34b661f0 100644 --- a/lib/widgets/alert_message.dart +++ b/lib/widgets/alert_message.dart @@ -21,11 +21,13 @@ class AlertMessage extends StatelessWidget { color: Colors.grey, ), const SizedBox(width: 5.0), - Text( - message, - style: const TextStyle( - fontWeight: FontWeight.w500, - color: Colors.grey, + Flexible( + child: Text( + message, + style: const TextStyle( + fontWeight: FontWeight.w500, + color: Colors.grey, + ), ), ), ],