0

I have a view like that

enter image description here

And I would like the image carousel to be without a horizontal margin like:

enter image description here

My image carousel is inside 3rd party widget so I need something like a negative margin?

I've tried transform on Container, but it only translates one side.

                      Container(
                    height: 160,
                    transform: Matrix4.translationValues(-20, 0, 0),
                    child: ListView(
                      scrollDirection: Axis.horizontal,
                      children: [
                        ...
                      ],
                    ),
                  ),
jakub
  • 3,576
  • 3
  • 29
  • 55

1 Answers1

0

Why dont you set the width to double.infinity and if you want to specify a margin work with the following?

margin: const EdgeInsets.only(top: 8.0),
Marcel Dz
  • 2,321
  • 4
  • 14
  • 49