@@ -185,7 +185,7 @@ class _ImageFooterState extends State<ImageFooter> {
|
|||||||
builder: (context) {
|
builder: (context) {
|
||||||
final crossAxisCount = 3;
|
final crossAxisCount = 3;
|
||||||
final noOfRowToShowInitially =
|
final noOfRowToShowInitially =
|
||||||
widget.mediaAttachments.length > 3 ? 2 : 1;
|
widget.mediaAttachments.length > crossAxisCount ? 2 : 1;
|
||||||
final size = MediaQuery.of(context).size;
|
final size = MediaQuery.of(context).size;
|
||||||
final initialChildSize =
|
final initialChildSize =
|
||||||
48 + (size.width * noOfRowToShowInitially) / crossAxisCount;
|
48 + (size.width * noOfRowToShowInitially) / crossAxisCount;
|
||||||
|
|||||||
Reference in New Issue
Block a user