Correct use of Padding with Scrollable Widgets

Hi to everybody.

Lately I’m right here with a brand new tip.

I felt the wish to percentage this tip as a result of I got here throughout this symbol 5+ instances lately.

[Incorrect Use Example](

This symbol was once taken from an app in manufacturing. (Evolved with Flutter)

Have you ever spotted that the Scroll Glow is bring to a halt horizontally and forestalls an uninterrupted vertical enjoy?

Virtually all scroll view widgets(`ListView`, `GridView`, `SingleChildScrollView`, and many others.) have a `padding` **parameter**. Apart from in uncommon circumstances, in the event you use this padding parameter as a substitute of wrapping with the `Padding` **widget**, the issue is solved.


padding: EdgeInsets.all(16),
kid: ListView(
youngsters: […]


padding: EdgeInsets.all(16),
youngsters: […]

Outcome :

[Correct Use Example](

I do know that within the instance I gave incorrectly, it’s used within a field with a radius of the corners. On this case, chances are you’ll wish to upload a `ClipRRect`.

Have a excellent day!

View Reddit via mehmetyazView Supply

You may also like...

WP2Social Auto Publish Powered By :