Skip to content

Commit f48a7c9

Browse files
authored
Merge pull request #164 from divz-codess/master
Snackbar overflow issue resolved
2 parents d872a8c + b5cd6ee commit f48a7c9

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

lib/Components/flood_snackbar.dart

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,14 @@ SnackBar addFloodSnackBar(
3131
SizedBox(
3232
width: 8,
3333
),
34-
Text(
35-
title,
36-
style: TextStyle(
37-
color: Colors.white,
34+
Expanded(
35+
child: Text(
36+
title,
37+
overflow: TextOverflow.ellipsis,
38+
maxLines: 2,
39+
style: TextStyle(
40+
color: Colors.white,
41+
),
3842
),
3943
),
4044
],

0 commit comments

Comments
 (0)