Jelajahi Sumber

Fix render overflow of text in notification widget (#1064)

Ashil 2 tahun lalu
induk
melakukan
a12ed75f12
1 mengubah file dengan 18 tambahan dan 16 penghapusan
  1. 18 16
      lib/ui/components/notification_widget.dart

+ 18 - 16
lib/ui/components/notification_widget.dart

@@ -73,22 +73,24 @@ class NotificationWidget extends StatelessWidget {
                   color: Colors.white,
                 ),
                 const SizedBox(width: 12),
-                Column(
-                  crossAxisAlignment: CrossAxisAlignment.start,
-                  children: [
-                    Text(
-                      text,
-                      style: darkTextTheme.bodyBold,
-                      textAlign: TextAlign.left,
-                    ),
-                    subText != null
-                        ? Text(
-                            subText!,
-                            style: darkTextTheme.mini
-                                .copyWith(color: textMutedDark),
-                          )
-                        : const SizedBox.shrink(),
-                  ],
+                Expanded(
+                  child: Column(
+                    crossAxisAlignment: CrossAxisAlignment.start,
+                    children: [
+                      Text(
+                        text,
+                        style: darkTextTheme.bodyBold,
+                        textAlign: TextAlign.left,
+                      ),
+                      subText != null
+                          ? Text(
+                              subText!,
+                              style: darkTextTheme.mini
+                                  .copyWith(color: textMutedDark),
+                            )
+                          : const SizedBox.shrink(),
+                    ],
+                  ),
                 ),
                 const SizedBox(width: 12),
                 IconButtonWidget(