Signed-off-by: Sahil Kumar <[email protected]>
This commit is contained in:
Sahil Kumar
2021-01-15 14:20:55 +05:30
parent e565f1d888
commit b9d86b3a27
+1 -1
View File
@@ -185,7 +185,7 @@ class _ImageFooterState extends State<ImageFooter> {
builder: (context) {
final crossAxisCount = 3;
final noOfRowToShowInitially =
widget.mediaAttachments.length > 3 ? 2 : 1;
widget.mediaAttachments.length > crossAxisCount ? 2 : 1;
final size = MediaQuery.of(context).size;
final initialChildSize =
48 + (size.width * noOfRowToShowInitially) / crossAxisCount;