Skip to content

Commit

Permalink
Remove top padding
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Perraut committed Apr 30, 2020
1 parent 2b1dd41 commit 9cf113f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/dotted_line.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,14 @@ class DottedLine extends StatelessWidget {
return Container(
width: direction == Axis.horizontal ? lineLength : lineThickness,
height: direction == Axis.vertical ? lineLength : lineThickness,
child: ListView.builder(
child: MediaQuery.removePadding(
context: context, removeTop: true, child: ListView.builder(
itemBuilder: (_, index) {
return index % 2 == 0 ? _buildDash() : _buildDashGap();
},
scrollDirection: direction,
physics: NeverScrollableScrollPhysics(),
),
)),
);
}

Expand Down

0 comments on commit 9cf113f

Please sign in to comment.