Igor Belikov
Igor Belikov

Reputation: 272

How to proper structure Flutter design

I have stucked with an issue learning Flutter. I take a design from dribbble and try to implement it. The goal is to implement a horizontal scrollable list view but I want it to appear with padding and when I scroll it left it goes over the screen (see attachments). When I scroll left the items of the list should goes over the screen without padding. I tried to add empty sized box as first item of the list but it looks like incorrect approach. I am sure I am doing something wrong and it would be helpful if some one steer me in the right direction. Example of horizontal scrollable list view behavior.

Upvotes: 0

Views: 105

Answers (1)

Shubham Gupta
Shubham Gupta

Reputation: 1997

ListView has a padding property you can use that.

ListView(
  padding:EdgeInsets.only(left:10),
  ...
),

Hope this is what you are looking for.

Upvotes: 2

Related Questions